Skip to main content

Data Platform Toolkit

tests PyPI License: MIT

Ask your AI assistant where a Power BI number comes from, and get the answer down to the source column.

An MCP (Model Context Protocol) server for Power BI projects saved as PBIP. It reads the files on disk, with no connection to Power BI Desktop, the Power BI service or Microsoft Fabric, and lets an AI assistant:

  • analyze and safely edit semantic models in TMDL format (read-only by default);
  • find where measures and columns are used in PBIR reports, and which security roles read them;
  • trace end-to-end lineage: from the source column of a SQL Server database project, through its medallion layers and Power Query, to the measures and the report visuals.

Scope: Power BI projects saved as PBIP, with the semantic model in TMDL and the reports in PBIR (not .pbix files); on the database side, SQL Server database projects (.sqlproj, T-SQL). Other sources that Power Query reads (files, other databases, services) appear as the start of the lineage, with their connector.

Asked where the Ratio card of a synthetic test project gets its numbers from, the server follows it back to the files the data warehouse loads (the full example):

Lineage of the Ratio card, from the source files through the bronze, silver and gold layers and the semantic model to the report visual

Try it

With uv installed, nothing else to install by hand:

uvx --python 3.13 mcp-data-platform-toolkit --check "C:\path\to\Project.pbip"

--check validates the project and prints the configuration to paste into your MCP client, in read-only mode. Then ask the assistant about the project. Setup for Claude Desktop, VS Code and Claude Code, or with pip: docs/installation.md.

What you can ask

Ask What the server does
"Where is [Total Sales] used, and does any RLS role read it?" Searches every PBIR report and the RLS filters
"Which source columns does [Gross Margin %] come from?" Follows DAX, Power Query and the T-SQL of the database project, upstream
"If I drop mart.sales.Discount, what breaks?" The same chain, downstream, down to the visuals
"Draft the lineage.yaml of this database project." Reads the project and asks only what the SQL can't tell

More requests, with the tools behind each one: docs/tools.md.

How it fits with Microsoft's server

Microsoft's Power BI Modeling MCP Server works inside the semantic model. This server works around it, and answers the questions the model alone can't: which reports and security roles use each field, and where its data comes from.

Microsoft's Power BI Modeling MCP Server Data Platform Toolkit
Reads the semantic model, from Power BI Desktop, Fabric or a PBIP folder the PBIP files on disk: semantic model, PBIR reports, and the SQL database project
Answers what the model contains, and DAX queries where each field is used, who can see it, where its data comes from
Edits the whole model measures, calculation items, formats, folders, visibility, descriptions and OLS, written straight into the TMDL files; the rest of the model through the bridge

You don't have to choose. If the official server is installed, this server's optional bridge gives the assistant its modeling tools on the local PBIP folder, from the same connection (Windows only). Everything else of the official server, such as DAX queries, refresh and cloud operations, stays with it.

How it was built

The model and report tools started on a real Power BI project, where the end-to-end lineage was first built for one data warehouse. This version makes the lineage generic, so any naming convention can be described in lineage.yaml.

I designed the tool, wrote the specifications and reviewed every change; most of the code was written with Claude Code as a pair programmer. A test suite that builds synthetic PBIP and database projects checks every change, on Windows and Linux. The choices behind it, and why: design decisions.

Documentation

Metadata

Release files for mcp-data-platform-toolkit 1.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-data-platform-toolkit 1.5.2
File Size Uploaded Provenance Actions
mcp_data_platform_toolkit-1.5.2.tar.gz 330.5 kB With provenance Details for mcp_data_platform_toolkit-1.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-data-platform-toolkit 1.5.2
File Interpreter ABI Platform Actions
mcp_data_platform_toolkit-1.5.2-py3-none-any.whl Python 3 none any Details for mcp_data_platform_toolkit-1.5.2-py3-none-any.whl

Total release size: 584.8 kB

Release files / mcp_data_platform_toolkit-1.5.2.tar.gz

Download URL mcp_data_platform_toolkit-1.5.2.tar.gz
Size 330.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0c7c8065232f38675120d1ccfdb728ccc1c4c39f2da97de4cd542ea8294ef3a1
BLAKE2b-256 checksum
How to use checksums
e535fdfb9928a639dee2c69c9eadde05399868d9dda9c6373255f9be9ad8309a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / mcp_data_platform_toolkit-1.5.2-py3-none-any.whl

Download URL mcp_data_platform_toolkit-1.5.2-py3-none-any.whl
Size 254.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
652603d58439089759b97a8d908cedec553735e2c1a993c54b3d7f207462e991
BLAKE2b-256 checksum
How to use checksums
8d3a6108bbb265d9279c668ef1b3c623d2df4123d2f6295befd4f00c41019445
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for mcp-data-platform-toolkit 1.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mcp_data_platform_toolkit-1.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page