MCP n8n API Server logo

MCP n8n API Server

by ahmadsoliman

The MCP n8n API Server provides an interface to interact with n8n workflows through the Model Context Protocol (MCP). It allows you to list and trigger n8n workflows from MCP clients like Claude Desktop.

View on GitHub

Last updated: N/A

What is MCP n8n API Server?

The MCP n8n API Server is a bridge between n8n (a workflow automation platform) and Model Context Protocol (MCP) clients, enabling interaction with n8n workflows through a standardized protocol.

How to use MCP n8n API Server?

Install the server globally, locally, or run it with npx. Configure the server with your n8n API key and URL in a .env file. Then, configure your MCP client (e.g., Claude AI) to use the server, specifying the command and environment variables. You can then use the exposed MCP tools to list and trigger n8n workflows.

Key features of MCP n8n API Server

  • List all n8n workflows

  • Trigger specific workflows with custom data

  • Integration with Claude Desktop and other MCP clients

  • Supports GET and POST requests to webhooks

  • Can be run remotely or locally

Use cases of MCP n8n API Server

  • Automating tasks triggered by AI interactions

  • Integrating n8n workflows with large language models

  • Creating custom tools for AI assistants using n8n

  • Orchestrating complex workflows based on AI input

  • Connecting AI models to external services through n8n

FAQ from MCP n8n API Server

What is MCP?

Model Context Protocol (MCP) is a protocol that allows different applications to communicate with each other, especially in the context of AI and large language models.

What is n8n?

n8n is a free and open-source workflow automation platform that allows you to connect different apps and services to automate tasks.

How do I get my n8n API key?

You can find your n8n API key in your n8n instance settings.

Can I use this server with other MCP clients besides Claude Desktop?

Yes, the server is designed to work with any MCP client that supports executing commands and setting environment variables.

What if I don't have a PROJECT_ID?

The PROJECT_ID is only required for n8n cloud instances. If you are running a self-hosted n8n instance, you can leave this variable empty.