Microsoft Fabric MCP Server
A local-first Model Context Protocol (MCP) server that provides AI agents with comprehensive access to Microsoft Fabric's public APIs, item definitions, and best practices. Documentation tools use bundled specifications without connecting to live Fabric environments; operational tools call Fabric APIs using the configured identity.
Table of Contents
- Overview
- Installation
- IDE
- VS Code (Recommended)
- Manual Setup
- Docker
- IDE
- Usage
- Getting Started
- What can you do with the Fabric MCP Server?
- Capacity Discovery
- Catalog Discovery
- Fabric Item Types & APIs
- Resource Definitions & Schemas
- Best Practices & Examples
- Development Workflows
- Workspace Metadata
- Available Tools
- Namespace Filtering
- API Documentation & Best Practices
- OneLake Data Operations
- OneLake Security, Data Access Roles
- OneLake Shortcuts
- OneLake Settings
- Core Fabric Operations
- Jobs
- Data Factory Operations
- Support and Reference
- Documentation
- Feedback and Support
- Security
- Data Collection
- Contributing
- Code of Conduct
- License
Overview
Microsoft Fabric MCP Server gives your AI agents the knowledge they need to generate robust, production-ready code for Microsoft Fabric, alongside authenticated tools for working with Fabric resources.
Key capabilities:
- Complete API Context: Full OpenAPI specifications for all supported Fabric item types
- Item Definition Knowledge: JSON schemas for every Fabric item type (Lakehouses, pipelines, semantic models, notebooks, etc.)
- Built-in Best Practices: Embedded guidance on pagination, error handling, and recommended patterns
- Local-First Documentation: Documentation tools read bundled resources locally; operational tools access Fabric under the configured identity
- Workspace Metadata Updates: Rename a known workspace or update or clear its description without changing other properties
- Data Factory Integration: Pipeline and Dataflow Gen2 management with M query execution
Installation
The manual configuration examples use mcpServers as the root object. In Visual Studio and Visual Studio Code, use servers instead.
When using the VS Code extension, fabricMcp.enabledServices selects from core, jobs, docs, onelake, and datafactory. Leave the list empty to enable all toolsets. Select both core and jobs for workflows combining item or definition operations with job submission, cancellation, instance listing/lookup, or schedule listing/creation/updates; selecting only core does not expose Jobs. If an existing setting contains publicapis, replace it with docs or clear the list; saved settings are not migrated automatically.
IDE
Start using Fabric MCP with your favorite IDE. We recommend VS Code:
VS Code (Recommended)
Compatible with both the Stable and Insiders builds of VS Code.
- Install the GitHub Copilot Chat extension.
- Install the Fabric MCP Server extension.
Manual Setup
Fabric MCP Server can also be configured across other IDEs, CLIs, and MCP clients:
Manual setup instructions
Use one of the following options to configure your mcp.json:
Option 1: Configure using the .NET tool (NuGet)
Install the .NET 10 SDK or later. Verify it with
dotnet --version.Install the published Microsoft.Fabric.Mcp tool:
dotnet tool install --global Microsoft.Fabric.Mcp --source https://api.nuget.org/v3/index.jsonEnsure the .NET global tools directory is on the
PATHavailable to your MCP client, then configuremcp.json:{ "mcpServers": { "Fabric MCP Server": { "command": "fabmcp", "args": [ "server", "start", "--mode", "all" ], "type": "stdio" } } }
Alternatively, .NET 10 supports running the published package on demand with dnx, without a permanent tool installation:
dnx Microsoft.Fabric.Mcp --source https://api.nuget.org/v3/index.json -- server start --mode all
Both commands use the latest published stable package unless you specify a version. To pin a released version, use --version <version> with dotnet tool install, or Microsoft.Fabric.Mcp@<version> with dnx.
Option 2: Configure using Node.js (npm/npx)
Install a supported Node.js LTS version 22.0.0 or later, with
npmandnpxavailable on your systemPATH. Verify your installation withnode --version,npm --version, andnpx --version.Configure the
mcp.jsonfile with the following:{ "mcpServers": { "fabric-mcp-server": { "command": "npx", "args": [ "-y", "@microsoft/fabric-mcp@latest", "server", "start", "--mode", "all" ] } } }
Build from source (contributors)
Building the repository is a separate development workflow, not required to use the published packages:
git clone https://github.com/microsoft/mcp.git
cd mcp
dotnet build servers/Fabric.Mcp.Server/src/Fabric.Mcp.Server.csproj --configuration Release
Use the built servers/Fabric.Mcp.Server/src/bin/Release/fabmcp executable as your MCP client's command, with ["server", "start", "--mode", "all"] as its arguments. On Windows, use backslashes and the .exe extension.
Client-Specific Configuration
| IDE | File Location | Documentation Link |
|---|---|---|
| Claude Code | ~/.claude.json or .mcp.json (project) |
Claude Code MCP Configuration |
| Claude Desktop | ~/.claude/claude_desktop_config.json (macOS)%APPDATA%\Claude\claude_desktop_config.json (Windows) |
Claude Desktop MCP Setup |
| Cursor | ~/.cursor/mcp.json or .cursor/mcp.json |
Cursor MCP Documentation |
| VS Code | .vscode/mcp.json (workspace)settings.json (user) |
VS Code MCP Documentation |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
Windsurf Cascade MCP Integration |
Docker
The published container image is available from Microsoft Container Registry as mcr.microsoft.com/fabric/fabric-mcp. Use Docker with Linux containers. The latest tag selects the most recently published image; when pinning a version, choose a tag that already exists in the registry.
The container does not inherit your host's az login session. For operational tools, configure an identity supported by the Fabric APIs you intend to call and grant it the required Fabric permissions. For example, supply a service principal using a local environment file stored outside your repository:
AZURE_TENANT_ID=<tenant-id>
AZURE_CLIENT_ID=<client-id>
AZURE_CLIENT_SECRET=<client-secret>
AZURE_TOKEN_CREDENTIALS=EnvironmentCredential
Never commit this file or put its secret values in mcp.json. See environment credential options for other supported credential settings.
Configure your MCP client, replacing the environment-file placeholder with an absolute path:
{
"mcpServers": {
"fabric-mcp-server": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env-file",
"<absolute-path-to-env-file>",
"mcr.microsoft.com/fabric/fabric-mcp:latest",
"--mode",
"all"
]
}
}
}
Keep stdin open with -i, without allocating a TTY. The image entrypoint already runs server start; do not repeat those arguments after the image name.
Usage
Getting Started
- Open GitHub Copilot in VS Code and switch to Agent mode.
- Click
refreshon the tools list- You should see the Fabric MCP Server in the list of tools
- Try a prompt that uses Fabric context, such as
What Fabric item types are available?- The agent should be able to use the Fabric MCP Server tools to complete your query
- Check out the Microsoft Fabric documentation and review the troubleshooting guide for commonly asked questions
- We're building this in the open. Your feedback is much appreciated!
What can you do with the Fabric MCP Server?
The Fabric MCP Server supercharges your agents with Microsoft Fabric context. Here are some prompts you can try:
Capacity Discovery
- "List Fabric capacities where I am an administrator or contributor"
- "Show the IDs, SKUs, regions, and states of my accessible Fabric capacities"
- "Get the next page of Fabric capacities using the continuation token from the previous response"
core_list-capacities returns exactly one page of capacity metadata in capacities, with continuationToken and continuationUri when supplied by Fabric. Pass the token unchanged through --continuation-token to request another page. Returned URIs are metadata only and are never followed; the tool does not retrieve all pages automatically.
The Fabric List Capacities API lists capacities where the calling principal is an administrator or contributor. It supports users, service principals, and managed identities. Delegated calls require Capacity.Read.All or Capacity.ReadWrite.All; this is not an Azure subscription inventory and takes no subscription parameter.
Catalog Discovery
- "Search the OneLake catalog for items related to 'sales revenue'"
- "Find a Lakehouse with 'customer' in the name across my workspaces"
- "Discover all Report items in the catalog and show which workspace they live in"
- "Filter the catalog to Warehouse and Notebook items"
- "List the Fabric workspaces I can access and show their capacity and domain metadata"
- "List my Fabric workspaces where I am an Admin or Member"
- "List accessible Fabric workspaces and include their workspace-specific API endpoints"
- "List item metadata in my Fabric workspace, including nested folders"
- "Show only the Lakehouses directly in this Fabric folder"
Fabric Item Types & APIs
- "What are the available Fabric item types I can work with?"
- "Show me the OpenAPI operations for 'notebook' and give a sample creation body"
- "Get the platform-level API specifications for Microsoft Fabric"
- "List all supported Fabric item types"
Resource Definitions & Schemas
- "Create a Lakehouse resource definition with a schema that enforces a string column and a datetime column"
- "Show me the JSON schema for a Data Pipeline item definition"
- "Generate a Semantic Model configuration with sample measures"
- "What properties are required for creating a KQL Database?"
Best Practices & Examples
- "Show me best practices for handling API throttling in Fabric"
- "How should I implement retry logic for Fabric API rate limits?"
- "List recommended retry/backoff behavior for Fabric APIs when rate-limited"
- "Show me best practices for authenticating with Fabric APIs"
- "Get example request/response payloads for creating a Notebook"
- "What are the pagination patterns for Fabric REST APIs?"
Development Workflows
- "Get the metadata for Fabric item '' in workspace '' without reading its data or definition"
- "Show the display name, description, and type of Fabric item '' in workspace ''"
- "Generate a data pipeline configuration with sample data sources"
- "Help me scaffold a Fabric workspace with Lakehouse and notebooks"
- "Create a Microsoft Fabric workspace called Sales Planning"
- "Create a Fabric workspace called Capacity Analytics using the existing capacity with ID <capacity-id>"
- "Show me how to handle long-running operations in Fabric APIs"
- "What's the recommended error handling pattern for Fabric API calls?"
Workspace Metadata
Use core_get-workspace to retrieve metadata for one known workspace through the Get Workspace REST API.
- "Get metadata for Fabric workspace
aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa." - "Show the capacity, domain, and workspace identity for Fabric workspace
aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa." - "Get Fabric workspace
aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaawith workspace-specific API and OneLake endpoints."
| Argument | Required | Description |
|---|---|---|
workspace-id |
Yes | Nonempty workspace UUID, not a name or URL. Accepted UUID representations are normalized before the request. |
prefer-workspace-specific-endpoints |
No | Boolean endpoint preference. Omit to preserve the service default, or explicitly pass true or false. |
fabmcp core get-workspace --workspace-id aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
fabmcp core get-workspace --workspace-id aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa --prefer-workspace-specific-endpoints true
The result contains a workspace object with id and displayName. When returned by Fabric it also includes type, description, capacityId, capacityAssignmentProgress, capacityRegion, domainId, workspaceIdentity, oneLakeEndpoints, apiEndpoint, and applied tags. Missing/null optional fields are omitted; an explicitly empty tag list remains empty. New workspace types, capacity regions, and progress values are preserved.
Workspace identity fields contain application and service-principal IDs, not credentials. Returned endpoints are metadata only: this tool never contacts them. Workspaces with public access disabled may return workspace-specific OneLake endpoints even when the preference is omitted or false; an absent API endpoint is not inferred.
The tool does not list workspaces or items, read item data or definitions, modify resources, or poll capacity assignments. Errors retain their HTTP status without exposing backend bodies. A 429 includes validated Retry-After guidance when available, but the tool does not automatically retry.
Permissions: The caller needs Viewer-or-higher workspace access. Delegated callers also need Workspace.Read.All or Workspace.ReadWrite.All. The API supports users, service principals, and managed identities subject to their permissions and Fabric configuration. The tool preserves the server's configured credentials: stdio/hosting identity uses the host's credential provider, and HTTP/OBO uses the current caller's delegated context.
By default, the MCP text response contains the command envelope with results.workspace. With --structured-output-mode compact or --structured-output-mode duplicated, the server also advertises the typed output schema and returns structuredContent.workspace.
Available Tools
The Fabric MCP Server exposes core, jobs, docs, onelake, and datafactory areas.
Namespace Filtering
core and jobs are separate top-level areas in the same Fabric MCP server. Core manages workspaces,
items, definitions, capacities, and Fabric /operations LROs. It also supports logical workspace
folder listing, creation, lookup, renaming, movement, and empty-folder deletion.
Core also lists one page of workspace role assignments or gets one assignment by explicit workspace
and assignment IDs, returning available principal metadata without directory lookups, group-membership
expansion, or role changes. Each additional page or assignment lookup is a separate explicit call.
Add Workspace Role Assignment is a separate mutation requiring an explicit principal and role.
It sends one grant request without default access, name resolution, preflight, or conflict updates.
Update Workspace Role Assignment separately replaces the role on an explicitly identified existing
assignment with one PATCH. It requires Admin access and an explicit role, without identity translation,
preflight, create/upsert fallback, automatic retry, or polling.
Delete Workspace Role Assignment removes only an explicitly identified assignment with one DELETE,
not the principal, group membership, workspace, or all sources of effective access. It requires Admin
access, protects the last admin assignment, and returns a receipt only for HTTP 200 without preflight,
automatic retry, polling, or verification.
The separate Items Move operation places an item and its child items in an existing folder or
at the root of the same workspace, returning the complete moved-item metadata collection.
Jobs submits an on-demand item job,
requests cancellation of an existing job, reads one job instance, lists one page of an item's jobs
or schedules, or reads, creates, updates, or deletes one schedule in separate calls. Each listing requires an explicit continuation
token for each additional page. Schedule operations require an explicit job type.
Schedule lookup, updates, and deletion require a schedule ID; creation and updates also require explicit
enabled/timing/timezone intent and full configuration. Deletion returns a receipt, not a schedule snapshot,
and does not cancel already-running jobs.
Both areas reuse the same configured Fabric authentication and HTTP transport.
# Core-only: workspace management and role assignments, folders, item/definition, capacity, and operation tools, but no Jobs commands.
fabmcp server start --mode all --namespace core
# Jobs-only: job submission, cancellation, instance listing/lookup, and schedule lookup/listing/creation/updates/deletion.
fabmcp server start --mode all --namespace jobs
# Item/definition work plus job and schedule operations: enable both areas.
fabmcp server start --mode all --namespace core --namespace jobs
# The same combined selection with hierarchical namespace routers or a single router.
fabmcp server start --mode namespace --namespace core --namespace jobs
fabmcp server start --mode single --namespace core --namespace jobs
Omit --namespace to enable all registered areas. Filtering restricts both discovery and invocation,
not the shared services needed by the selected area. In all mode, the tools are exposed directly as
jobs_cancel-item-job-instance, jobs_create-item-schedule, jobs_delete-item-schedule, jobs_get-item-job-instance, jobs_get-item-schedule,
jobs_list-item-job-instances, jobs_list-item-schedules, jobs_run-on-demand-item-job, and jobs_update-item-schedule.
In namespace mode, call the jobs
router with learn=true to obtain their schemas, then specify the command name and its parameters. In single mode,
use the fabric router with tool="jobs" and the same command/parameters; learn=true lists areas or
the commands for a selected area. Core-only selection never exposes or routes Jobs tools.
Read-only mode hides and denies Run, Cancel, Create Schedule, Update Schedule, and Delete Schedule while retaining Get Job Instance,
Get Schedule, and both listing tools. Schedule lookup and listing retain the host's sensitive-data confirmation
because their output may include configuration, owner information, and job execution data.
Read-only Core retains List/Get Workspace Role Assignment but hides and denies Add Workspace Role Assignment.
API Documentation & Best Practices
| Tool Name | Description |
|---|---|
docs_list-item-types |
Lists the Fabric item types that have public API specifications available, plus the non-item API areas (platform, admin, spark, realTimeIntelligence). |
docs_item-api-spec |
Retrieves the complete OpenAPI specification for a specific Fabric item type. |
docs_platform-api-spec |
Retrieves the OpenAPI specification for core Fabric platform APIs. |
docs_item-definitions |
Retrieves the JSON schema definition for a Fabric item type. |
docs_best-practices |
Retrieves best practice documentation and guidance for a specific topic. |
docs_api-examples |
Retrieves example API request/response files for a specific item type. |
OneLake Data Operations
| Tool Name | Description |
|---|---|
onelake_list-workspaces |
Lists available Microsoft Fabric workspaces. |
onelake_list-items |
Lists workspace items with high-level metadata. |
onelake_list-items-dfs |
Lists Fabric items via the DFS endpoint. |
onelake_list-files |
Lists files using the hierarchical file-list endpoint. |
onelake_download-file |
Downloads a OneLake file. |
onelake_upload-file |
Uploads a file to OneLake storage. |
onelake_delete-file |
Deletes a file from OneLake storage. |
onelake_create-directory |
Creates a directory via the DFS endpoint. |
onelake_delete-directory |
Deletes a directory (optionally recursive). |
onelake_get-table-config |
Retrieves table API configuration for a workspace item. |
onelake_list-table-namespaces |
Lists table namespaces (schemas) exposed through the table API. |
onelake_get-table-namespace |
Retrieves metadata for a specific namespace. |
onelake_list-tables |
Lists tables published within a namespace. |
onelake_get-table |
Retrieves the definition for a specific table. |
OneLake Security, Data Access Roles
| Tool Name | Description |
|---|---|
onelake_list-data-access-roles |
Lists all data access roles defined on a single item. |
onelake_get-data-access-role |
Gets the full definition of a single data access role (members, permissions, decision rules). |
onelake_create-or-update-data-access-role |
Upserts a single data access role on a single item. |
onelake_delete-data-access-role |
Deletes a single data access role from an item. |
OneLake Shortcuts
| Tool Name | Description |
|---|---|
onelake_list-shortcuts |
Lists shortcuts defined within an item. Hides DW-managed shortcuts by default (--include-managed to show). |
onelake_get-shortcut |
Gets the properties of a single shortcut. |
onelake_create-shortcut-onelake |
Creates a shortcut pointing to another OneLake location. |
onelake_create-shortcut-adls-gen2 |
Creates a shortcut pointing to Azure Data Lake Storage Gen2. |
onelake_create-shortcut-amazon-s3 |
Creates a shortcut pointing to Amazon S3. |
onelake_create-shortcut-azure-blob |
Creates a shortcut pointing to Azure Blob Storage. |
onelake_create-shortcut-gcs |
Creates a shortcut pointing to Google Cloud Storage. |
onelake_create-shortcut-s3-compatible |
Creates a shortcut pointing to S3-compatible storage. |
onelake_create-shortcut-dataverse |
Creates a shortcut pointing to a Dataverse environment. |
onelake_create-shortcut-onedrive-sharepoint |
Creates a shortcut pointing to OneDrive/SharePoint Online. |
onelake_delete-shortcut |
Deletes a single shortcut from an item (preserves destination data). |
onelake_reset-shortcut-cache |
Drops cached shortcut reads, forcing re-resolution from destination. |
OneLake Settings
| Tool Name | Description |
|---|---|
onelake_get-settings |
Gets OneLake settings for a workspace (diagnostics + immutability policy). |
onelake_modify-diagnostics |
Modifies diagnostic logging configuration (status, destination lakehouse) at workspace scope. |
onelake_modify-immutability-policy |
Modifies the workspace-level OneLake immutability policy (scope, retention days). |