mcp-dataverse
MCP Server for querying Dataverse using SQL
claude mcp add --transport stdio rajyraman-mcp-dataverse dotnet tool run dataverse-mcp-dotnet-tool \ --env DATAVERSE_ENVIRONMENT_URL="https://your-dynamics-environment.crm.dynamics.com"
How to use
This MCP server enables querying a Dataverse environment using SQL-style queries through MCP-compatible tools. By wiring this server into your MCP configuration, AI copilots and LLM assistants can send SQL-like requests to Dataverse and receive structured results in a consistent format. The server relies on a Dataverse connection URL provided via the DATAVERSE_ENVIRONMENT_URL context, so you can point it at your Dataverse instance and let it translate SQL queries into Dataverse fetch operations behind the scenes.
How to install
Prerequisites:
- .NET 9.0 SDK installed on your machine
- Access to a Dataverse environment and its URL
- Optional: Docker if you plan to run inside a container
Installation steps:
- Install the Dataverse MCP dotnet tool (as described in the README of the project):
- Ensure you have the tool package dataverse-mcp-dotnet-tool available from the project's install instructions.
- Prepare the environment variable with your Dataverse URL:
- Create a shell environment variable named DATAVERSE_ENVIRONMENT_URL or provide it directly in your MCP config.
- Run the MCP server locally:
- Use the recommended MCP integration method (e.g., add the following server config to your MCP client): { "command": "dotnet", "args": ["tool", "run", "dataverse-mcp-dotnet-tool"], "env": {"DATAVERSE_ENVIRONMENT_URL": "https://your-dynamics-environment.crm.dynamics.com"} }
- If desired, run via Docker or a development container following the project’s Docker guidance and VS Code MCP Docker config snippets.
- Verify connectivity by issuing a simple SQL-like query through your MCP-enabled tooling to ensure results are returned from Dataverse.
Additional notes
Notes and tips:
- Set DATAVERSE_ENVIRONMENT_URL to the exact Dataverse environment URL you intend to query.
- If you encounter authentication issues, ensure you’re authenticated to Azure/Dataverse as required by your environment (e.g., Azure CLI login or DevContainer context).
- The SQL dialect is translated by the MCP tool; some Dataverse-specific functions may map differently, so consult the Dataverse SQL mapping when composing complex queries.
- When running in containers or Dev Containers, ensure network access to the Dataverse endpoint and proper environment variable propagation.
- Monitor logs from the dotnet tool run to troubleshoot authentication, URL, or permission problems.
Related MCP Servers
mcpbi
PowerBI MCP server to give LLM clients (Claude, GH Copilot,etc) context from locally running PowerBI Desktop instances.
NugetMcpServer
.NET MCP server that gives LLMs real NuGet API metadata to reduce hallucinations
unity -template
Simple template project for controlling Unity via MCP
mcp -graph-api
Model-context-protocol (MCP) server for the Microsoft Graph API in C#
mcp-camunda
Tools to interact with the Camunda 7 Community Edition Engine using the Model Context Protocol (MCP). Whether you're automating workflows, querying process instances, or integrating with external systems, Camunda MCP Server is your agentic solution for seamless interaction with Camunda.
MarketPricesMCP
This tool helps you find the store offering the best price for a specific product among various chain markets in Turkey. The system fetches real-time data from different markets and returns the best price along with the corresponding store name.