n8n MCP Server

by lowprofix

Integrations

  • Supports integration with n8n instances hosted on Cloudron, specifically mentioning connectivity to instances on n8n.bienquoi.com.

  • Offers ready-to-use workflow templates for Google Calendar integrations through n8n.

  • Provides tools for validating and managing n8n workflows, including workflow validation against best practices, workflow management (listing, retrieving, creating, updating, deleting, exporting, importing), and direct access to the n8n API for advanced operations.

n8n用MCPサーバー

このプロジェクトは、n8n 自動化プロジェクトにワークフロー検証ツールとベスト プラクティスを提供する n8n 用のマスター コントロール プログラム (MCP) サーバーです。

特徴

  • ワークフロー検証: ワークフローがベストプラクティスに従っているか確認します
    • 命名規則
    • エラー処理
    • 安全
    • パフォーマンス
    • ドキュメント
  • NextJS 統合: n8n ワークフローを NextJS アプリケーションに統合します
    • APIルートの自動生成
    • OpenAPI/Swaggerドキュメントの作成
    • TypeScript 型生成
    • 統合を容易にするAPIクライアント
  • ワークフロー管理: n8n ワークフローと対話します (リスト、取得、作成、更新、削除、エクスポート、インポート)
  • n8n API : 高度な操作のためにn8n APIに直接アクセスします
  • ワークフロー テンプレート: Google カレンダーなど、さまざまなユースケースに適した既製のテンプレートを使用します。

前提条件

  • Node.js (v16 以上)
  • pnpm (v7以上)
  • n8n インスタンス (n8n.bienquoi.com の Cloudron インスタンスと同様にローカルまたはリモート)

施設

  1. このリポジトリをクローンするか、プロジェクトフォルダに移動してください
  2. 依存関係をインストールします。
pnpm install
  1. 環境変数を設定します。
cp .env.example .env

n8n API 接続情報を使用して.envファイルを編集します。

使用

プロジェクトの構築

pnpm build

サーバーの起動

pnpm start

MCP サーバーはhttp://localhost:3000 (または .env ファイルで指定されたポート) でアクセスできます。

Claude Desktop で使用する

この MCP サーバーを Claude Desktop で使用するには、 %APPDATA%/Claude/フォルダーのclaude_desktop_config.jsonファイルを構成する必要があります。

{ "mcpServers": { "n8n-mcp-server": { "command": "node", "args": ["/chemin/absolu/vers/mcp-n8n-server/dist/server.js"] } } }

プロジェクト構造

mcp-n8n-server/ ├── src/ # Code source │ ├── tools/ # Outils MCP │ │ ├── N8nApiTool.ts # Outil pour interagir avec l'API n8n │ │ ├── WorkflowManagerTool.ts # Outil pour gérer les workflows │ │ ├── NextJSIntegrationTool.ts # Outil pour générer des intégrations NextJS │ │ ├── WorkflowValidatorTool.ts # Outil pour valider les workflows │ │ └── ... │ ├── validators/ # Validateurs de workflows │ │ ├── naming.js # Validateur de conventions de nommage │ │ ├── errorHandling.js # Validateur de gestion des erreurs │ │ ├── security.js # Validateur de sécurité │ │ ├── performance.js # Validateur de performance │ │ └── documentation.js # Validateur de documentation │ ├── resources/ # Ressources partagées │ └── server.ts # Point d'entrée du serveur ├── dist/ # Code compilé ├── public/ # Fichiers statiques ├── output/ # Répertoire pour les sorties des outils ├── .env.example # Exemple de fichier de configuration └── README.md # Documentation

利用可能なツール

1. N8nApiツール

n8n API と直接対話します。

// Exemple d'utilisation { "method": "GET", "endpoint": "/workflows", "params": "?active=true" }

2. ワークフローマネージャーツール

n8n ワークフロー (リスト、取得、作成、更新、削除、エクスポート、インポート) を管理します。

// Exemple d'utilisation { "action": "list", "tags": "production" }

3. NextJS統合ツール

n8n ワークフロー用の NextJS 統合を生成します。

// Exemple d'utilisation { "workflowId": "123", "outputDir": "./my-nextjs-app/pages/api", "generateTypes": true, "generateOpenAPI": true }

4. ワークフローバリデータツール

さまざまな基準に基づいて n8n ワークフローを検証します。

// Exemple d'utilisation { "workflow": "{...}", "validators": ["naming", "errorHandling", "security"], "strictness": "high" }

貢献

貢献を歓迎します!お気軽に問題やプルリクエストを開いてください。

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

ワークフロー管理、NextJS 統合、API アクセスなど、n8n 自動化プロジェクトにワークフロー検証ツールとベスト プラクティスを提供するマスター コントロール プログラム サーバー。

  1. Fonctionnalités
    1. Prérequis
      1. Installation
        1. Utilisation
          1. Construction du projet
          2. Démarrage du serveur
          3. Utilisation avec Claude Desktop
        2. Structure du projet
          1. Outils disponibles
            1. 1. N8nApiTool
            2. 2. WorkflowManagerTool
            3. 3. NextJSIntegrationTool
            4. 4. WorkflowValidatorTool
          2. Contribution
            1. Licence

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                A server for programmatically creating and managing n8n workflows with a REST API interface, supporting workflow creation, validation, and export.
                Last updated -
                10
                28
                103
                JavaScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that enables AI assistants to interact with n8n workflows through natural language, supporting actions like listing, creating, updating, executing and monitoring workflows.
                Last updated -
                3,426
                77
                TypeScript
                • Apple
                • Linux
              • A
                security
                A
                license
                A
                quality
                Used to create an assistant integrated with n8n that can search n8n documentation, example workflows, and community forums.
                Last updated -
                1
                6
                Python
                MIT License

              View all related MCP servers

              ID: zjn2iy97sr