n8n-mcp
MCP server for n8n workflow management. Provides AI assistants with the ability to review workflow status in n8n instances.
Generated by GRIMLOCK MCP Factory.
Features
- check_workflows: Reviews all workflows and reports their status, including active/inactive counts and workflows with recent errors.
Installation
# Clone or download the package
cd n8n-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
# or: venv\Scripts\activate # Windows
# Install package
pip install -e .
Configuration
Create a .env file or set environment variables:
# Base URL of your n8n instance (no trailing slash)
N8N_BASE_URL=https://your-n8n-instance.app.n8n.cloud
# API key from n8n Settings > API
N8N_API_KEY=your_api_key_here
Getting Your n8n API Key
- Open your n8n instance
- Go to Settings > API
- Create a new API key or copy an existing one
- Use the full URL of your n8n instance for
N8N_BASE_URL
Usage
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"n8n": {
"command": "/path/to/n8n-mcp/venv/bin/python",
"args": ["-m", "n8n_mcp.server"],
"env": {
"N8N_BASE_URL": "https://your-n8n-instance.app.n8n.cloud",
"N8N_API_KEY": "your_api_key_here"
}
}
}
}
Running Directly
# Activate virtual environment
source venv/bin/activate
# Run the server
python -m n8n_mcp.server
Available Tools
check_workflows
Reviews all workflows and reports their status.
Parameters: None
Returns:
total_workflows: Total number of workflowsactive_workflows: Number of active workflowsinactive_workflows: Number of inactive workflowsworkflows_with_errors: Count of workflows with recent errorserror_workflows: List of workflows with errors (id, name, error count)workflows: Detailed list of all workflows with execution stats
Example Response:
{
"total_workflows": 5,
"active_workflows": 3,
"inactive_workflows": 2,
"workflows_with_errors": 1,
"error_workflows": [
{"id": "2", "name": "Data Sync", "errors": 3}
],
"workflows": [
{
"id": "1",
"name": "Email Notifications",
"active": true,
"recent_executions": {
"success": 10,
"error": 0,
"waiting": 0,
"running": 0
}
}
]
}
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=n8n_mcp
# Type checking
mypy src/
# Linting
ruff check src/
License
MIT
Metadata
Release files for m2ai-n8n-mcp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| m2ai_n8n_mcp-1.0.0.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| m2ai_n8n_mcp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.9 kB
Release files / m2ai_n8n_mcp-1.0.0.tar.gz
| Download URL | m2ai_n8n_mcp-1.0.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d34bf9eacaa42bcac94fc89ff0fef5714c9a0e8e4dc35e9799d61954b04a9575
|
|
BLAKE2b-256 checksum How to use checksums |
d046ca0835d67037b8202528cbaedf024ae5a80489c5b8d11649ffc6c213c61b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / m2ai_n8n_mcp-1.0.0-py3-none-any.whl
| Download URL | m2ai_n8n_mcp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35dcd8084f66096231440a4a0060b914f3f4db20f228f73ac1bd311b45673317
|
|
BLAKE2b-256 checksum How to use checksums |
dcd67f198dfaefeef4f0dadbb476cb345cde047580e809eede5d9c5b8d533844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for m2ai-n8n-mcp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.