Cover image
Try Now
2025-03-29

Servidor MCP para Microsoft Dynamics 365

3 years

Works with Finder

1

Github Watches

1

Github Forks

2

Github Stars

Dynamics 365 MCP Server 🚀

Node.js TypeScript MCP License

Overview

The Microsoft Dynamics 365 MCP Server is a MCP server that provides tools to interact with Microsoft Dynamics 365 using the Model Context Protocol(MCP) by Anthorpic. It allows users to perform various operations such as retrieving user information, accounts, opportunities associated with an account, create and update accounts from Claude Desktop.

This project uses the @modelcontextprotocol/sdk library to implement the MCP server and tools, and it integrates with Dynamics 365 APIs for data operations.


List of Tools 🛠️

Tool Name Description Input Output
get-user-info Fetches information about the currently authenticated user. None User details including name, user ID, and business unit ID.
fetch-accounts Fetches all accounts from Dynamics 365. None List of accounts in JSON format.
get-associated-opportunities Fetches opportunities associated with a given account. accountId (string, required) List of opportunities in JSON format.
create-account Creates a new account in Dynamics 365. accountData (object, required) containing account details. Details of the created account in JSON format.
update-account Updates an existing account in Dynamics 365. accountId (string, required), accountData (object, required) containing updated details. Details of the updated account in JSON format.

Prerequisites 📝

Before setting up the project, ensure you have the following installed:

  • Node.js (v16 or higher)
  • NPM (Node Package Manager)
  • A Dynamics 365 instance with API access
  • Azure Active Directory (AAD) application configured for Dynamics 365 API access

Configuration Steps ⚙️

Follow these steps to set up and run the project locally:

1. Clone the Repository

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

2. Install Dependencies

npm install

3. Configure Environment Variables

Create a .env file in the root of the project and add the following variables:

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

4. Compile TypeScript Files

npm run build

4. Run MCP Server

node build\index.js

You should see the following output:

Dynamics365 MCP server running on stdio...

5. (Optional) Register your MCP Server with Claude Desktop

  • Install Claude Desktop
  • Navigate to Settings > Developer > Edit Config
  • Edit 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"
            }
        }
    }
}
  • Restart Claude Desktop

  • Now you should be able to see the server tools in the prompt window  Claude Server Tools

  • Let's test a prompt by invoking tool - get-user-info  Get User Tool Test

Debugging 🐛

If you encounter issues, ensure the following:

If you encounter issues, ensure the following:

  • The .env file is properly configured.
  • The Azure AD application has the necessary permissions for Dynamics 365 APIs.
  • The Dynamics 365 instance is accessible from - your environment.
  • You can also add debug logs in the code to trace issues. For example:
console.error("Debugging: Loaded environment variables:", process.env);

Contributing 🤝

Contributions are welcome! Feel free to submit a pull request or open an issue for any bugs or feature requests.

To contribute:

  • Fork the repository.
  • Create a new branch for your feature or bug fix.
  • Commit your changes and submit a pull request.
  • We appreciate your contributions! 😊

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • albert tan
  • Japanese education, creating tailored learning experiences.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • huahuayu
  • Una puerta de enlace de API unificada para integrar múltiples API de explorador de blockchain similar a Esterscan con soporte de protocolo de contexto modelo (MCP) para asistentes de IA.

  • deemkeen
  • Controle su MBOT2 con un combo de potencia: MQTT+MCP+LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocolo del conector de mensajes )服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 支持员工信息查询和消息发送等功能。 支持员工信息查询和消息发送等功能。

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

    Reviews

    4 (1)
    Avatar
    user_aO1iLAHv
    2025-04-15

    I have tried many automation platforms, but Hass-MCP by voska stands out with its user-friendly interface and powerful features. It integrates seamlessly with my smart home devices, making it incredibly convenient to control everything from one dashboard. The setup was straightforward, and the support from the developer is top-notch. Highly recommend this for anyone looking to simplify their smart home management! Check it out here: https://mcp.so/server/hass-mcp/voska