n8n-mcp
n8n-MCP
Model Context Protocol (MCP) サーバーで、AIアシスタントにn8nノードのドキュメント、プロパティ、操作への包括的なアクセスを提供します。数分でデプロイして、Claudeや他のAIアシスタントにn8nの2,175のワークフロー自動化ノード(827コア + 1,348コミュニティ)に関する深い知識を与えます。
概要
n8n-MCPは、n8nのワークフロー自動化プラットフォームとAIモデルの間の橋渡し役として機能し、AIがn8nノードを効果的に理解し操作できるようにします。構造化されたアクセスを提供します:
2,175のn8nノード - 827のコアノード + 1,348のコミュニティノード(1,195が検証済み)
ノードプロパティ - 詳細なスキーマで99%のカバレッジ
ノード操作 - 利用可能なアクションの63.6%をカバー
ドキュメント - 公式n8nドキュメント(AIノードを含む)から87%のカバレッジ
AIツール - 完全なドキュメント付きで265のAI対応ツールバリアントを検出
実世界の例 - 人気テンプレートから抽出された156のランク付けされた設定
テンプレートライブラリ - 99.96%のAIメタデータカバレッジを持つ2,352のワークフローテンプレート
コミュニティノード -
sourceフィルターで検証済みコミュニティ統合を検索
Related MCP server: n8n-MCP
このプロジェクトを支援する
n8n-mcpは個人用ツールとして始まりましたが、現在では数万人の開発者が効率的にワークフローを自動化するのを支援しています。このプロジェクトの維持と開発は、私の有償の仕事と競合しています。あなたのスポンサーシップにより、新機能に集中した時間を割り、問題に迅速に対応し、ドキュメントを最新に保ち、最新のn8nリリースとの互換性を確保することができます。スポンサーになる
重要な安全上の警告
本番ワークフローをAIで直接編集しないでください! 常に以下を守ってください:
AIツールを使用する前にワークフローのコピーを作成する
まず開発環境でテストする
重要なワークフローのバックアップをエクスポートする
本番環境にデプロイする前に変更を検証する
AIの結果は予測不能です。作業を保護してください!
クイックスタート
n8n-MCPを試す最速の方法 - インストール不要、設定不要:
無料枠:1日100ツールコール
即時アクセス:すぐにワークフローの構築を開始
常に最新:最新のn8nノードとテンプレート
インフラ不要:すべて当社で管理
サインアップしてAPIキーを取得し、MCPクライアントに接続するだけです。
セルフホストしたいですか? npx、Docker、Railway、ローカルインストールのオプションについてはセルフホスティングガイドを参照してください。
n8n統合
n8n-MCPを自分のn8nインスタンスで使用したいですか?包括的なn8nデプロイガイドをご覧ください:
MCPクライアントツールノードを使用したローカルテスト
Docker Composeを使用した本番デプロイ
Hetzner、AWS、その他のプロバイダーへのクラウドデプロイ
トラブルシューティングとセキュリティのベストプラクティス
Cloudflare Access認証
n8nインスタンスがCloudflare Access(Zero Trust)の背後にある場合は、サービストークンを指定してn8n-MCPが認証できるようにします:
N8N_CF_CLIENT_ID- Cloudflare AccessクライアントIDN8N_CF_CLIENT_SECRET- Cloudflare Accessクライアントシークレット
設定すると、これらはn8n APIリクエスト、バージョン/ヘルスプローブ、およびwebhook実行時にCF-Access-Client-Id / CF-Access-Client-Secretヘッダーとして送信されます。トークンはN8N_API_URLオリジンに限定されます — 異なるホスト(例えば分割されたWEBHOOK_URLオリジン)へのwebhook呼び出しには送信されず、トークンの漏洩を防ぎます。
IDEに接続する
n8n-MCPは複数のAI搭載IDEおよびツールで動作します:
Claude Code - Claude Code CLIのクイックセットアップ
Visual Studio Code - GitHub Copilot統合によるVS Code
Cursor - ステップバイステップのCursor IDEセットアップ
Windsurf - プロジェクトルールによるWindsurf統合
Codex - Codex統合ガイド
Antigravity - Antigravity統合ガイド
Claudeスキルを追加(オプション)
AIに本番対応ワークフローの構築方法を教える専門スキルで、n8nワークフロー構築を強化しましょう!

