How to connect Dynamics365 MCP with Cursor

How to integrate Dynamics365 MCP with Cursor Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor. And in this guide, I will explain the easiest and most secure way to connect your Dynamics365 account to Cursor via Composio Connect, so it can create a new sales lead for Acme Corp, list all open invoices for this quarter, add a support case for a specific customer, and more without ever putting your account credentials at risk.

Dynamics365 logoDynamics365
Oauth2

Dynamics 365 is Microsoft's platform combining CRM, ERP, and productivity apps. It streamlines sales, marketing, service, and operations in one place.

16 Tools

How to integrate Dynamics365 MCP with Cursor

Cursor is one of the leading AI-powered code editors. It is built to help developers write, understand, and refactor code faster with AI assistance built directly into the editor.

And in this guide, I will explain the easiest and most secure way to connect your Dynamics365 account to Cursor via Composio Connect, so it can create a new sales lead for Acme Corp, list all open invoices for this quarter, add a support case for a specific customer, and more without ever putting your account credentials at risk.

Also integrate Dynamics365 with

Why Composio?

  • 1,000+ SaaS toolkits out of the box. Skip the work of building and maintaining integrations, Composio gives you instant access to a vast catalog of pre-built connectors.
  • One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
  • Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand. A remote CLI workbench lets LLMs compose these tools into workflows for complex automation.

Connect Dynamics365 to Cursor

Two ways to install — pick whichever you prefer.

1. Install with one click

Click the button below to add Composio to Cursor.

Install in Cursor

2. Or add manually

Add to your Cursor mcp.json

Open .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global config) and add the following configuration:

bash
{
  "servers": {
    "composio": {
      "type": "http",
      "url": "https://connect.composio.dev/mcp"
    }
  }
}

3. Authorize

Restart Cursor, then click "Connect" next to Composio in MCP Tools settings.

Cursor MCP Tools settings with Connect button next to Composio

A browser window will open to authorize.

Composio authorization browser window

Connect your Dynamics365 account

Back in Cursor, ask the agent to connect to Dynamics365 or give it any Dynamics365-related task.

For example, ask it to:

  • "Create a new sales lead for Acme Corp"
  • "List all open invoices for this quarter"
  • "Add a support case for a specific customer"

It will prompt you to authenticate and authorize access to Dynamics365.

That is it. Composio tools are now available in Cursor, and your Dynamics365 account is ready to use.

Conclusion

You have successfully connected Dynamics365 to Cursor using Composio Connect. Your agent can now use Dynamics365 securely without exposing credentials in prompts or local scripts.

TOOLS

Supported Tools

Every Dynamics365 action and event your agent gets out of the box.

Create Account

Creates a new account entity record in Dynamics CRM using the Web API.

Create Case

Creates a new case (incident) entity record in Dynamics CRM using the Web API.

Create Contact

Creates a new contact entity record in Dynamics CRM using the Web API.

Create Invoice

Creates a new invoice entity record in Dynamics CRM using the Web API.

Create Lead

Creates a new lead entity record in Dynamics CRM using the Web API.

Create Opportunity

Creates a new opportunity entity record in Dynamics CRM using the Web API.

Create Sales Order

Creates a new sales order entity record in Dynamics CRM using the Web API.

Dynamicscrm get a invoice

Dynamicscrm get a invoice

Dynamicscrm get a lead

Dynamicscrm get a lead

Dynamicscrm get all leads

Dynamicscrm get all leads

Update Case

Updates an existing case (incident) entity record in Dynamics CRM using the Web API.

Update Invoice

Updates an existing invoice entity record in Dynamics CRM using the Web API.

Update Lead

Updates an existing lead entity record in Dynamics CRM using the Web API.

Update Opportunity

Updates an existing opportunity entity record in Dynamics CRM using the Web API.

Update Sales Order

Updates an existing sales order entity record in Dynamics CRM using the Web API.

Get all invoices action

Get all invoices action

FAQ

Frequently asked questions

With a standalone Dynamics365 MCP server, the agents and LLMs can only access a fixed set of Dynamics365 tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Dynamics365 and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Cursor fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Dynamics365 tools.

Yes, absolutely. You can configure which Dynamics365 scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Dynamics365 data and credentials are handled as safely as possible.

Start with Dynamics365.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Dynamics365 tool your agent needs.Free to start.

Start building