# Self-host n8n MCP

> A Model Context Protocol server that gives AI assistants searchable n8n node documentation. MIT licensed. The bearer token is generated for you.

- Page: https://levelrail.com/templates/n8n-mcp/
- JSON: https://levelrail.com/templates/n8n-mcp.json
- Category: AI
- Licence: MIT (Permissive license)
- Source: https://github.com/czlonkowski/n8n-mcp
- Upstream docs: https://github.com/czlonkowski/n8n-mcp

## Requirements
- Memory: about 256 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 2.102.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| n8n-mcp | ghcr.io/czlonkowski/n8n-mcp | 2.102.0 | 3000 | none |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| n8n-mcp | AUTH_TOKEN | generated |
| n8n-mcp | MCP_MODE | preset |
| n8n-mcp | PORT | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy n8n-mcp --name my-n8n-mcp
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/n8n-mcp/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Point your MCP client at the public address with the generated token as the bearer token.

## Questions

### Can I deploy n8n MCP on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for n8n MCP, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/czlonkowski/n8n-mcp:2.102.0 is what you deploy there.

Self-host n8n MCP, n8n MCP docker compose file, deploy n8n MCP on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