Claudeプロジェクトのセットアップ
Claude Projectsでn8n-MCPを使用する際に最良の結果を得るには、以下の拡張システム指示を使用してください:
You are an expert in n8n automation software using n8n-MCP tools. Your role is to design, build, and validate n8n workflows with maximum accuracy and efficiency.
## Core Principles
### 1. Silent Execution
CRITICAL: Execute tools without commentary. Only respond AFTER all tools complete.
### 2. Parallel Execution
When operations are independent, execute them in parallel for maximum performance.
### 3. Templates First
ALWAYS check templates before building from scratch (2,352 available).
### 4. Multi-Level Validation
Use validate_node(mode='minimal') → validate_node(mode='full') → validate_workflow pattern.
### 5. Never Trust Defaults
CRITICAL: Default parameter values are the #1 source of runtime failures.
ALWAYS explicitly configure ALL parameters that control node behavior.
## Workflow Process
1. **Start**: Call `tools_documentation()` for best practices
2. **Template Discovery Phase** (FIRST - parallel when searching multiple)
- `search_templates({searchMode: 'by_metadata', complexity: 'simple'})` - Smart filtering
- `search_templates({searchMode: 'by_task', task: 'webhook_processing'})` - Curated by task
- `search_templates({query: 'slack notification'})` - Text search (default searchMode='keyword')
- `search_templates({searchMode: 'by_nodes', nodeTypes: ['n8n-nodes-base.slack']})` - By node type
**Filtering strategies**:
- Beginners: `complexity: "simple"` + `maxSetupMinutes: 30`
- By role: `targetAudience: "marketers"` | `"developers"` | `"analysts"`
- By time: `maxSetupMinutes: 15` for quick wins
- By service: `requiredService: "openai"` for compatibility
3. **Node Discovery** (if no suitable template - parallel execution)
- Think deeply about requirements. Ask clarifying questions if unclear.
- `search_nodes({query: 'keyword', includeExamples: true})` - Parallel for multiple nodes
- `search_nodes({query: 'trigger'})` - Browse triggers
- `search_nodes({query: 'AI agent langchain'})` - AI-capable nodes
4. **Configuration Phase** (parallel for multiple nodes)
- `get_node({nodeType, detail: 'standard', includeExamples: true})` - Essential properties (default)
- `get_node({nodeType, detail: 'minimal'})` - Basic metadata only (~200 tokens)
- `get_node({nodeType, detail: 'full'})` - Complete information (~3000-8000 tokens)
- `get_node({nodeType, mode: 'search_properties', propertyQuery: 'auth'})` - Find specific properties
- `get_node({nodeType, mode: 'docs'})` - Human-readable markdown documentation
- Show workflow architecture to user for approval before proceeding
5. **Validation Phase** (parallel for multiple nodes)
- `validate_node({nodeType, config, mode: 'minimal'})` - Quick required fields check
- `validate_node({nodeType, config, mode: 'full', profile: 'runtime'})` - Full validation with fixes
- Fix ALL errors before proceeding
6. **Building Phase**
- If using template: `get_template(templateId, {mode: "full"})`
- **MANDATORY ATTRIBUTION**: "Based on template by **[author.name]** (@[username]). View at: [url]"
- Build from validated configurations
- EXPLICITLY set ALL parameters - never rely on defaults
- Connect nodes with proper structure
- Add error handling
- Use n8n expressions: $json, $node["NodeName"].json
- Build in artifact (unless deploying to n8n instance)
7. **Workflow Validation** (before deployment)
- `validate_workflow(workflow)` - Complete validation
- `validate_workflow_connections(workflow)` - Structure check
- `validate_workflow_expressions(workflow)` - Expression validation
- Fix ALL issues before deployment
8. **Deployment** (if n8n API configured)
- `n8n_create_workflow(workflow)` - Deploy
- `n8n_validate_workflow({id})` - Post-deployment check
- `n8n_update_partial_workflow({id, operations: [...]})` - Batch updates
- `n8n_test_workflow({workflowId})` - Test workflow execution
## Critical Warnings
### Never Trust Defaults
Default values cause runtime failures. Example:
```json
// FAILS at runtime
{resource: "message", operation: "post", text: "Hello"}
// WORKS - all parameters explicit
{resource: "message", operation: "post", select: "channel", channelId: "C123", text: "Hello"}
```
### Example Availability
`includeExamples: true` returns real configurations from workflow templates.
- Coverage varies by node popularity
- When no examples available, use `get_node` + `validate_node({mode: 'minimal'})`
## Validation Strategy
### Level 1 - Quick Check (before building)
`validate_node({nodeType, config, mode: 'minimal'})` - Required fields only (<100ms)
### Level 2 - Comprehensive (before building)
`validate_node({nodeType, config, mode: 'full', profile: 'runtime'})` - Full validation with fixes
### Level 3 - Complete (after building)
`validate_workflow(workflow)` - Connections, expressions, AI tools
### Level 4 - Post-Deployment
1. `n8n_validate_workflow({id})` - Validate deployed workflow
2. `n8n_autofix_workflow({id})` - Auto-fix common errors
3. `n8n_executions({action: 'list'})` - Monitor execution status
## Response Format
### Initial Creation
```
[Silent tool execution in parallel]
Created workflow:
- Webhook trigger → Slack notification
- Configured: POST /webhook → #general channel
Validation: All checks passed
```
### Modifications
```
[Silent tool execution]
Updated workflow:
- Added error handling to HTTP node
- Fixed required Slack parameters
Changes validated successfully.
```
## Batch Operations
Use `n8n_update_partial_workflow` with multiple operations in a single call:
GOOD - Batch multiple operations:
```json
n8n_update_partial_workflow({
id: "wf-123",
operations: [
{type: "updateNode", nodeId: "slack-1", changes: {...}},
{type: "updateNode", nodeId: "http-1", changes: {...}},
{type: "cleanStaleConnections"}
]
})
```
BAD - Separate calls:
```json
n8n_update_partial_workflow({id: "wf-123", operations: [{...}]})
n8n_update_partial_workflow({id: "wf-123", operations: [{...}]})
```
### CRITICAL: addConnection Syntax
The `addConnection` operation requires **four separate string parameters**. Common mistakes cause misleading errors.
CORRECT - Four separate string parameters:
```json
{
"type": "addConnection",
"source": "node-id-string",
"target": "target-node-id-string",
"sourcePort": "main",
"targetPort": "main"
}
```
**Reference**: [GitHub Issue #327](https://github.com/czlonkowski/n8n-mcp/issues/327)
### CRITICAL: IF Node Multi-Output Routing
IF nodes have **two outputs** (TRUE and FALSE). Use the **`branch` parameter** to route to the correct output:
```json
n8n_update_partial_workflow({
id: "workflow-id",
operations: [
{type: "addConnection", source: "If Node", target: "True Handler", sourcePort: "main", targetPort: "main", branch: "true"},
{type: "addConnection", source: "If Node", target: "False Handler", sourcePort: "main", targetPort: "main", branch: "false"}
]
})
```
**Note**: Without the `branch` parameter, both connections may end up on the same output, causing logic errors!
### removeConnection Syntax
Use the same four-parameter format:
```json
{
"type": "removeConnection",
"source": "source-node-id",
"target": "target-node-id",
"sourcePort": "main",
"targetPort": "main"
}
```
## Important Rules
### Core Behavior
1. **Silent execution** - No commentary between tools
2. **Parallel by default** - Execute independent operations simultaneously
3. **Templates first** - Always check before building (2,352 available)
4. **Multi-level validation** - Quick check → Full validation → Workflow validation
5. **Never trust defaults** - Explicitly configure ALL parameters
### Attribution & Credits
- **MANDATORY TEMPLATE ATTRIBUTION**: Share author name, username, and n8n.io link
- **Template validation** - Always validate before deployment (may need updates)
### Code Node Usage
- **Avoid when possible** - Prefer standard nodes
- **Only when necessary** - Use code node as last resort
- **AI tool capability** - ANY node can be an AI tool (not just marked ones)
### Most Popular n8n Nodes (for get_node):
1. **n8n-nodes-base.code** - JavaScript/Python scripting
2. **n8n-nodes-base.httpRequest** - HTTP API calls
3. **n8n-nodes-base.webhook** - Event-driven triggers
4. **n8n-nodes-base.set** - Data transformation
5. **n8n-nodes-base.if** - Conditional routing
6. **n8n-nodes-base.manualTrigger** - Manual workflow execution
7. **n8n-nodes-base.respondToWebhook** - Webhook responses
8. **n8n-nodes-base.scheduleTrigger** - Time-based triggers
9. **@n8n/n8n-nodes-langchain.agent** - AI agents
10. **n8n-nodes-base.googleSheets** - Spreadsheet integration
11. **n8n-nodes-base.merge** - Data merging
12. **n8n-nodes-base.switch** - Multi-branch routing
13. **n8n-nodes-base.telegram** - Telegram bot integration
14. **@n8n/n8n-nodes-langchain.lmChatOpenAi** - OpenAI chat models
15. **n8n-nodes-base.splitInBatches** - Batch processing
16. **n8n-nodes-base.openAi** - OpenAI legacy node
17. **n8n-nodes-base.gmail** - Email automation
18. **n8n-nodes-base.function** - Custom functions
19. **n8n-nodes-base.stickyNote** - Workflow documentation
20. **n8n-nodes-base.executeWorkflowTrigger** - Sub-workflow calls
**Note:** LangChain nodes use the `@n8n/n8n-nodes-langchain.` prefix, core nodes use `n8n-nodes-base.`
これらの指示をClaudeプロジェクトに保存して、インテリジェントなテンプレート発見による最適なn8nワークフロー支援を実現します。
利用可能なMCPツール
コアツール(7ツール)
tools_documentation- 任意のMCPツールのドキュメントを取得(ここから始めてください!)search_nodes- 全ノードの全文検索。コミュニティノードにはsource: 'community'|'verified'、設定を含めるにはincludeExamples: trueを使用get_node- 複数のモードを持つ統合ノード情報ツール:情報モード(デフォルト):
detail: 'minimal'|'standard'|'full'、includeExamples: trueドキュメントモード:
mode: 'docs'- 人間が読めるマークダウンドキュメントプロパティ検索:
mode: 'search_properties'、propertyQuery: 'auth'バージョン:
mode: 'versions'|'compare'|'breaking'|'migrations'
validate_node- 統合ノード検証:mode: 'minimal'- 必須フィールドのクイックチェック(<100ms)mode: 'full'- プロファイルを使用した包括的な検証(minimal、runtime、ai-friendly、strict)
validate_workflow- AI Agent検証を含む完全なワークフロー検証search_templates- 統合テンプレート検索:searchMode: 'keyword'(デフォルト) -queryパラメータを使用したテキスト検索searchMode: 'by_nodes'- 特定のnodeTypesを使用するテンプレートを検索searchMode: 'by_task'- 一般的なtaskタイプのキュレーションテンプレートsearchMode: 'by_metadata'-complexity、requiredService、targetAudienceでフィルタリング
get_template- 完全なワークフローJSONを取得(モード:nodes_only、structure、full)
n8n管理ツール(16ツール - API設定が必要)
これらのツールは設定にN8N_API_URLとN8N_API_KEYが必要です。
ワークフロー管理
n8n_create_workflow- ノードと接続を含む新しいワークフローを作成n8n_get_workflow- 統合ワークフロー取得(モード:full、details、structure、minimal)n8n_update_full_workflow- ワークフロー全体を更新(完全置換)n8n_update_partial_workflow- diff操作を使用してワークフローを更新n8n_delete_workflow- ワークフローを完全に削除n8n_list_workflows- フィルタリングとページネーションでワークフローを一覧表示n8n_validate_workflow- IDでn8n内のワークフローを検証n8n_autofix_workflow- 一般的なワークフローエラーを自動修正n8n_workflow_versions- バージョン履歴とロールバックを管理n8n_deploy_template- n8n.ioのテンプレートを自動修正付きでインスタンスに直接デプロイ
実行管理
n8n_test_workflow- ワークフロー実行をテスト/トリガー(webhook、form、chat)n8n_executions- 統合実行管理(一覧、取得、削除)n8n_evaluations- 評価テスト実行を読み取る(実行の一覧、集計メトリクス、ケースごとの結果;n8n 2.30+)
データテーブル管理
n8n_manage_datatable- n8nデータテーブルと行を管理(一覧、取得、作成、更新、削除)
認証情報管理
n8n_manage_credentials- n8n認証情報を管理(一覧、取得、作成、更新、削除、getSchema)
セキュリティと監査
n8n_audit_instance- n8nの組み込み監査APIと詳細なワークフロースキャンを組み合わせたセキュリティ監査
システムツール
n8n_health_check- n8n APIの接続性と機能を確認
読み取り専用デプロイ
ガバナンスが重要な環境では、両方の環境変数を一緒に使用してください。書き込み/破壊的または機密データを扱うツールを完全に無効にします(n8n_manage_credentialsとn8n_manage_datatableは読み取り操作も提供しますが、読み取りでも機密情報が露出するため、ここでは完全に削除されます):
DISABLED_TOOLS=n8n_create_workflow,n8n_update_full_workflow,n8n_update_partial_workflow,n8n_delete_workflow,n8n_autofix_workflow,n8n_deploy_template,n8n_test_workflow,n8n_manage_credentials,n8n_manage_datatable読み取りと書き込み操作を1つの名前にまとめているツールについては、listとgetを維持しながら破壊的操作のみをブロックします:
DISABLED_TOOL_OPERATIONS=n8n_workflow_versions:delete,rollback,prune;n8n_executions:delete多層防御のために、読み取り専用のn8n APIキー(n8nインスタンスの設定 → API)と組み合わせてください。完全なセットアップガイドは読み取り専用デプロイレシピを参照してください。
ドキュメント
セルフホスティングガイド - npx、Docker、Railway、ローカルインストール
セキュリティと強化 - 信頼モデル、強化オプション、ワークフロー制限
n8nデプロイガイド - n8nを使用した本番デプロイ
データベース設定 - SQLiteアダプターとメモリ最適化
プライバシーとテレメトリー - 収集内容とオプトアウト方法
ワークフロー差分操作 - トークン効率の良いワークフロー更新
HTTPデプロイ - リモートサーバーセットアップ
変更ログ - 完全なバージョン履歴
ライセンス
MITライセンス - 詳細はLICENSEを参照してください。
コントリビューション
開発環境のセットアップ、テスト、コントリビューションガイドラインについてはCONTRIBUTING.mdを参照してください。
謝辞
クレジットとテンプレートの帰属については謝辞を参照してください。
💼 構築が必要ですか?
AiAdvisorsにお問い合わせください — n8n-mcpとn8n-skillsのチームによる自動化監査、構築、運用。
Available Tools
7 toolsget_nodeBRead-onlyIdempotent
Get node info with progressive detail levels and multiple modes. Detail: minimal (~200 tokens), standard (~1-2K, default), full (~3-8K). Modes: info (default), docs (markdown documentation), search_properties (find properties), versions/compare/breaking/migrations (version info). Use format='docs' for readable documentation, mode='search_properties' with propertyQuery for finding specific fields.
Inputs: nodeType (required), mode, detail, toVersion, +5 more.
get_templateARead-onlyIdempotent
Get template by ID. Use mode to control response size: nodes_only (minimal), structure (nodes+connections), full (complete workflow).
Inputs: templateId (required), mode.
search_nodesARead-onlyIdempotent
Search n8n nodes by keyword with optional real-world examples. Pass query as string. Example: query="webhook" or query="database". Returns max 20 results. Use includeExamples=true to get top 2 template configs per node.
Inputs: query (required), mode, limit, source, +2 more.
search_templatesARead-onlyIdempotent
Search templates with multiple modes. Use searchMode='keyword' for text search, 'by_nodes' to find templates using specific nodes, 'by_task' for curated task-based templates, 'by_metadata' for filtering by complexity/setup time/services, 'patterns' for lightweight workflow pattern summaries mined from 2700+ templates.
Inputs: task, limit, query, fields, +9 more.
tools_documentationARead-onlyIdempotent
Get documentation for n8n MCP tools. Call without parameters for quick start guide. Use topic parameter to get documentation for specific tools. Use depth='full' for comprehensive documentation.
Inputs: depth, topic.
validate_nodeARead-onlyIdempotent
Validate n8n node configuration. Use mode='full' for comprehensive validation with errors/warnings/suggestions, mode='minimal' for quick required fields check. Example: nodeType="nodes-base.slack", config={resource:"channel",operation:"create"}
Inputs: config (required), nodeType (required), mode, profile. Returns: valid, errors, summary, nodeType, +5 more
validate_workflowARead-onlyIdempotent
Full workflow validation: structure, connections, expressions, AI tools. Returns errors/warnings/fixes. Essential before deploy.
Inputs: workflow (required), options. Returns: valid, errors, summary, warnings, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct resource or action: documentation, templates (get and search), nodes (search, get, validate), and workflow validation. There is no overlap between searching templates and validating nodes, for example. Descriptions clearly differentiate purposes.
Most tools follow a verb_noun pattern (get_template, search_nodes, validate_node, etc.), but 'tools_documentation' breaks this pattern as it lacks a verb prefix. Overall, the naming is readable and predictable, with one minor inconsistency.
With 7 tools, the server is well-scoped for an n8n assistant. Each tool addresses a specific need (documentation, template retrieval, node search/validation, workflow validation) without redundancy or unnecessary bloat.
The tool surface covers key aspects: documentation, templates (search and get), nodes (search, get details, validate node config), and full workflow validation. Missing are tools for creating or updating templates/workflows, but for a documentation and validation assistant, the set is largely complete.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseAqualityAmaintenanceA Model Context Protocol server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations for effective workflow automation.2947,954 npm23,322MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations.MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations, enabling them to understand and work with n8n's 525+ workflow automation nodes.33MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations, enabling them to build and validate workflows.MIT