ERPNext MCP Server

MIT License
4
  • Apple

ERPNext MCP サーバー

ERPNext統合のためのモデルコンテキストプロトコルサーバー

これはTypeScriptベースのMCPサーバーであり、ERPNext/Frappe APIとの統合を提供します。これにより、AIアシスタントはモデルコンテキストプロトコルを介してERPNextのデータや機能とやり取りできるようになります。

特徴

リソース

  • erpnext://{doctype}/{name} URI 経由で ERPNext ドキュメントにアクセスします。
  • 構造化データアクセスのためのJSON形式

ツール

  • authenticate_erpnext - ユーザー名とパスワードを使用して ERPNext で認証します
  • get_documents - 特定のドキュメントタイプのドキュメントのリストを取得する
  • create_document - ERPNextで新しいドキュメントを作成する
  • update_document - ERPNext 内の既存のドキュメントを更新する
  • run_report - ERPNextレポートを実行する
  • get_doctype_fields - 特定のDocTypeのフィールドリストを取得する
  • get_doctypes - 利用可能なすべてのDocTypeのリストを取得します

構成

サーバーには次の環境変数が必要です。

  • ERPNEXT_URL - ERPNextインスタンスのベースURL
  • ERPNEXT_API_KEY (オプション) - 認証用のAPIキー
  • ERPNEXT_API_SECRET (オプション) - 認証用のAPIシークレット

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "erpnext": { "command": "node", "args": ["/path/to/erpnext-server/build/index.js"], "env": { "ERPNEXT_URL": "http://your-erpnext-instance.com", "ERPNEXT_API_KEY": "your-api-key", "ERPNEXT_API_SECRET": "your-api-secret" } } } }

VSCode で Claude を使用するには、次のサーバー構成を追加します。

MacOS の場合: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json Windows の場合: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

使用例

認証

<use_mcp_tool> <server_name>erpnext</server_name> <tool_name>authenticate_erpnext</tool_name> <arguments> { "username": "your-username", "password": "your-password" } </arguments> </use_mcp_tool>

顧客リストを取得する

<use_mcp_tool> <server_name>erpnext</server_name> <tool_name>get_documents</tool_name> <arguments> { "doctype": "Customer" } </arguments> </use_mcp_tool>

顧客の詳細を取得する

<access_mcp_resource> <server_name>erpnext</server_name> <uri>erpnext://Customer/CUSTOMER001</uri> </access_mcp_resource>

新しいアイテムを作成

<use_mcp_tool> <server_name>erpnext</server_name> <tool_name>create_document</tool_name> <arguments> { "doctype": "Item", "data": { "item_code": "ITEM001", "item_name": "Test Item", "item_group": "Products", "stock_uom": "Nos" } } </arguments> </use_mcp_tool>

アイテムフィールドを取得する

<use_mcp_tool> <server_name>erpnext</server_name> <tool_name>get_doctype_fields</tool_name> <arguments> { "doctype": "Item" } </arguments> </use_mcp_tool>
-
security - not tested
-
license - not tested
-
quality - not tested

AI アシスタントがモデル コンテキスト プロトコルを介して ERPNext/Frappe システムと対話し、ドキュメントへのアクセス、レコードの作成/更新、レポートの実行を可能にする TypeScript ベースのサーバーです。

  1. Features
    1. Resources
    2. Tools
  2. Configuration
    1. Development
      1. Installation
        1. Debugging
      2. Usage Examples
        1. Authentication
        2. Get Customer List
        3. Get Customer Details
        4. Create New Item
        5. Get Item Fields

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        A TypeScript server that enhances AI assistants' capabilities when working with Starwind UI components, providing tools for project initialization, component installation, documentation access, and more.
        Last updated -
        6
        15
        TypeScript
        MIT License
      • -
        security
        F
        license
        -
        quality
        A TypeScript server that allows AI agents to access, retrieve, and analyze Sentry error data through the Modern Context Protocol.
        Last updated -
        2
        TypeScript
      • -
        security
        F
        license
        -
        quality
        This is a TypeScript-based MCP server that provides integration with ERPNext/Frappe API. It enables AI assistants to interact with ERPNext data and functionality through the Model Context Protocol.
        Last updated -
        4
        JavaScript
        MIT License
        • Apple
      • -
        security
        F
        license
        -
        quality
        A TypeScript template for creating Model Context Protocol servers that enable AI models to utilize external tools, including example operations and simple number addition functionality.
        Last updated -
        2
        TypeScript

      View all related MCP servers

      ID: tvojdsabap