4Runr's custom MCP Client node for n8n — connects to a self-hosted MCP server via SSE and streams tool definitions to n8n AI Agents.
npm install n8n-nodes-mcp-clientsseUrl endpoint for incoming tools events.
/mcp/message with the correct payload and headers.
4Runr MCP Access with:
SSE URL (required): Your MCP server's SSE endpoint (e.g., https://mcp-server/mcp-events)
SSE Connection Timeout (optional): Timeout in ms (default: 60000)
Messages POST Endpoint (required): Your MCP server's message endpoint (e.g., https://mcp-server/mcp/message)
Additional Headers (optional): JSON for API keys, etc. (e.g., { "X-API-Key": "Test12345" })
json
{
"toolCall": {
"toolName": "check_availability",
"parameters": { ... }
}
}
`
- The X-API-Key header (if provided) will be included in all POST requests.
4. Error Handling
- The node provides robust error handling for SSE, JSON parsing, and HTTP errors.
- Errors are logged and displayed in the n8n UI.
Assumptions
- Tool names are accepted as sent by the server (namespacing/aliasing is optional).
- All tool parameters and required/optional flags are respected as sent by the server.
- The node expects the MCP server to emit a tools event with a tools array in the data payload.
Advanced/Optional
- Tool name mapping/aliasing is supported via the Tool Name Mapping (Optional)` property.