MCP server with n8n
How do I set up an MCP server with n8n?
n8n is a workflow automation platform that lets you build an MCP server without deep programming knowledge. Each tool call from your agent is mapped as its own n8n workflow.
If you want to connect monday.com or commercetools, with sipgate sona you don't need your own MCP server. For that there are ready-made playbooks from the library.
Step 1: Create MCP server workflow
Open your n8n instance and create a new workflow.
As the trigger node, select the MCP Server Trigger.
n8n automatically generates a webhook URL for your MCP server - make a note of it, you'll need it later in sipgate.
Step 2: Define tools as workflows
A tool is a single capability that your agent uses during the conversation, such as looking up a customer number, checking availability, or booking an appointment. Each tool corresponds to exactly one n8n workflow: your agent decides during the conversation when it needs a tool, and n8n executes the underlying logic.
Each tool your agent should use is created as a separate workflow:
Create a new workflow for each tool.
Also use the MCP Server Trigger as the entry point.
Build the desired logic behind it: database queries, API calls, calculations.
At the end, return a structured result that your agent can use.
Step 3: Store tool descriptions in n8n
So your agent knows when to use which tool, you need to store descriptions in n8n:
Tool name: unique and descriptive, maximum 28 characters
Tool description: one to two sentences about what the tool does and when it should be used
Parameter descriptions: what is expected, in which format, and whether the parameter is optional
Example of a good tool description:
"Returns the customer's full name and customer number. Input: phone number in the format +49…"
Step 4: Store MCP server in sipgate
Copy the webhook URL of your n8n MCP workflow.
Open the agent overview, click your agent and select Tools. Click on Add tool.
Enter the URL. If you assigned a token in n8n, enter it in the field Token .
Save. sipgate checks the connection and displays the detected tools.
Test MCP server
Before using your agent in production, we recommend these tests:
Check connection status. Open the tools overview in sipgate and click Refresh. If all tools load, the connection is established.
Manual test calls. Trigger the playbook and check in n8n whether the workflows are called correctly and the responses are correct.
Check server logs. Check the n8n execution logs to see whether requests are arriving and whether errors have occurred.
Error handling. Make sure your workflow returns a comprehensible error message in case of errors. Your agent uses it to adjust its behavior.
Best practices
Use n8n for deterministic tasks: retrieve, write, calculate data.
Leave the non-deterministic decisionsto the AI agent: what it does, in what order, how it responds.
Validate all incoming parameters server-side. Your agent doesn't always pass exactly what you expect.
Return clean, structured responses. Unclear returns lead to unreliable agent behavior.
Last updated

