The PowerPlatform MCP server provides intelligent, context-aware access to Microsoft PowerPlatform/Dataverse data models and records, enabling AI-assisted exploration, querying, and understanding of your environment.
Metadata Exploration:
Retrieve comprehensive entity metadata including structure, attributes, display names, schema names, and descriptions
Access detailed information about specific entity fields including data types, formats, requirements, and usage notes
Explore and visualize one-to-many and many-to-many relationships between entities
Retrieve definitions for global option sets used across your environment
Data Access:
Fetch individual records by entity name and GUID
Query multiple records using advanced OData filter expressions with support for filtering, sorting, and pagination
AI-Assisted Context:
ENTITY_OVERVIEW: Get comprehensive entity summaries with key attributes and relationship counts
ATTRIBUTE_DETAILS: Access formatted, detailed information about specific fields
QUERY_TEMPLATE: Generate OData query templates with example filters and common patterns
RELATIONSHIP_MAP: Visualize formatted relationship maps showing entity connections
Use Cases:
Build and validate OData queries for PowerPlatform data
Understand existing data models and entity relationships
Design new solutions with awareness of existing schema
Get AI-powered assistance with query construction, field investigation, and complex data modeling decisions
Generate documentation about your PowerPlatform environment
Provides GitHub Copilot access to PowerPlatform/Dataverse entities and records, supporting entity exploration, intelligent OData filtering, and AI-assisted query building through a Model Context Protocol server.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PowerPlatform MCPshow me the account entity overview"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PowerPlatform MCP Server
A Model Context Protocol (MCP) server that provides intelligent access to PowerPlatform/Dataverse entities and records. This tool offers context-aware assistance, entity exploration and metadata access.
Key features:
Rich entity metadata exploration with formatted, context-aware prompts
Advanced OData query support with intelligent filtering
Comprehensive relationship mapping and visualization
AI-assisted query building and data modeling through AI agent
Full access to entity attributes, relationships, and global option sets
Installation
You can install and run this tool in two ways:
Option 1: Install globally
Then run it:
Option 2: Run directly with npx
Run without installing:
Related MCP server: MCP Server
Configuration
Before running, set the following environment variables:
For Development
Clone the repository and install dependencies:
git clone https://github.com/michsob/powerplatform-mcp.git cd powerplatform-mcp npm installCopy
.env.exampleto.envand fill in your credentials:cp .env.example .envBuild and test:
npm run build npm run inspector:debug
Usage
This is an MCP server designed to work with MCP-compatible clients like Cursor, Claude App and GitHub Copilot. Once running, it will expose tools for retrieving PowerPlatform entity metadata and records.
Available Tools
get-entity-metadata: Get metadata about a PowerPlatform entityget-entity-attributes: Get attributes/fields of a PowerPlatform entityget-entity-attribute: Get a specific attribute/field of a PowerPlatform entityget-entity-relationships: Get relationships for a PowerPlatform entityget-global-option-set: Get a global option set definitionget-record: Get a specific record by entity name and IDquery-records: Query records using an OData filter expressionuse-powerplatform-prompt: Use pre-defined prompt templates for PowerPlatform entities
MCP Prompts
The server includes a prompts feature that provides formatted, context-rich information about PowerPlatform entities.
Available Prompt Types
The use-powerplatform-prompt tool supports the following prompt types:
ENTITY_OVERVIEW: Comprehensive overview of an entity
ATTRIBUTE_DETAILS: Detailed information about a specific entity attribute
QUERY_TEMPLATE: OData query template for an entity with example filters
RELATIONSHIP_MAP: Visual map of entity relationships
Examples
Entity Overview Prompt
Output:
Attribute Details Prompt
Output:
Query Template Prompt
Output:
Common Filter Examples
Equals:
name eq 'Contoso'Contains:
contains(name, 'Contoso')Greater than date:
createdon gt 2023-01-01T00:00:00ZMultiple conditions:
name eq 'Contoso' and statecode eq 0
Output:
Prompt Examples
Here are some examples of how you can interact with assistant using the PowerPlatform MCP prompts:
1. Entity Understanding
You can ask assistant about entities in natural language:
2. Building Queries
You can ask for help constructing queries:
3. Understanding Relationships
You can explore entity relationships naturally:
4. Field/Attribute Investigation
You can ask about specific fields:
5. Complex Data Modeling
You can get help with data modeling decisions: