Microsoft Fabric MCP Server
Exposes Microsoft Fabric operations as MCP tools, with 105 tools across 17 domains including lakehouses, warehouses, notebooks, pipelines, and real-time analytics, handling long-running operations and supporting multiple authentication modes.
README
Microsoft Fabric MCP Server
A production-grade Model Context Protocol server for Microsoft Fabric. Exposes Fabric operations as MCP tools over stdio (local) and Streamable HTTP (hosted/multi-user).
- TypeScript (ESM, Node 20+), REST-only (Fabric has no typed SDK)
- Transparent Long-Running Operation (LRO) handling — 202 + Location is polled to completion automatically
- Three auth modes: Azure CLI (
az login), Service Principal (deploy path — Fabric has no PAT), OBO + Entra JWT (hosted) - Per-tool RBAC, destructive-op guard, secret redaction, structured logging, retry + per-host circuit breaker
- Wraps the Fabric REST API, the Power BI API, and OneLake (per-resource token scopes)
Status: All phases complete — 105 tools across 17 domains, plus 4 resources and 4 prompts:
- core (11) · items (7) · lakehouses (7) · warehouses (4) · sqlendpoints (3) · shortcuts (4)
- notebooks (6) · pipelines (6) · jobs (6) · spark (6)
- semanticmodels (5) · reports (3) · dataflows (5)
- realtime (12: eventhouses, KQL databases, eventstreams) · onelake (5: files/dirs via DFS)
- git (7: workspace Git integration) · platform (8: deployment pipelines, connections, gateways)
- Resources:
fabric://workspaces,fabric://workspace/{w}/items,…/lakehouses,…/item/{id}- Prompts:
medallion-architecture,document-workspace,build-etl,diagnose-refreshHardening: per-host circuit breaker, retry + Retry-After, transparent LRO polling, secret redaction, per-tool RBAC + destructive guard, audit logging, ESLint, Vitest suite (unit + live MCP-protocol test), Azure Pipelines CI.
1. Prerequisites
- Node.js ≥ 20
- A Fabric-enabled tenant and an identity with a Fabric/Power BI license (or a service principal enabled for Fabric APIs and added to the workspaces)
- One of: Azure CLI (
az login), a service principal, or (hosted) an Entra app for OBO
2. Install & configure
cd "E:\MCP Servers\fabric-mcp-server"
npm install
cp .env.example .env # PowerShell: Copy-Item .env.example .env
Minimum for local use with the Azure CLI:
AUTH_MODE=azcli
FABRIC_DEFAULT_WORKSPACE= # optional default workspace ID
Auth modes
AUTH_MODE |
Needs | Notes |
|---|---|---|
azcli |
az login |
Easiest for dev. Token minted for the Fabric scope. |
sp |
AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET |
Deployment path. The SP must be enabled in Fabric tenant settings and added to the workspaces. |
obo |
same three | HTTP transport only. Validates the caller's Entra JWT, then exchanges it per resource (preserves user identity). |
3. Build & run
npm run build && npm start # stdio (default)
node dist/index.js --transport http # Streamable HTTP on PORT (default 3100)
4. Connect a client (npx)
{
"mcpServers": {
"fabric": {
"command": "npx",
"args": ["-y", "fabric-mcp-server"],
"env": { "AUTH_MODE": "azcli", "FABRIC_DEFAULT_WORKSPACE": "<workspace-id>" }
}
}
}
For deployment use AUTH_MODE=sp with the three AZURE_* env vars.
5. Scripts
| Script | Purpose |
|---|---|
npm run build |
Compile TypeScript → dist/ |
npm start / start:http |
Run compiled server (stdio / HTTP) |
npm run dev / dev:http |
Watch-mode dev (tsx) |
npm run typecheck · lint · test · ci |
Quality gates |
6. Architecture
transport (stdio | http)
→ server (McpServer + registry)
→ dispatch (RBAC · destructive guard · audit · error envelope)
→ domain tools (Zod schemas)
→ domain services
→ FabricClient (REST + retry + circuit breaker + LRO polling)
→ credential (AzCli | ServicePrincipal | OBO) → per-resource token
Each Fabric area is a self-contained module under src/domains/<area>/ exporting a DomainModule. To add an area, create the module and append it to domains in src/server.ts.
Key Fabric specifics: every write is an LRO (handled in src/client/fabricClient.ts); item definitions (notebooks, pipelines) are base64 file parts (helpers in src/domains/_shared.ts); tokens are acquired per resource (Fabric / Power BI / OneLake).
Full walkthrough: see docs/END_TO_END_FLOW.md for how a request travels through every layer (startup, a tool call step by step, the LRO + item-definition mechanisms, auth/scope flows, resources/prompts, and a worked medallion-ETL example).
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。