Railway

Deploy n8n-MCP

n8n-MCP for dev/prod use. by czlonkowski

Deploy n8n-MCP

czlonkowski/n8n-mcp-railway:latest

czlonkowski/n8n-mcp-railway:latest

Just deployed

Deploy and Host n8n-MCP on Railway

n8n-MCP is a Model Context Protocol (MCP) server that bridges AI assistants (Claude Desktop, Claude Code, Cursor, Windsurf, Antigravity) with n8n's workflow automation platform. It provides AI models with structured access to 1,084+ n8n nodes, 2,700+ workflow templates, and real-world configuration examples—enabling AI to build, validate, and manage n8n workflows intelligently.

About Hosting n8n-MCP

Railway deployment provides instant cloud hosting with zero server setup. The service runs in HTTP mode behind Railway's infrastructure, offering secure HTTPS endpoints, auto-scaling, and built-in monitoring. Authentication is handled via bearer tokens, and all traffic is encrypted by default. The single-instance design connects to one n8n instance via API credentials configured as environment variables. For multi-tenant usage, deploy separate Railway instances. The server is stateless with a read-only reference database containing node schemas, documentation, and template configurations.

Common Use Cases

  • AI-Powered Workflow Building — Let Claude, Cursor, or other AI assistants create complete n8n workflows by searching nodes, finding templates, and validating configurations before deployment
  • Workflow Validation & Debugging — Validate node configurations and entire workflows (including AI Agent workflows) to catch errors before they fail at runtime
  • Template Discovery & Customization — Search 2,700+ community templates by task, node type, or metadata, then extract and customize workflow JSON for your needs

Dependencies for n8n-MCP Hosting

  • n8n Instance — A running n8n installation (self-hosted or cloud) with API access enabled
  • n8n API Key — Generated from n8n Settings → API for workflow management capabilities

Deployment Dependencies

Implementation Details

After deployment, connect your AI IDE using the mcp-remote bridge:

{
  "mcpServers": {
    "n8n-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://YOUR-SERVICE.railway.app/mcp",
        "--header",
        "Authorization:Bearer YOUR_AUTH_TOKEN"
      ]
    }
  }
}

Replace YOUR-SERVICE.railway.app with your Railway URL and YOUR_AUTH_TOKEN with your configured auth token.


Credits

n8n-MCP was created by czlonkowski. This Railway template is based on the official n8n-mcp repository, licensed under MIT.

Why Deploy n8n-MCP on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying n8n-MCP on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

czlonkowski/n8n-mcp-railway:latest

ghcr.io/czlonkowski/n8n-mcp-railway:latest

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser
View Template
peppermint
Docker-compose port for peppermint.sh

HamiltonAI