jaj-dataverse-dev-mcp
This server provides an agent-friendly, thin MCP wrapper over the Dataverse Web API, using your Azure CLI identity to interact with multiple Dataverse environments. It enables:
Check server status:
pingconfirms the MCP is running.List configured environments:
list_environmentsshows the Dataverse environments defined inenvironments.json.Identify current user:
whoamireturns the Dataverse user, business unit, and organization for the authenticated identity.Execute arbitrary Web API requests:
dataverse_requestsupports GET, POST, PATCH, DELETE against paths relative to/api/data/v9.2/, including OData queries, CRUD, functions, and actions. You can specify body, headers (Accept, Prefer, If-Match, If-None-Match) for fine-grained control.Perform development tasks: Query and update records, inspect metadata (tables, columns, publishers, solutions), create and configure unmanaged solutions, add components, run actions/functions, and export solutions.
Work with multiple environments: Each request targets a named environment from your config, supporting separate tenants and write permissions per environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jaj-dataverse-dev-mcp List the available Dataverse environments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JAJ Dataverse Dev MCP
Lightweight MCP server for day-to-day Dataverse and Power Platform development.
Connect your agents to multiple Dataverse environments using your existing Azure CLI identity. The server exposes a thin, agent-friendly layer over the Web API for data, metadata, solutions, components, troubleshooting, and development tasks.
Agent → MCP → Azure CLI identity → Dataverse Web API
Quick Start for VS Code + GitHub Copilot
Add the server to .vscode/mcp.json:
{
"servers": {
"dataverse-dev": {
"command": "npx",
"args": [ "-y", "jaj-dataverse-dev-mcp" ]
}
}
}Save the file and press Start. The first start may take some time while npx downloads the package.
Sign in with Azure CLI:
az loginCreate environments.json in your project root with the environments you need:
{
"environments": {
"dev": {
"url": "https://org8ffb6d07.crm.dynamics.com/",
"allowWrite": true
}
}
}Open Copilot and try:
List the available Dataverse environments
Call whoami for the dev environment
Show me the names and IDs of the five most recently created accounts
List the unmanaged solutions
That's it!
Other MCP-compatible agents follow the same pattern: run jaj-dataverse-dev-mcp over stdio and provide access to your local Azure CLI session and connection configuration.
Related MCP server: Dataverse MCP Server
Quick Start for Claude Desktop
Add the server to claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"dataverse-dev": {
"command": "npx",
"args": ["-y", "jaj-dataverse-dev-mcp"],
"env": { "DATAVERSE_ENVIRONMENTS_PATH": "C:/Users/you/project/environments.json" }
}
}
}Save the file and fully quit and restart Claude Desktop (config changes aren't picked up by simply closing the window).
Continue from "Sign in with Azure CLI..." in Quick Start for VS Code + GitHub Copilot
Why this project?
There are already several Dataverse MCP implementations, including Microsoft's own tooling.
This project grew out of day-to-day development work where agents frequently needed capabilities beyond the available specialized tools. In many cases, the agent could solve the task successfully by constructing Dataverse Web API requests directly.
This MCP embraces that approach.
Instead of hiding Dataverse behind a large abstraction, it provides broad access to the Web API through a thin wrapper.
It is also designed for developers and consultants who regularly move between projects, customers, and Dataverse environments.
One MCP server can work with multiple Dataverse environments while using existing Azure CLI identity. No separate app registration, client ID, or client secret is required.
Prerequisites
Node.js 20+
Azure CLI installed and signed in
Access to one or more Dataverse environment URLs
Authentication
# Authentication is based on your current Azure CLI identity:
az login
# Useful variants:
az login --tenant <tenant-id> # Specific tenant, if your tenant is not the default
az login --allow-no-subscriptions # Tenant without subscriptions
az login --use-device-code # Remote/headless environments
# To inspect the currently active Azure CLI account:
az account showDataverse environments
Environments are configured in environments.json in the project root and identified by friendly names such as dev, test, prod.
Agents use these names when selecting which Dataverse environment to work with.
If an environment is in a different tenant than the default Azure CLI tenant, add a tenantId for that environment.
DATAVERSE_ENVIRONMENTS_PATH can be used to override the config file path at runtime.
Example:
{
"environments": {
"dev": {
"url": "https://YOUR-DEV.crm.dynamics.com/",
"allowWrite": true
},
"test": {
"url": "https://YOUR-TEST.crm4.dynamics.com",
"allowWrite": false
},
"prod": {
"url": "https://YOUR-PROD.crm4.dynamics.com",
"allowWrite": false,
"tenantId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
}Add project-specific Copilot instructions
For better agent behavior, add Dataverse-specific instructions to the project where you use the MCP.
Copy docs/examples/copilot-instructions.md to .github/copilot-instructions.md in the workspace where you use the MCP server, then customize it for your project:
replace
YOUR-dev,YOUR-test, andYOUR-prodwith the environment names fromenvironments.jsonreplace
YOUR_DEFAULT_SOLUTIONwith the unique name of the primary Dataverse solutionadjust the default environment and safety rules for the project
Commit the customized file to the project repository so all contributors use the same guidance.
Run directly with npx
The package can also be launched manually with stdio as default transport:
npx -y jaj-dataverse-dev-mcpFor development or clients that use Streamable HTTP add --http.
What can it be used for?
Although the MCP is intentionally a thin wrapper around the Dataverse Web API, it can support a broad range of development and troubleshooting tasks, for example:
query and update Dataverse records
inspect tables, columns, metadata, publishers, and solutions
create and configure unmanaged solutions
add existing components to solutions
work with Dataverse actions and functions
export solutions for deployment to other environments
This makes it useful for both direct development tasks and agent-driven workflows where the agent inspects Dataverse, decides on the next action, and performs it through the MCP.
Available Tools
4 toolsdataverse_requestA
Execute a Dataverse Web API request. The path is relative to /api/data/v9.2/. Supports OData queries, CRUD, functions and actions. Use $select and $top where appropriate to avoid unnecessarily large responses. Do not pass a complete URL.
Inputs: path (required), method (required), environment (required), body, +4 more.
list_environmentsA
List the configured Dataverse environments that can be accessed.
Inputs: no named parameters.
pingA
Check that the MCP server is running.
Inputs: no named parameters.
whoamiB
Get the Dataverse user, business unit and organization for the Azure CLI authenticated identity.
Inputs: environment (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: ping checks server availability, list_environments shows configured environments, whoami returns identity info, and dataverse_request handles arbitrary Dataverse API calls. There is no overlap or ambiguity, as the generic tool is explicitly scoped to the Dataverse Web API.
Tool names do not follow a consistent pattern. ping and whoami are single-word commands, list_environments uses verb_noun, and dataverse_request is a noun_noun combination. While readable, the mixed styles are not predictable.
With only 4 tools, the server is well-scoped for its purpose: a few helper tools plus one powerful generic execution tool. This is a reasonable and focused set, not too thin or bloated.
The dataverse_request tool can execute any Dataverse Web API request (CRUD, OData, functions, actions), providing full coverage of the domain. The auxiliary tools add environment and identity context, leaving no obvious gaps in functionality.
Maintenance
Related MCP Connectors
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Remote MCP for 1,500+ APIs. Vault-managed credentials; OAuth or API key. Search, load, and execute.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive management of Microsoft Dataverse environments, including schema operations for tables, columns, and relationships through the Dataverse Web API. It also supports solution management, security role configuration, and the generation of WebAPI calls and Mermaid ERD diagrams.MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive schema and solution management for Microsoft Dataverse, including operations for tables, columns, relationships, and security roles via the Dataverse Web API. It also supports PowerPages configuration, automated WebAPI call generation, and schema visualization through Mermaid ERD diagrams.MIT
- FlicenseNot gradedqualityDmaintenanceEnables CRUD operations and schema exploration on Microsoft Dataverse databases using service principal authentication. It allows users to query records with OData filters, manage table entries, and retrieve metadata through a standardized MCP interface.-
- AlicenseAqualityCmaintenanceEnables AI agents to query, inspect, and manage Microsoft Dataverse records, metadata, schema, forms, views, and Power Platform environments via the Dataverse OData Web API.9762 PyPI3MIT