---
title: "Deploy n8n-MCP"
description: "n8n-MCP for dev/prod use. by czlonkowski"
category: "Other"
url: https://railway.com/deploy/n8n-mcp-2
---

# Deploy n8n-MCP

n8n-MCP for dev/prod use. by czlonkowski

**[Deploy n8n-MCP on Railway](https://railway.com/template/n8n-mcp-2)**

- **Creator:** judetelan's Projects
- **Category:** Other
- **Total deploys:** 21

## Template content

### czlonkowski/n8n-mcp-railway:latest https://devicons.railway.com/i/n8n.svg

- **Image:** ghcr.io/czlonkowski/n8n-mcp-railway:latest
- **Public domain:** Yes

## Documentation

# 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 &amp; Debugging** — Validate node configurations and entire workflows (including AI Agent workflows) to catch errors before they fail at runtime
- **Template Discovery &amp; 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

- [n8n-MCP GitHub Repository](https://github.com/czlonkowski/n8n-mcp) — Source code and documentation
- [Railway Deployment Guide](https://github.com/czlonkowski/n8n-mcp/blob/main/docs/RAILWAY_DEPLOYMENT.md) — Detailed setup instructions
- [Claude Code Setup](https://github.com/czlonkowski/n8n-mcp/blob/main/docs/CLAUDE_CODE_SETUP.md) — IDE integration guide
- [Antigravity Setup](https://github.com/czlonkowski/n8n-mcp/blob/main/docs/ANTIGRAVITY_SETUP.md) — Google Antigravity integration

### Implementation Details

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

```json
{
  "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](https://github.com/czlonkowski). This Railway template is based on the official [n8n-mcp repository](https://github.com/czlonkowski/n8n-mcp), 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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/n8n-mcp-2
