An MCP server for local Tabular Models like PowerBI. It allows LLM clients to debug, analyze, and compose DAX queries by connecting to a local Tabular model instance.
This is a Model Context Protocol (MCP) server for locally running Tabular Models, i.e. PowerBI models running on PowerBI Desktop.
This server allows MCP-enabled LLM clients to communicate with your tabular models and help you debug, analyse and compose DAX queries.
Example: Copilot querying Tabular Model via MCP
It connects to a local running instance of Tabular models using the AdomdConnection in ADOMD.NET.
Using this connection, the server then allows clients to execute DAX-queries and retrieve model metadata (using DMV queries) through pre-defined tools for high accuracy, as well as custom DAX queries for debugging and development.
This MCP server enables communication between clients and Power BI tabular models via ADOMD.NET, supporting both predefined metadata queries and flexible DAX queries with full DEFINE block capabilities for advanced analysis.
List all measures in the model with essential information (name, table, data type, visibility), optionally filtered by table name. Use GetMeasureDetails for full DAX expressions.
Get details for a specific measure by name.
List all tables in the model.
Get details for a specific table by name.
Get columns for a specific table by name.
Get relationships for a specific table by name.
Preview data from a table (top N rows).
Execute a DAX query. Supports complete DAX queries with DEFINE blocks, EVALUATE statements, or simple expressions.
Validate DAX syntax and identify potential issues with enhanced error analysis.
Analyze query performance characteristics and identify potential bottlenecks.
See docs/Installation.md
for requirements and installation instructions.
For the fastest setup, you can use the pre-built executable from the Releases
section.
Configure Power BI Connection:
Releases\pbi-local-mcp.DiscoverCli.exe
Follow the prompts to detect your Power BI instance and create the .env
file.
Configure VS Code MCP Integration:
Configure mcp.json
with:
{ "mcpServers": { "MCPBI": { "command": "C:\dir\to\mcpbi.exe", "args": [] } } }
### Quick Start b) with port as argument
Or if you already know which port you are running PowerBI Tabular model on (visible from Tabular Editor for instance)
Configure `mcp.json` with:
```json
{
"mcpServers": {
"MCPBI": {
"command": "C:\\dir\\to\\mcpbi.exe",
"args": ["--port","12345"]
}
}
}
MIT
Query Vietnam stock intraday data using the SSI FastConnect API.
Access and manage ActiveCampaign data through the CData JDBC Driver.
A server for interacting with MongoDB databases and MongoDB Atlas.
An MCP server for Firebird SQL databases, enabling LLMs to securely access, analyze, and manipulate database content.
MCP Server For Apache Doris, an MPP-based real-time data warehouse.
Integrates with Metabase for data visualization and business intelligence. Requires METABASE_URL, METABASE_USERNAME, and METABASE_PASSWORD environment variables.
Implement semantic memory layer on top of the Qdrant vector search engine
Snowflake database integration with read/write capabilities and insight tracking
Allows AI to interact with Microsoft Access databases, supporting data import and export via CSV files.
Provides programmatic access to Borsa Istanbul (BIST) stock data, financials, news, and analysis using KAP and Yahoo Finance.