MCP Agent Workflow
Leapter can generate an n8n workflow that creates an AI agent with access to all your project’s Blueprints as tools. The agent uses the Model Context Protocol (MCP) to call your Blueprints, so users can interact with your logic through a chat interface.What this creates
The MCP Agent Workflow is a 4-node n8n workflow:| Node | Purpose |
|---|---|
| Chat Trigger | Provides a chat interface for users to interact with the agent |
| AI Agent | The AI agent that reasons about user messages and calls tools |
| MCP Client | Connects to your Leapter project via MCP, exposing all published Blueprints as tools |
| Simple Memory | Maintains conversation context across messages |
Export the workflow
- Open any Blueprint in the editor.
- Click the Share button in the toolbar.
- Select n8n.
- In the Export to n8n dialog, select the MCP Agent Workflow tab.
- Click Copy to Clipboard.

Import into n8n
- Open your n8n instance.
- Create a new workflow.
- Click the three-dot menu (or use Ctrl+V / Cmd+V) and select Import from clipboard.
- The 4-node workflow appears on the canvas.
Post-import setup
After importing, you need to configure two things before the workflow can run.Connect an AI model
- Open the AI Agent node.
- Connect an AI model (OpenAI, Anthropic, Google, or any supported provider).
- Configure the model credentials if you have not already set them up in n8n.
Configure the MCP Client
- Open the MCP Client node.
- Create a Header Auth credential:
- Header name:
X-API-Key - Header value: your Leapter API key
- Header name:
- Save the credential.
Run the workflow
- Click Test Workflow (or Chat in the bottom panel) to open the chat interface.
- Type a message that relates to your Blueprint’s logic.
- The AI agent decides which Blueprint(s) to call, executes them via MCP, and returns a natural language response.
What to do next
- HTTP Workflow — export a workflow that calls a specific Blueprint via HTTP
- Code Workflow — run Blueprint logic directly in n8n
- AI Protocol (MCP) — connect other MCP clients to your Blueprints