Skip to main content
Glama

Dynamics 365 MCP Server

Dynamics 365 MCP サーバー 🚀

Node.jsタイプスクリプトMCPライセンス

概要

Microsoft Dynamics 365 MCP サーバーは、Anthorpic の**Model Context Protocol (MCP)**を使用して Microsoft Dynamics 365 と連携するためのツールを提供する MCP サーバーです。ユーザーは、 Claude Desktopからユーザー情報、アカウント、アカウントに関連付けられた商談の取得、アカウントの作成と更新など、さまざまな操作を実行できます。

このプロジェクトでは@modelcontextprotocol/sdkライブラリを使用して MCP サーバーとツールを実装し、データ操作のために Dynamics 365 API と統合します。


ツールのリスト 🛠️

ツール名説明入力出力
get-user-info現在認証されているユーザーに関する情報を取得します。なし名前、ユーザー ID、ビジネス ユニット ID などのユーザーの詳細。
fetch-accountsDynamics 365 からすべてのアカウントを取得します。なしJSON 形式のアカウントのリスト。
get-associated-opportunities指定されたアカウントに関連付けられた商談を取得します。accountId (文字列、必須)JSON 形式での機会のリスト。
create-accountDynamics 365 に新しいアカウントを作成します。アカウントの詳細を含むaccountData (オブジェクト、必須)。作成されたアカウントの詳細(JSON 形式)。
update-accountDynamics 365 内の既存のアカウントを更新します。更新された詳細を含むaccountId (文字列、必須)、 accountData (オブジェクト、必須)。更新されたアカウントの詳細(JSON 形式)。

前提条件 📝

プロジェクトをセットアップする前に、以下がインストールされていることを確認してください。

  • Node.js (v16 以上)
  • NPM (ノードパッケージマネージャー)
  • APIアクセスを備えたDynamics 365インスタンス
  • Dynamics 365 API アクセス用に構成された Azure Active Directory (AAD) アプリケーション

設定手順 ⚙️

プロジェクトをローカルでセットアップして実行するには、次の手順に従います。

1. リポジトリのクローンを作成する

git clone https://github.com/your-repo/dynamics365-mcp-server.git cd dynamics365-mcp-server

2. 依存関係をインストールする

npm install

3. 環境変数を設定する

プロジェクトのルートに .env ファイルを作成し、次の変数を追加します。

CLIENT_ID=your-client-id CLIENT_SECRET=your-client-secret TENANT_ID=your-tenant-id D365_URL=https://your-org.crm.dynamics.com

4. TypeScriptファイルをコンパイルする

npm run build

4. MCPサーバーを実行する

node build\index.js

次の出力が表示されます。

Dynamics365 MCP server running on stdio...

5. (オプション) Claude DesktopにMCPサーバーを登録する

  • Claude Desktopをインストールする
  • 設定 > 開発者 > 設定の編集に移動します
  • claude_desktop_config.jsonを編集する
{ "mcpServers": { "Dynamics365": { "command": "node", "args": [ "<Path to your MCP server build file ex: rootfolder/build/index.js>" ], "env": { "CLIENT_ID": "<D365 Client Id>", "CLIENT_SECRET": "<D365 Client Secret>", "TENANT_ID": "<D365 Tenant ID>", "D365_URL": "Dynamics 365 url" } } } }
  • Claudeデスクトップを再起動します
  • これで、プロンプトウィンドウにサーバーツールが表示されるはずです。クロード サーバー ツール
  • ツールget-user-infoを呼び出してプロンプトをテストしてみましょうユーザーツールテストを取得する

6. (オプション) MCP Interceptorを使用したテストツール

  • ターミナルで次のコマンドを実行します
npx @modelcontextprotocol/inspector node build/index.js

迎撃コマンド

  • 🔍 http://localhost:5173にアクセスしてください🚀インターセプター
  • これでサーバーに接続してすべてのツールをテストできます。

デバッグ🐛

問題が発生した場合は、次の点を確認してください。

問題が発生した場合は、次の点を確認してください。

  • .env ファイルは適切に構成されています。
  • Azure AD アプリケーションには、Dynamics 365 API に必要なアクセス許可があります。
  • Dynamics 365 インスタンスは、ご使用の環境からアクセスできます。
  • コードにデバッグログを追加して、問題を追跡することもできます。例:
console.error("Debugging: Loaded environment variables:", process.env);

貢献中🤝

貢献を歓迎します!バグや機能のリクエストについては、お気軽にプルリクエストを送信したり、問題を報告してください。

貢献するには:

  • リポジトリをフォークします。
  • 機能またはバグ修正用の新しいブランチを作成します。
  • 変更をコミットし、プル リクエストを送信します。
  • ご協力ありがとうございます!😊
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP クライアント (例: Claude Desktop) から Microsoft Dynamics 365/Power Platform との対話を可能にするモデル コンテキスト プロトコル サーバー。これにより、ユーザーは自然言語を使用してデータを取得、作成、更新できます。

  1. 概要
    1. ツールのリスト 🛠️
      1. 前提条件 📝
        1. 設定手順 ⚙️
          1. リポジトリのクローンを作成する
          2. 依存関係をインストールする
          3. 環境変数を設定する
          4. TypeScriptファイルをコンパイルする
          5. MCPサーバーを実行する
          6. (オプション) Claude DesktopにMCPサーバーを登録する
          7. (オプション) MCP Interceptorを使用したテストツール
        2. デバッグ🐛
          1. 問題が発生した場合は、次の点を確認してください。
            1. 貢献中🤝

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                This server provides a standardized framework using the Model Context Protocol (MCP) to seamlessly integrate and manage diverse tools, enabling features like Twitter automation, cryptocurrency updates, and ElizaOS interaction.
                Last updated -
                2
                Python
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
                Last updated -
                48
                4
                TypeScript
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol (MCP) server that provides intelligent access to PowerPlatform/Dataverse entities and records. This tool offers context-aware assistance, entity exploration and metadata access.
                Last updated -
                466
                1
                JavaScript
                MIT License
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that enables Claude Desktop to interact with Microsoft Dynamics 365, allowing users to retrieve information, create and update accounts, and manage opportunities through natural language.
                Last updated -
                5
                4
                TypeScript
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/srikanth-paladugula/mcp-dyamics365-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server