Powerbi Server
БесплатноНе проверенAn MCP server that connects Claude and other MCP clients to Microsoft Power BI via its REST API using a Service Principal, enabling natural language queries to
Описание
An MCP server that connects Claude and other MCP clients to Microsoft Power BI via its REST API using a Service Principal, enabling natural language queries to list workspaces, run DAX queries, refresh datasets, and explore reports.
README
An MCP server that connects Claude (and any MCP-compatible client) to Microsoft Power BI via the Power BI REST API using a Service Principal.
Tools exposed
| Tool | Description |
|---|---|
list_workspaces |
List all workspaces the SP has access to |
list_datasets |
List datasets in a workspace (or all) |
execute_dax_query |
Run a DAX query against a dataset and get results |
refresh_dataset |
Trigger an on-demand dataset refresh |
list_reports |
List reports in a workspace (or all) |
get_report_pages |
Get all pages in a report |
get_report_visuals |
Get all visuals on a report page |
Prerequisites
Azure App Registration with these Power BI API permissions (Application, not Delegated):
Dataset.Read.AllDataset.ReadWrite.All(for refresh)Report.Read.AllWorkspace.Read.All
In Power BI Admin Portal → Tenant settings, enable:
- Allow service principals to use Power BI APIs
- Add the security group containing your App Registration
Add the service principal as a Member or Admin to the workspaces you want to access.
Setup
# Clone and install
git clone <this-repo>
cd powerbi-mcp-server
pip install -e .
# Copy and fill in credentials
cp .env.example .env
# Edit .env with your tenant ID, client ID, client secret
Configure in Claude Code / Claude Desktop
Add this to your MCP configuration (~/.claude/claude_desktop_config.json for Desktop, or claude mcp add for Claude Code):
{
"mcpServers": {
"powerbi": {
"command": "python",
"args": ["-m", "powerbi_mcp"],
"env": {
"POWERBI_TENANT_ID": "your-tenant-id",
"POWERBI_CLIENT_ID": "your-client-id",
"POWERBI_CLIENT_SECRET": "your-client-secret"
}
}
}
}
Or using uv (no install needed):
{
"mcpServers": {
"powerbi": {
"command": "uvx",
"args": ["--from", "/path/to/powerbi-mcp-server", "powerbi-mcp"],
"env": {
"POWERBI_TENANT_ID": "...",
"POWERBI_CLIENT_ID": "...",
"POWERBI_CLIENT_SECRET": "..."
}
}
}
}
Claude Code CLI
claude mcp add powerbi \
--command python \
--args "-m powerbi_mcp" \
-e POWERBI_TENANT_ID=your-tenant-id \
-e POWERBI_CLIENT_ID=your-client-id \
-e POWERBI_CLIENT_SECRET=your-client-secret
Example prompts
Once connected, you can ask Claude:
- "List all Power BI workspaces I have access to."
- "Run this DAX query on dataset abc-123: EVALUATE SUMMARIZE(Sales, Sales[Region], "Total", SUM(Sales[Amount]))"
- "Refresh the dataset named 'Monthly Sales' in the Finance workspace."
- "Show me all the pages and visuals in the Executive Dashboard report."
Development
pip install -e ".[dev]"
python -m powerbi_mcp # runs the MCP server via stdio
Установить Powerbi Server в Claude Desktop, Claude Code, Cursor
unyly install powerbi-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add powerbi-mcp-server -- uvx powerbi-mcpFAQ
Powerbi Server MCP бесплатный?
Да, Powerbi Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Powerbi Server?
Нет, Powerbi Server работает без API-ключей и переменных окружения.
Powerbi Server — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Powerbi Server в Claude Desktop, Claude Code или Cursor?
Открой Powerbi Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Powerbi Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
