powerplatform mcp/cli

by michsob

42 393 downloads Not rated yet MIT

About

A Model Context Protocol (MCP) server and standalone CLI for querying PowerPlatform / Dataverse environments. Supports multiple environments, entity metadata, records, plugins, flows, solutions, workflows, business rules, security roles, and more.

Details

License
MIT

Explore

- Query and configure Dataverse environments via MCP or CLI.
- Supports 67 tools covering entities, records, plugins, flows, solutions, security roles, and more.
- Multiple environment support with environment-specific credentials.
- Write operations for automated environment setup (e.g., create attributes, plugin steps, security roles).
- CLI persists full results to disk to avoid AI context window truncation.
- Docker images available for both MCP server and CLI.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name powerplatform mcp/cli
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Requires Node.js 22+ (< 25).

POWERPLATFORM_DEV_URL=https://dev-org.crm.dynamics.com
POWERPLATFORM_DEV_CLIENT_ID=your-client-id
POWERPLATFORM_DEV_CLIENT_SECRET=your-client-secret
POWERPLATFORM_DEV_TENANT_ID=your-tenant-id

POWERPLATFORM_UAT_URL=https://uat-org.crm.dynamics.com
POWERPLATFORM_UAT_CLIENT_ID=...
POWERPLATFORM_UAT_CLIENT_SECRET=...
POWERPLATFORM_UAT_TENANT_ID=...
``

For local development, copy .env.example to .env` and fill in your credentials.

All tools accept an optional environment parameter to target a specific environment (defaults to the first configured).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "powerplatform mcp/cli": {
            "powerplatform": {
                "command": "npx",
                "args": [
                    "-y",
                    "powerplatform-mcp"
                ],
                "env": {
                    "POWERPLATFORM_ENVIRONMENTS": "DEV,UAT,PROD",
                    "POWERPLATFORM_DEV_URL": "https://dev-org.crm.dynamics.com",
                    "POWERPLATFORM_DEV_CLIENT_ID": "...",
                    "POWERPLATFORM_DEV_CLIENT_SECRET": "...",
                    "POWERPLATFORM_DEV_TENANT_ID": "...",
                    "POWERPLATFORM_UAT_URL": "https://uat-org.crm.dynamics.com",
                    "POWERPLATFORM_UAT_CLIENT_ID": "...",
                    "POWERPLATFORM_UAT_CLIENT_SECRET": "...",
                    "POWERPLATFORM_UAT_TENANT_ID": "..."
                }
            }
        }
    }
}

McpServers

{
    "powerplatform": {
        "command": "npx",
        "args": [
            "-y",
            "powerplatform-mcp"
        ],
        "env": {
            "POWERPLATFORM_ENVIRONMENTS": "DEV,UAT,PROD",
            "POWERPLATFORM_DEV_URL": "https://dev-org.crm.dynamics.com",
            "POWERPLATFORM_DEV_CLIENT_ID": "...",
            "POWERPLATFORM_DEV_CLIENT_SECRET": "...",
            "POWERPLATFORM_DEV_TENANT_ID": "...",
            "POWERPLATFORM_UAT_URL": "https://uat-org.crm.dynamics.com",
            "POWERPLATFORM_UAT_CLIENT_ID": "...",
            "POWERPLATFORM_UAT_CLIENT_SECRET": "...",
            "POWERPLATFORM_UAT_TENANT_ID": "..."
        }
    }
}

A Model Context Protocol (MCP) server and standalone CLI for querying and configuring PowerPlatform / Dataverse environments. Supports multiple environments, entity metadata, records, plugins, flows, solutions, workflows, business rules, security roles, custom APIs, web resources, and more — including write operations for automated environment setup.

Why MCP + CLI?

MCP integrates directly with AI clients (Claude, Cursor, GitHub Copilot) for interactive, conversational exploration of your environments.

CLI writes results to a file system cache instead of returning them inline. MCP tool responses are bound by the AI client's context window, which can truncate or degrade results when querying environments with hundreds of entities, flows, or plugin steps. The CLI avoids this limitation by persisting full results to disk, making them available for follow-up analysis without context pressure. Both interfaces share the same tools and capabilities.

Installation

Requires Node.js 22+ (< 25).

MCP Server

```bash
npm install -g powerplatform-mcp

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.