N8n Mcp Actor avatar
N8n Mcp Actor
Under maintenance

Pricing

Pay per usage

Go to Apify Store
N8n Mcp Actor

N8n Mcp Actor

Under maintenance

Bridge between n8n workflows and Model Context Protocol (MCP) servers.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Sean

Sean

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

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:

FieldTypeDescriptionRequired
serverUrlStringThe full URL of the MCP server's SSE endpoint (e.g., https://my-server.com/sse).Yes
actionStringThe action to perform (call_tool, list_tools, read_resource, etc.).Yes
toolNameStringName of the tool to execute (required for call_tool).Conditional
argumentsObjectJSON 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

  1. Add an Apify node to your n8n workflow.
  2. Select Run Actor.
  3. Choose n8n-mcp-actor.
  4. In the Input field, provide the JSON configuration as shown above.
  5. 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