N8n Mcp Actor
Pricing
Pay per usage
N8n Mcp Actor
Bridge between n8n workflows and Model Context Protocol (MCP) servers.
Pricing
Pay per usage
Rating
0.0
(0)
Developer

Sean
Actor stats
0
Bookmarked
1
Total users
0
Monthly active users
3 days ago
Last modified
Categories
Share
Bridge the gap between n8n workflows and the Model Context Protocol (MCP).
The n8n MCP Actor enables your n8n workflows (and other automation tools) to connect directly to any MCP Server. This allows you to leverage AI models, tools, and resources exposed via MCP within your automation pipelines.
🚀 Features
- Protocol Support: Connect via SSE (Server-Sent Events) with POST support, the standard for remote MCP connections.
- Universal Tool Access: List and execute ANY tool exposed by an MCP server.
- Resource Management: Read resources directly from the MCP server.
- Prompt Integration: Retrieve prompts defined in the MCP server for use in your LLM chains.
- n8n Ready: Designed to work seamlessly with n8n's "Apify" node.
🛠 Usage
This Actor is designed to be called via the Apify API, making it perfect for integration with n8n.
Input Configuration
The Actor accepts the following input parameters:
| Field | Type | Description | Required |
|---|---|---|---|
serverUrl | String | The full URL of the MCP server's SSE endpoint (e.g., https://my-server.com/sse). | Yes |
action | String | The action to perform (call_tool, list_tools, read_resource, etc.). | Yes |
toolName | String | Name of the tool to execute (required for call_tool). | Conditional |
arguments | Object | JSON object containing arguments for the tool or prompt. | No |
Examples
1. List Available Tools
To see what tools an MCP server offers:
{"serverUrl": "http://localhost:3001/sse","action": "list_tools"}
2. Call a Tool (Weather Example)
To execute the bundled weather tool:
{"serverUrl": "http://localhost:3001/sse","action": "call_tool","toolName": "get_weather","arguments": {"city": "London","unit": "celsius"}}
📦 Integration with n8n
- Add an Apify node to your n8n workflow.
- Select Run Actor.
- Choose
n8n-mcp-actor. - In the Input field, provide the JSON configuration as shown above.
- The output of the node will contain the result from the MCP server (e.g., tool execution result).
🔒 Security
This Actor acts as a bridge. Ensure you trust the MCP server you are connecting to, especially if passing sensitive data in arguments.
📄 License
Apache 2.0