Fabric Report
БесплатноНе проверенMCP server for managing Microsoft Fabric Reports with lifecycle management, filtering, and content manipulation.
Описание
MCP server for managing Microsoft Fabric Reports with lifecycle management, filtering, and content manipulation.
README
Python MCP Server DXT PBIR License
MCP server for managing Microsoft Fabric Reports with lifecycle management, filtering, and content manipulation.
Important:
- Requires Azure AD authentication to access Microsoft Fabric workspaces.
- Requires PBIR format reports for most tools.
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 - Windows: Download from python.org - during installation, check "Add Python to PATH"
- Mac/Linux: Usually pre-installed as
Install required Python packages:
# For Mac/Linux: pip3 install fastmcp msal httpx pydantic python-dotenv # For Windows: pip install fastmcp msal httpx pydantic python-dotenv
Installation:
- Download
fabric-report-mcp.dxtfrom releases - Double-click to install in Claude Desktop
- Configure Azure AD authentication (see Authentication section)
For Other MCP Clients
- Clone repository
- Install dependencies:
pip install -r requirements.txt
- Configure your MCP client to use this server. Example for VS Code:
{
"mcpServers": {
"fabric-report-mcp": {
"command": "python3",
"args": ["path/to/fabric-report-mcp/src/server.py"]
}
}
}
Set up authentication using environment variables
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 Model Reader MCP: Analyze semantic models and execute DAX queries
Authentication
There are three options for authentication:
- Azure CLI, which you can install and then login by using
az login - Azure SDK
- Configuration of a personal access token or Azure AD app registration
Available Tools
list_reports
List all reports in a Fabric workspace with optional result limiting.
Parameters:
workspace_id(required): The ID of the workspacemax_results(optional): Maximum number of reports to return
Example usage:
# List all reports in workspace
list_reports(workspace_id="12345678-1234-1234-1234-123456789012")
# Limit to first 10 reports
list_reports(workspace_id="12345678-1234-1234-1234-123456789012", max_results=10)
get_report_content
Get report definition with advanced filtering and pagination support for large reports.
Parameters:
workspace_id(required): The ID of the workspacereport_id(required): The ID of the reportformat(optional, default: "PBIR"): Format of definition ("PBIR" or "PBIP")include_pages(optional): List of page names to includeexclude_pages(optional): List of page names to excludeinclude_visuals(optional): List of visual IDs to includeexclude_visuals(optional): List of visual IDs to excludemax_definition_length(optional): Maximum length for large definitionsoffset(optional, default: 0): Character offset for pagination
Example usage:
# Get complete report definition
get_report_content(workspace_id="...", report_id="...")
# Get only specific pages
get_report_content(workspace_id="...", report_id="...", include_pages=["Page1", "Dashboard"])
# Get paginated definition (first 50000 characters)
get_report_content(workspace_id="...", report_id="...", max_definition_length=50000, offset=0)
# Exclude certain pages
get_report_content(workspace_id="...", report_id="...", exclude_pages=["Hidden Page"])
update_report_metadata
Update report metadata (display name and description only).
Parameters:
workspace_id(required): The ID of the workspacereport_id(required): The ID of the reportdisplay_name(optional): New display name for the reportdescription(optional): New description for the report
Example usage:
# Update display name
update_report_metadata(workspace_id="...", report_id="...", display_name="New Report Name")
# Update description
update_report_metadata(workspace_id="...", report_id="...", description="Updated report description")
# Update both
update_report_metadata(workspace_id="...", report_id="...", display_name="New Name", description="New description")
update_report_content
Update the complete report definition/content.
Parameters:
workspace_id(required): The ID of the workspacereport_id(required): The ID of the reportdefinition(required): The complete report definition object
Example usage:
# First get the current definition, modify it, then update
current_def = get_report_content(workspace_id="...", report_id="...")
# ... modify definition ...
update_report_content(workspace_id="...", report_id="...", definition=modified_def)
create_new_report
Create a new report or copy an existing one.
Parameters:
workspace_id(required): The ID of the workspacedisplay_name(required): Display name for the new reportdescription(optional): Description for the new reportdefinition(optional): Report definition (from get_report_content)
Example usage:
# Create empty report
create_new_report(workspace_id="...", display_name="New Report")
# Copy existing report
source_def = get_report_content(workspace_id="...", report_id="source-report-id")
create_new_report(workspace_id="...", display_name="Copy of Report", definition=source_def["definition"])
delete_workspace_report
Delete a report from a workspace (requires confirmation).
Parameters:
workspace_id(required): The ID of the workspacereport_id(required): The ID of the report to deleteconfirm(required): Must be set totrueto confirm deletion
Example usage:
# Delete report (requires explicit confirmation)
delete_workspace_report(workspace_id="...", report_id="...", confirm=true)
download_theme_json
Extract theme configurations from published Power BI reports and save as standalone theme files.
Parameters:
workspace_id(required): The ID of the workspacereport_id(required): The ID of the report to extract theme fromoutput_path(optional): Directory to save the theme file (defaults to current directory)theme_name(optional): Custom name for the theme file (defaults to report theme name)
apply_theme_json
Apply theme configurations to local PBIP reports with proper schema compliance.
Parameters:
theme_source(required): Path to theme.json file OR source report ID for copyingtarget_type(required): Either "local" for local PBIP or "published" for Fabric reportstarget_path(optional): Path to local PBIP folder (required for local targets)target_workspace_id(optional): Target workspace ID (required for published targets)target_report_id(optional): Target report ID (required for published targets)source_workspace_id(optional): Source workspace ID (when copying from another report)theme_name(optional): Name for the applied theme (default: "CustomTheme")
Note: download_theme_json and apply_theme_json support both PBIR and PBIR-Legacy format reports.
Architecture
The server follows a clean composition architecture:
src/
├── auth.py # Azure AD authentication
├── api_client.py # Fabric API HTTP client
├── tools/ # Individual tool implementations
│ ├── list_reports.py
│ ├── get_report_definition.py
│ ├── update_report.py
│ ├── update_report_definition.py
│ ├── create_report.py
│ └── delete_report.py
└── server.py # MCP server composition
Running the Server
Direct Execution
python src/server.py
Using Run Scripts
# Windows
run-server.bat
# Mac/Linux
./run-server.sh
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 reports
- 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:
- Verify Azure AD credentials are correctly configured
- Ensure the service principal has necessary Fabric permissions
- Check that the tenant ID, client ID, and client secret are valid
Connection timeouts:
- Verify network connectivity to Microsoft Fabric endpoints
- Check firewall settings if running behind corporate proxy
- Consider increasing timeout values for large reports
Report definition errors:
- Ensure PBIR format compatibility when using report definitions
- Validate JSON structure before sending updates
- Check that all required fields are present in report objects
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.
Установка Fabric Report
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/data-goblin/fabric-report-mcpFAQ
Fabric Report MCP бесплатный?
Да, Fabric Report MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Fabric Report?
Нет, Fabric Report работает без API-ключей и переменных окружения.
Fabric Report — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Fabric Report в Claude Desktop, Claude Code или Cursor?
Открой Fabric Report на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Fabric Report with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
