Fabric Admin MCP Server
Click on "Deploy 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 Admin MCP Serverlist my Fabric capacities"
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 Admin MCP Server
An open-source MCP server to perform operations on Microsoft Fabric, like administration and management of Fabric capacities. At this moment, this repo has an initial set of tools to manage Capacities, but it will be expanded to further support additional tools and Fabric administration workloads.
✨ Features
Exposes Fabric admin operations as MCP tools;
Uses secure, yet flexible, authentication mechanisms for Azure and Fabric, like Service Principal and Managed Identities;
FastAPI + FastMCP for a modern, async, extensible backend;
Related MCP server: fabric-dw-mcp-cli
🤖 Interacting with the MCP Server
You can use any MCP Client to interact with this MCP server. Below, is a sample showing how to interact with it using GitHub Copilot on VSCode as a MCP Client:

This example demonstrates how the MCP tools are exposed and can be accessed for managing Microsoft Fabric resources.
🗂️ Project Structure
server.py— Main entry point to start the MCP servercommon.py— Shared utilities and loggingsrc/capacity/— Logic to interact with Fabric and expose then as MCP toolsrequirements.txt— Python dependencies
⚡ Quickstart
Install dependencies:
pip install -r requirements.txtSet up authentication:
The server uses
DefaultAzureCredentialfor secure Azure API access.You can authenticate using:
Azure CLI: Run
az loginin your terminal.Managed Identity: If running in Azure, ensure the managed identity has the required permissions.
Service Principal: Create a
.envfile in the project root with applicable variables (see "Using a Service Principal for Authentication" section below for details).
Run the MCP server locally:
python server.pyThe server will start at http://127.0.0.1:8000/mcp/.
Test with VS Code as a Client:
Open the Command Palette (
Ctrl+Shift+P), search for "MCP: Connect to Server", and enterhttp://127.0.0.1:8000/mcp/.You can now use MCP tools exposed by this server directly from VS Code using Agent Mode.
📦 Requirements
Python 3.8+;
Azure credentials with proper access to the backend (Azure/Fabric admin)/
🔐 Using a Service Principal for Authentication
Create a Service Principal (if you don't have one):
az ad sp create-for-rbac --name <your-app-name> --role Contributor --scopes /subscriptions/<your-subscription-id>Note the
appId(Client ID),tenant, andpassword(Client Secret) from the output.Create a
.envfile in the project root: Copy.env.exampleto.envand fill in your values:AZURE_CLIENT_ID=your-service-principal-client-id AZURE_TENANT_ID=your-tenant-id AZURE_CLIENT_SECRET=your-service-principal-client-secretAuthorize the Service Principal: Ensure the Service Principal has appropriate permissions. For example, at least
Contributorat subscription or Resource Group level to manage Fabric Capacities. Additional Admin API access will be required for additional tools yet to be developed.Run the server: The server will automatically use these credentials for authentication via
DefaultAzureCredential.
🚀 Future Improvements
Add option to deploy as a Docker image.
Add option to deploy as an Azure Function.
Add tools for additional Fabric management operations, such as Workspace management and reviewing capacity settings.
Improve documentation and provide more usage examples.
Add automated tests and CI/CD pipeline for deployments.
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
Authenticated MCP server for ClearPolicy policy and compliance workflows.
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
- toolsOAuthcom.streamkap
Streamkap CLI & MCP server - manage CDC pipelines, sources, destinations, and transforms
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI agents to interact with Microsoft Fabric by exposing tools for managing workspaces, notebooks, SQL queries, pipelines, and Livy Spark sessions. It provides a comprehensive set of operations for data engineering and analytics tasks using standard Azure authentication.374MIT
- AlicenseBqualityAmaintenanceCLI and MCP server for administering Microsoft Fabric Data Warehouses and SQL Analytics Endpoints.12310MIT
- FlicenseCqualityDmaintenanceExposes 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.100-
- AlicenseBqualityBmaintenanceMCP server for Microsoft Fabric REST APIs that enables data engineers and analysts to manage Fabric components using AI assistants.21944 npmAGPL 3.0