dataverse
A Model Context Protocol (MCP) server for Microsoft Dataverse that enables schema operations including creating and updating tables, columns, relationships, and option sets using the Dataverse Web API.
claude mcp add --transport stdio mwhesse-dataverse-mcp npx -y mwhesse-dataverse-mcp
How to use
This MCP server provides tools to manage Dataverse schemas, including creating and updating custom tables, columns, relationships, and option sets via the Dataverse Web API. It also offers a WebAPI Call Generator to produce ready-to-use HTTP requests, cURL commands, and JavaScript snippets for common Dataverse operations, plus PowerPages-specific WebAPI generation and configuration management. Use this server when you need a programmatic way to model and deploy Dataverse schemas, automate solution management, and generate reproducible API calls for integration and debugging. The server emphasizes a solution-based approach with persistent context, security role and team management, and comprehensive error handling to support enterprise deployments.
How to install
Prerequisites:
- Node.js (LTS) and npm installed on your machine
- Access to a Dataverse environment (with appropriate credentials)
Installation steps:
- Install the MCP server via npx (no local install required):
- Run: npx -y mwhesse-dataverse-mcp
- If you prefer a persistent local setup, you can install the package globally and run it from a script:
- Run: npm install -g mwhesse-dataverse-mcp
- Then start the server with: mcp-dataverse-server
- Configure environment variables as needed for Dataverse authentication and environment details (see additional notes for examples).
Note: The MCP server expects to connect to a Dataverse environment using OAuth2 or Web API credentials. Ensure you have the required credentials and permissions before starting the server.
Additional notes
Environment variables you may need:
- DATAVERSE_TENANT_ID: Your Azure AD tenant ID
- DATAVERSE_CLIENT_ID: OAuth2 client ID
- DATAVERSE_CLIENT_SECRET: OAuth2 client secret
- DATAVERSE_ENV_URL: Dataverse Web API endpoint (e.g., https://yourorg.api.crm.dynamics.com)
- MCP_LOG_LEVEL: Logging verbosity (e.g., info, debug, warn)
Configuration tips:
- Use the WebAPI Call Generator to quickly produce HTTP requests for common operations like create_table, add_columns, or create_relationships.
- The solution-based workflow helps ensure all changes are versioned and can be deployed across environments.
- If you run into authentication errors, double-check the OAuth scopes and the configured redirect/return URLs in your Azure app registration.
- For PowerPages integrations, enable the PowerPages generator and verify the /_api/[entity] endpoints align with your site configuration.
Related MCP Servers
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
mcp
Octopus Deploy Official MCP Server
furi
CLI & API for MCP management
mcp -arangodb
This is a TypeScript-based MCP server that provides database interaction capabilities through ArangoDB. It implements core database operations and allows seamless integration with ArangoDB through MCP tools. You can use it wih Claude app and also extension for VSCode that works with mcp like Cline!
CodeRAG
Advanced graph-based code analysis for AI-assisted software development
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!