RouterMCP
Client Integrations

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

SettingValue
MethodPOST
URLhttps://gateway.routermcp.com/v1/mcp/your-project/request
AuthenticationHeader Auth
Header NameAuthorization
Header ValueBearer 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

  1. Go to SettingsCredentials
  2. Click Add Credential
  3. Select Header Auth

Configure Credential

FieldValue
NameRouterMCP API Key
Header NameAuthorization
Header ValueBearer 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:

  1. Connect an IF node after the HTTP Request
  2. Check for $json.error in the response
  3. 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.

On this page