powerbi-mcp-server

powerbi-mcp-server

Enables natural language interaction with Power BI Desktop via MCP, allowing DAX authoring, measure optimization, and model inspection.

Category
Visit Server

README

Power BI Desktop MCP Server

Python Version License Tests Coverage

⚠️ Alpha version – APIs and behaviours may change without notice.

Power BI Desktop MCP Server lets Claude (or any MCP client) talk to a running Power BI Desktop instance using natural language. It bridges the Model Context Protocol to the Tabular Object Model so you can inspect, optimize, and author DAX without leaving chat.

Installation

Step-by-step setup (Power BI prerequisites, .NET libraries, environment variables) lives in INSTALLATION.md.

For local development:

pip install -e .
# or install from the current directory:
pip install .

Quick Example

List the tables in your current Power BI model:

python examples/list_model_info.py --include-columns

Export measures to the knowledge base:

python examples/export_measures_to_knowledge_base.py --project "Executive Dashboard"

Run the optimizer on an expression:

python examples/optimize_dax.py --expr "CALCULATE(SUM(Sales[Amount]), FILTER(ALL(Date), Date[Year] = 2024))"

Configuration

  • Copy .env.example to .env and set TOM_DLL_PATH if the Microsoft Analysis Services DLLs are not auto-detected. Optional variables include LOG_LEVEL, MCP_KNOWLEDGE_BASE, and POWERBI_WORKSPACE_NAME.

  • Add the CLI entry point to Claude Desktop (or any MCP host):

    {
      "mcpServers": {
        "powerbi": {
          "command": "powerbi-mcp-server",
          "args": []
        }
      }
    }
    
  • The CLI is a thin wrapper around python -m powerbi_mcp.server, so either invocation works for deployments and debugging.

Features

  • DAX code generation and measure creation
  • Measure and table metadata inspection
  • DAX optimizer with rule-based suggestions
  • TMDL import/export helpers
  • Knowledge base bridge for storing curated measures
  • Example scripts for quick automation (examples/ directory)

Known Issues

  • Power BI visuals live outside the XMLA endpoint, so visual creation/editing is not supported.
  • The server connects to the most recently opened Power BI Desktop workspace; multiple instances are not yet multiplexed.
  • Write operations require the Power BI model to allow external tools and, in some scenarios, elevated permissions.
  • pythonnet relies on local Microsoft Analysis Services DLLs; misconfigured TOM_DLL_PATH is the most common setup failure.

Contributing

Pull requests are welcome. Please:

  1. Open an issue describing the change if it alters behaviour or APIs.
  2. Keep additions formatted with ruff/black style conventions (if configured) and include type hints.
  3. Add or update example scripts/tests where it helps illustrate new functionality.
  4. Run the example scripts or manual smoke tests before submitting.

Issues and feature requests are tracked at the repository’s GitHub Issues page.

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
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
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
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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

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
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