Edit

Connect your AI agents and assistants to Dynamics 365 Sales MCP Server

You can integrate the Dynamics 365 Sales Model Context Protocol (MCP) server with your Microsoft Copilot Studio agent, or any other AI agent or assistant such as GitHub Copilot that supports the MCP standard. Claude Desktop isn't supported at this time.

Prerequisites

Make sure you meet the following prerequisites:

Connect Sales MCP Server to Copilot Studio agent

To connect to the Sales MCP server in Microsoft Copilot Studio, follow the steps in Add tools and resources from a Model Context Protocol (MCP) server to your agent.

Note

Select Dynamics 365 Sales MCP server when prompted to select the MCP server. If you want to perform CRUD operations on Dataverse records, connect to the Dataverse MCP server as well.

Use Sales MCP tools in Visual Studio Code with GitHub Copilot

  1. Download and open Visual Studio Code.

  2. Press Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (Mac).

  3. Type MCP: Add Server, and select the server type as HTTP (HTTP or Server-Sent Events).

  4. Add the MCP server URL for Dynamics 365 Sales and Dataverse by using the following information:

    • For Dataverse, use https://<OrgURL>/api/mcp.

    • For Dynamics 365 Sales, use the following URL and replace the environment ID. https://agent365.svc.cloud.microsoft/mcp/environments/<EnvironmentID>/servers/msdyn_SalesMCPServer

    The following snippet shows a sample configuration:

    {
            "servers": {
                "Dataverse-mcp-server": {
                    "url": "https://northwind.crm10.dynamics.com/api/mcp",
                    "type": "http"
                },
                "Sales-mcp-server": {
                    "url": "https://agent365.svc.cloud.microsoft/mcp/environments/00aa00aa-bb11-cc22-dd33-44ee44ee44ee/servers/msdyn_SalesMCPServer",
                    "type": "http" 
                }
    
            },
            "inputs": []
    }
    
  5. Resolve syntax errors, if any, in the mcp.json file and save it. You should see the Start button enabled for each of the MCP servers you added in the configuration file.

  6. Select Start on all the servers. Screenshot of the MCP server start button in Visual Studio Code

  7. Press Ctrl + Alt + I to open the GitHub Copilot chat pane and choose any agent (For example, GPT 5.5).

  8. Type a prompt to retrieve information from Dynamics 365 Sales. For example, you can type "List the leads that were updated since my last login". The agent uses the tools in the Sales MCP server to retrieve the information and display it in the chat pane. For a list of supported tools and their capabilities, refer to the following articles: