How to call mcp server from n8n?
Set up the MCP Client node
n8n includes an MCP Client node that connects to an MCP server over a supported transport. Add the node to your workflow, then choose the connection type that matches your server, such as an HTTP endpoint or a locally started command.
Enter any required credentials and run a test to confirm the connection works.
- Add the MCP Client node to the canvas
- Choose the transport type
- Enter the server URL or command
- Attach a saved credential
- Run a test to load the tool list
Pick a tool and pass inputs
Select the tool you want from the list the node loads, then fill in its input fields. You can map values from earlier nodes, such as a row from a spreadsheet or a field from a webhook.
Check that each value matches the type the tool expects, since a mismatch will fail the run.
Use the output downstream
When the workflow runs, the tool output becomes the data for that node. Connect the output to the next step, such as writing to a sheet or sending a message.
Add an error path so a failed tool call does not stop the whole workflow without warning.
Common mistakes
- Entering a stdio command in the URL field, which will not connect.
- Pasting an API key into the node instead of saving it as a credential.
- Mapping fields from earlier nodes without checking the tool's expected input type.
