Labsco
codeurali logo

mcp-dataverse

β˜… 11

from codeurali

Microsoft Dataverse MCP server: 54 tools for CRUD, FetchXML, metadata, audit, batch, solutions and more.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

MCP Dataverse

MCP Dataverse

The most complete MCP server for Microsoft Dataverse.

79 tools Β· 4 resources Β· 10 guided workflows Β· Three auth modes

npm downloads

β†’ Full Documentation


β–Ά Watch MCP Dataverse in action β€” 60s demo

Why MCP Dataverse?

AI agents hallucinate schema, guess column names, and build broken OData queries. This server gives them real-time access to your Dataverse environment β€” schema, records, metadata, solutions β€” through the Model Context Protocol.

  • Three auth modes β€” device code (local), client credentials (CI/CD), managed identity (Azure-hosted)
  • Works with any MCP client β€” VS Code, Claude, Cursor, Windsurf, Gemini, Codex CLI
  • Atomic tools β€” each tool does one thing well; the AI picks the right one
  • Structured outputs β€” every response returns {summary, data, suggestions}
  • Guardrails β€” destructive operations require explicit confirmation
  • Encrypted tokens β€” AES-256-GCM cached credentials, never logged

Authentication

Three modes β€” choose based on where the server runs:

ModeWhen to use
Device Code (default)Local development β€” interactive Microsoft login, token cached on disk
Client CredentialsUnattended: CI/CD, Docker, Azure services β€” authMethod: "client-credentials" + App Registration
Managed IdentityAzure-hosted (App Service, Container Apps) β€” zero secrets, authMethod: "managed-identity"

Device code quick start: authentication triggers on the first tool call.

  1. Open View β†’ Output β†’ MCP β€” a sign-in code appears
  2. Go to https://microsoft.com/devicelogin, enter the code, sign in with your work account
  3. Token is cached encrypted β€” all future starts are silent

For client credentials and managed identity setup, see Authentication docs.


Capabilities

CategoryCountDescription
Metadata9Tables, schema, relationships, option sets, entity keys
Query3OData, FetchXML, paginated retrieval
CRUD6Get, create, update, delete, upsert, assign
Relations4Associate, associate bulk, disassociate, query associations
Actions & Functions6Bound/unbound Dataverse actions and functions
Batch1Up to 1000 operations atomically
Solutions2Publish customizations, create sitemap
Search1Full-text Relevance Search
Users & Teams4Users, roles, teams, role assignment
RBAC7Role privileges: list, assign, remove, add, replace, get, team
Files2Upload/download file and image columns
Audit & Trace3Audit log, plugin trace logs, workflow trace logs
Annotations2Notes and file attachments
Customization4Custom actions, plugins, env variables, connection references
Attributes4Create, update, delete columns; lookup column type
Schema (write)2Create custom tables and relationships
Record Access4Check, grant, revoke record sharing; merge records
Assistance2Tool router, tool tags
+ more…Delta sync, impersonation, views, business units, duplicate detection

β†’ Full Capabilities Reference


HTTP Transport

Run as an HTTP server for multi-client use:

MCP_TRANSPORT=http MCP_HTTP_PORT=3000 MCP_HTTP_SECRET=mysecret node dist/server.js

Connect using VS Code / Copilot with:

{
  "servers": {
    "dataverse": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer mysecret"
      }
    }
  }
}

Performance Tip

MCP Dataverse is designed to be comprehensive, but most AI models work best with fewer tools in context. Deselect the tools you don't need in your client's tool picker (e.g. VS Code Chat panel) to keep the agent focused and responsive.


Roadmap

VersionFeatureStatus
v0.4HTTP transport + attribute management + schema consistencyβœ… Released
v0.5Enterprise auth (Client Credentials, Managed Identity, Entra JWT)βœ… Released
v0.6MCP Prompts (5 templates) + MCP Resources (4)βœ… Released
v0.7Schema write (create table/relationship) + Record Access (share, merge)βœ… Released (v0.7.5)

β†’ Full Roadmap