Dataverse MCP Server

$npx -y @wizspdemo/dataverse-mcp2
README.md

Enables comprehensive management of Microsoft Dataverse environments

Dataverse MCP Server

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.

šŸš€ Key Features

āœ… Manage Tables & Columns - Create, update, delete, and list custom tables with all column types (String, Integer, Boolean, DateTime, Picklist, Lookup, AutoNumber, etc.)

āœ… Manage Relationships - Create One-to-Many and Many-to-Many relationships between entities with proper cascade behaviors

āœ… Manage Option Sets - Create and manage global option sets with custom options, colors, and values

āœ… Solution-Based Architecture - Enterprise-grade solution management with persistent context and automatic customization prefixes

āœ… Security & Access Control - Complete security role management, team operations, and business unit hierarchy management

āœ… WebAPI Call Generator - Generate ready-to-use HTTP requests, cURL commands, and JavaScript code for any Dataverse operation

āœ… PowerPages WebAPI Generator - Generate PowerPages-specific WebAPI calls using the /_api/[logicalEntityName] format with React examples

āœ… PowerPages Configuration Management - Manage table permissions and WebAPI site settings for PowerPages Code Sites with YAML file automation

āœ… Schema Export & Visualization - Export complete solution schemas to JSON with advanced filtering, then generate professional Mermaid ERD diagrams with relationship visualization

āœ… Mermaid Diagram Generation - Convert exported schemas into professional Entity Relationship Diagrams with enhanced column markers, lookup target display, and unlimited table support

āœ… AutoNumber Column Management - Create and manage AutoNumber columns with customizable format patterns for automatic serial numbers, reference codes, and unique identifiers

āœ… Professional Integration - OAuth2 authentication, comprehensive error handling, and enterprise-ready deployment

āœ… Production Ready - Comprehensive testing completed with 7 critical bugs found and fixed, 100% tool coverage achieved

Tools (5)

create_tableCreate a custom table in Dataverse with specified schema
create_columnAdd a new column to an existing table
create_relationshipCreate One-to-Many or Many-to-Many relationships between tables
export_schemaExport solution schema to JSON for visualization
generate_mermaid_erdConvert exported schema into a Mermaid ERD diagram

Environment Variables

DATAVERSE_URLrequiredThe environment URL (e.g., https://org.crm.dynamics.com)
AZURE_TENANT_IDrequiredAzure Active Directory Tenant ID
AZURE_CLIENT_IDrequiredApplication (client) ID from Azure App Registration
AZURE_CLIENT_SECRETrequiredClient secret from Azure App Registration

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "dataverse-mcp": {
      "command": "npx",
      "args": ["-y", "@wizspdemo/dataverse-mcp2"],
      "env": {
        "DATAVERSE_URL": "https://your-org.crm.dynamics.com",
        "AZURE_TENANT_ID": "your-tenant-id",
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Try it

→Create a new table called 'Project' in the 'InternalTools' solution with a primary name column.
→Add an AutoNumber column to the 'Invoice' table with the format 'INV-{SEQNUM:5}-{DATETIME:yyyyMMdd}'.
→Generate a Mermaid ERD diagram for all tables in the 'CustomerService' solution.
→Create a Many-to-Many relationship between the 'Student' and 'Course' tables.
→Generate a PowerPages WebAPI call for the 'Contact' entity with React code examples.

Frequently Asked Questions

What are the key features of Dataverse MCP Server?

Manage Tables & Columns including AutoNumber and Picklist types. Solution-Based Architecture with automatic customization prefixes. Security & Access Control management for roles, teams, and business units. Schema Export & Visualization using Mermaid ERD diagrams. WebAPI Call Generator for standard and PowerPages-specific endpoints.

What can I use Dataverse MCP Server for?

Automating Dataverse environment setup and schema deployment. Visualizing complex entity relationships for documentation. Generating boilerplate code for PowerPages and WebAPI integrations. Managing security hierarchies and team access programmatically.

How do I install Dataverse MCP Server?

Install Dataverse MCP Server by running: npx -y @wizspdemo/dataverse-mcp2

What MCP clients work with Dataverse MCP Server?

Dataverse MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Dataverse MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free