n8n Workflow Automation Integration
Use RouterMCP tools in n8n workflow automation platform for powerful integrations.
n8n
n8n is a workflow automation platform that can integrate with RouterMCP via HTTP requests. Use RouterMCP tools in your automated workflows.
Prerequisites
- n8n instance (self-hosted or cloud)
- RouterMCP Cloud project with API key
Using the HTTP Request Node
Add HTTP Request Node
In your n8n workflow, add an HTTP Request node.
Configure the Request
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://gateway.routermcp.com/v1/mcp/your-project/request |
| Authentication | Header Auth |
| Header Name | Authorization |
| Header Value | Bearer your_api_key |
Set the Body
Use JSON body to make MCP requests:
List Tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call a Tool:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "github.create_issue",
"arguments": {
"title": "{{ $json.issueTitle }}",
"body": "{{ $json.issueBody }}"
}
}
}Handle the Response
The response will be in JSON-RPC format:
{
"jsonrpc": "2.0",
"id": 2,
"result": {
"content": [
{
"type": "text",
"text": "Issue created: #123"
}
]
}
}Use the Set node or expressions to extract the result.
Example Workflow
Create GitHub Issue from Form Submission
[Webhook] → [HTTP Request to RouterMCP] → [Slack Notification]HTTP Request Configuration:
{
"jsonrpc": "2.0",
"id": "{{ $runIndex }}",
"method": "tools/call",
"params": {
"name": "github.create_issue",
"arguments": {
"owner": "your-org",
"repo": "your-repo",
"title": "Bug: {{ $json.summary }}",
"body": "Submitted by: {{ $json.email }}\n\n{{ $json.description }}"
}
}
}Credentials Setup
Create Header Auth Credential
- Go to Settings → Credentials
- Click Add Credential
- Select Header Auth
Configure Credential
| Field | Value |
|---|---|
| Name | RouterMCP API Key |
| Header Name | Authorization |
| Header Value | Bearer rmc_your_api_key |
Use in Nodes
Select this credential in your HTTP Request nodes that call RouterMCP.
Tip: Create a reusable n8n node or sub-workflow for RouterMCP calls to simplify complex workflows.
Error Handling
Add error handling to your workflow:
- Connect an IF node after the HTTP Request
- Check for
$json.errorin the response - Route errors to a notification or logging node
// Expression to check for errors
{{ $json.error ? 'Error' : 'Success' }}Rate Limiting
RouterMCP enforces rate limits. For high-volume workflows, add delays between requests or batch operations where possible.