Dataverse Plugin MCP

Dataverse Plugin MCP

MCP server that lets AI assistants scaffold, build, register, query, and diagnose Microsoft Dataverse plug-ins directly from conversation, orchestrating Power Platform CLI and Azure CLI.

Category
Visit Server

README

Dataverse Plugin MCP

An MCP server that lets an AI assistant (Claude, etc.) scaffold, build, register, query, and diagnose Microsoft Dataverse (Power Platform / Dynamics 365) plug-ins directly from a conversation — no need to leave the editor to open the Plugin Registration Tool or hand-write Web API calls.

Instead of reimplementing the registration logic from scratch, this MCP orchestrates tools you already use and already have authenticated on your machine:

  • Power Platform CLI (pac) — project scaffolding, build, and push of already-registered packages.
  • Azure CLI (az) — reuses your already-authenticated session (same account/tenant as pac) to get a token and talk directly to the Dataverse Web API (query and register SDK message processing steps, images, execution logs, etc.).

Why this exists

Registering a Dataverse plug-in normally means switching between several tools: pac plugin init for the project skeleton, the Plugin Registration Tool (GUI) for the first registration, and either the PRT or manual Web API calls to bind messages/entities/stages and configure pre/post images. This MCP brings that whole flow into tools an AI assistant can call directly, including operations that usually only exist in the GUI (a full assembly diagnostic report, step editing, trace logs).

Prerequisites

Tool Purpose Install
Python 3.11+ Runs the MCP server
uv Manages the environment/dependencies pip install uv or the official installer
Power Platform CLI (pac) Scaffolding, build, push, PRT dotnet tool install --global Microsoft.PowerApps.CLI.Tool
Azure CLI (az) Web API access token official installer
.NET SDK Builds the net462 plug-in projects dotnet.microsoft.com

Authenticate both CLIs once, with the same account that has access to the target Dataverse environment:

pac auth create --environment https://YOUR-ENVIRONMENT.crm.dynamics.com
az login

The server never stores or asks for credentials — it always delegates to these two already-authenticated sessions.

Installation

git clone https://github.com/lucasjesus0311/dataverse-plugin-mcp.git
cd dataverse-plugin-mcp
uv sync

Configure in Claude Code

claude mcp add dataverse-plugins -- uv --directory "PATH/TO/dataverse-plugin-mcp" run dataverse_plugins_server.py

Configure in Claude Desktop

Edit claude_desktop_config.json (under %APPDATA%\Claude\, or if the app was installed from the Microsoft Store, under %LOCALAPPDATA%\Packages\<PackageId>\LocalCache\Roaming\Claude\):

{
  "mcpServers": {
    "dataverse-plugins": {
      "command": "C:\\PATH\\TO\\uv.exe",
      "args": [
        "--directory", "C:\\PATH\\TO\\dataverse-plugin-mcp",
        "run", "dataverse_plugins_server.py"
      ]
    }
  }
}

Use the full path to uv.exe (find it with where uv on Windows or which uv on macOS/Linux) — GUI apps don't always inherit the shell PATH. Fully restart Claude Desktop after saving.

Available tools

24 tools, organized by stage of a plug-in's lifecycle. Full reference with every parameter in docs/TOOLS.md.

Category Tools
Environment list_environments, select_environment
Local development create_plugin_project, build_plugin
Registration open_registration_tool, push_plugin_update
Steps (CRUD) create_step, update_step, delete_step, toggle_step, set_secure_configuration
Images (CRUD) create_step_image, list_images, update_image, delete_image
Query list_registered_plugins, list_plugin_types, list_steps, list_available_messages
Deletion delete_assembly, delete_package
Diagnostics list_execution_logs, configure_tracing, xray_assembly

xray_assembly deserves a callout: it generates a complete report of a registered assembly in a single call — classes, steps with every setting, images, and the latest trace log entries.

⚠️ Security notice

Several tools perform real writes to the configured Dataverse environment (creating/editing/deleting steps, images, assemblies, packages; toggling tracing; updating the running code via push_plugin_update). They act with the same permissions as your pac/az session — always test in a development environment, never directly in production. Each tool's docstring clearly flags when an operation is destructive or irreversible.

Known limitations

  • First-time registration of a package/assembly: there is no CLI command or simple Web API call for this — Microsoft reserves this step for the Plugin Registration Tool or the Visual Studio extension (which reflect over the assembly to auto-discover its classes). Use open_registration_tool() for this one-time step; after that, push_plugin_update() covers every update via CLI.
  • PATCH on sdkmessageprocessingstepimages: the Dataverse Web API rejects direct updates to this table with a generic, undocumented error (0x80040216). update_image() works around this by deleting and recreating the image.
  • $expand on packageid of pluginassemblies: returns 400 Bad Request. The code uses _packageid_value plus a separate lookup instead of $expand.

Project structure

.
├── dataverse_plugins_server.py   # main server (24 tools)
├── docs/
│   └── TOOLS.md                  # full reference for every tool
├── examples/
│   └── hello_world_mcp_server.py # minimal example MCP (3 trivial tools)
├── plugins/                      # C# plug-in projects generated/registered locally
└── pyproject.toml

Minimal example

If you're just getting started with MCP, examples/hello_world_mcp_server.py is a 3-tool trivial server (add, current time, reverse text) — a good starting point before diving into the main server.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured