fabric-model-reader-mcp
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., "@fabric-model-reader-mcpget model definition for workspace abc dataset xyz"
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.
Fabric Model Reader MCP
MCP server for reading and analyzing Fabric semantic models. Available as standalone server and Desktop Extension (DXT).
Requires authentication to access Power BI workspaces (Azure CLI or Personal Access Token).
Quick Start
For Claude Desktop Users (Easiest)
Prerequisites:
Python 3.8+ must be installed and in your PATH
Mac/Linux: Usually pre-installed as
python3. Use the_python3version.Windows: Download from python.org - during installation, check "Add Python to PATH". Use the
_pythonversion.
Install required Python packages:
# For Mac/Linux: pip3 install fastmcp requests keyring # For Windows: pip install fastmcp requests keyring
Installation:
Download appropriate
.dxtfile from releasesDouble-click to install in Claude Desktop
Configure authentication (see Authentication section)
For Other MCP Clients
Install dependencies:
pip install -r requirements.txtConfigure your MCP client to use this server. Example for VS Code:
{
"mcpServers": {
"fabric-model-reader": {
"command": "python3",
"args": ["path/to/fabric-model-reader-mcp.py"]
}
}
}Authenticate using one of the supported methods:
Personal Access Token
Azure CLI
Start using the server through your MCP client.
For enhanced functionality, use with related MCP servers:
Fabric Workspace Reader MCP: Explore workspaces and discover resources
Fabric Report MCP: Manage report lifecycle and content manipulation
Authentication
The extension supports three authentication methods:
Azure CLI:
az login(recommended)Environment Variable: Set
POWERBI_TOKENSystem Keyring: Store token securely in system keyring
Related MCP server: powerbi-mcp
Available Tools
get_model_definition
Get the TMDL definition of a semantic model with pagination and filtering support.
Parameters:
workspace_id(required): The workspace IDdataset_id(required): The dataset/semantic model IDfile_filter(optional): Filter for specific files (e.g., 'measures', 'tables/', 'relationships.tmdl')page(optional): Page number for pagination. Use either page or file_range, not both.page_size(optional, default: 10): Number of files per pagemetadata_only(optional, default: false): If true, returns only file paths without contentfile_range(optional): File range to retrieve (e.g., '1-10', '11-20'). Use either page or file_range, not both.
Example usage:
# Get files 1-10 using file range (recommended for complete retrieval)
get_model_definition(workspace_id="...", dataset_id="...", file_range="1-10")
# Get files 11-20
get_model_definition(workspace_id="...", dataset_id="...", file_range="11-20")
# Get first page of model definition
get_model_definition(workspace_id="...", dataset_id="...")
# Get only measures with file range
get_model_definition(workspace_id="...", dataset_id="...", file_filter="measure", file_range="1-5")
# View all available files without content
get_model_definition(workspace_id="...", dataset_id="...", metadata_only=true)
# Navigate to specific page
get_model_definition(workspace_id="...", dataset_id="...", page=2, page_size=15)execute_dax_query
Execute a DAX query against a Power BI dataset.
Parameters:
workspace_id(required): The workspace IDdataset_id(required): The dataset/semantic model IDquery(required): The DAX query to execute
Example usage:
execute_dax_query(
workspace_id="...",
dataset_id="...",
query="EVALUATE SUMMARIZECOLUMNS('Product'[Category], \"@TotalSales\", SUM('Sales'[Amount]))"
)How to Contribute
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes following the existing patterns
Test your changes with sample models
Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under a Non-Commercial License. See LICENSE for details.
Troubleshooting
Common Issues
Authentication failures:
Run
az loginto authenticate with Azure CLIVerify you have access to the target Power BI workspace
Check that POWERBI_TOKEN environment variable is set correctly
Model access denied:
Ensure you have read permissions for the semantic model
Verify the workspace ID and dataset ID are correct
Check that the model is published and accessible
Large model performance:
Use file filtering to focus on specific TMDL components
Implement pagination for models with many files
Use metadata_only option to browse structure before downloading content
Security & Privacy Disclaimer
This software was created by me for me. I am sharing it for educational and personal use.
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. THE USER ASSUMES ALL RESPONSIBILITY AND RISK FOR THE USE OF THIS SOFTWARE.
DATA SECURITY AND PRIVACY: This extension accesses Microsoft Fabric and Power BI data using your provided credentials. The author assumes NO responsibility for data security, privacy, or confidentiality. Users are SOLELY responsible for:
Protecting their authentication credentials
Ensuring compliance with their organization's data policies
Managing access to sensitive or confidential data
Any data breaches or unauthorized access resulting from use of this extension
By using this code, you acknowledge that you are fully responsible for all data security and privacy implications.
AI Disclaimer
The code and docs in this repo were generated with the help of Claude Sonnet 4, Claude Opus 4, and Gemini 2.5 Pro using various agentic coding tools.
General Disclaimer
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. THE USER ASSUMES ALL RESPONSIBILITY AND RISK FOR THE USE OF THIS SOFTWARE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/data-goblin/fabric-model-reader-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server