🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@microsoft/fabric-mcp

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/fabric-mcp

Microsoft Fabric MCP Server - Model Context Protocol implementation for Fabric

latest
Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
781
11.89%
Maintainers
2
Weekly downloads
 
Created
Source

Microsoft Fabric Logo Microsoft Fabric MCP Server NPM Package

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. The Fabric MCP Server packages complete OpenAPI specifications into a single context layer for AI-assisted development—without connecting to live Fabric environments.

Table of Contents

Overview

Microsoft Fabric MCP Server gives your AI agents the knowledge they need to generate robust, production-ready code for Microsoft Fabric—all without directly accessing your environment.

Key capabilities:

  • Complete API Context: Full OpenAPI specifications for all supported Fabric workloads
  • 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 Security: Runs entirely on your machine—never connects to your Fabric environment
  • Data Factory Integration: Pipeline and Dataflow Gen2 management with M query execution

Installation

  • To use Fabric MCP server from node one must have Node.js (LTS) installed and available on your system PATH — this provides both npm and npx. We recommend Node.js 20 LTS or later. To verify your installation run: node --version, npm --version, and npx --version.

  • Configure the mcp.json file with the following:

    {
        "mcpServers": {
            "fabric-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@microsoft/fabric-mcp@latest",
                "server",
                "start",
                "--mode",
                "all"
                ]
            }
        }
    }
    

Note: When manually configuring Visual Studio and Visual Studio Code, use servers instead of mcpServers as the root object.

Client-Specific Configuration

IDEFile LocationDocumentation 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.jsonCursor MCP Documentation
VS Code.vscode/mcp.json (workspace)
settings.json (user)
VS Code MCP Documentation
Windsurf~/.codeium/windsurf/mcp_config.jsonWindsurf Cascade MCP Integration

Usage

Getting Started

  • Open GitHub Copilot in VS Code and switch to Agent mode.
  • Click refresh on 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 workload 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:

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"

Fabric Workloads & APIs

  • "What are the available Fabric workload 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

  • "Generate a data pipeline configuration with sample data sources"
  • "Help me scaffold a Fabric workspace with Lakehouse and notebooks"
  • "Show me how to handle long-running operations in Fabric APIs"
  • "What's the recommended error handling pattern for Fabric API calls?"

Available Tools

The Fabric MCP Server exposes tools organized into three categories:

API Documentation & Best Practices

Tool NameDescription
docs_workloadsLists Fabric workload types that have public API specifications available.
docs_workload-api-specRetrieves the complete OpenAPI specification for a specific Fabric workload.
docs_platform-api-specRetrieves the OpenAPI specification for core Fabric platform APIs.
docs_item-definitionsRetrieves JSON schema definitions for items in a Fabric workload API.
docs_best-practicesRetrieves best practice documentation and guidance for a specific topic.
docs_api-examplesRetrieves example API request/response files for a specific workload.

OneLake Data Operations

Tool NameDescription
onelake_list_workspacesLists available Microsoft Fabric workspaces.
onelake_list_itemsLists workspace items with high-level metadata.
onelake_list_items_dfsLists Fabric items via the DFS endpoint.
onelake_list_filesLists files using the hierarchical file-list endpoint.
onelake_download_fileDownloads a OneLake file.
onelake_upload_fileUploads a file to OneLake storage.
onelake_delete_fileDeletes a file from OneLake storage.
onelake_create_directoryCreates a directory via the DFS endpoint.
onelake_delete_directoryDeletes a directory (optionally recursive).
onelake_get_table_configRetrieves table API configuration for a workspace item.
onelake_list_table_namespacesLists table namespaces (schemas) exposed through the table API.
onelake_get_table_namespaceRetrieves metadata for a specific namespace.
onelake_list_tablesLists tables published within a namespace.
onelake_get_tableRetrieves the definition for a specific table.

OneLake Security — Data Access Roles

Tool NameDescription
onelake_list_data_access_rolesLists all data access roles defined on a single item.
onelake_get_data_access_roleGets the full definition of a single data access role (members, permissions, decision rules).
onelake_create_or_update_data_access_roleUpserts a single data access role on a single item.
onelake_delete_data_access_roleDeletes a single data access role from an item.

OneLake Shortcuts

Tool NameDescription
onelake_list_shortcutsLists shortcuts defined within an item. Hides DW-managed shortcuts by default (--include-managed to show).
onelake_get_shortcutGets the properties of a single shortcut.
onelake_create_shortcut_onelakeCreates a shortcut pointing to another OneLake location.
onelake_create_shortcut_adls_gen2Creates a shortcut pointing to Azure Data Lake Storage Gen2.
onelake_create_shortcut_amazon_s3Creates a shortcut pointing to Amazon S3.
onelake_create_shortcut_azure_blobCreates a shortcut pointing to Azure Blob Storage.
onelake_create_shortcut_gcsCreates a shortcut pointing to Google Cloud Storage.
onelake_create_shortcut_s3_compatibleCreates a shortcut pointing to S3-compatible storage.
onelake_create_shortcut_dataverseCreates a shortcut pointing to a Dataverse environment.
onelake_create_shortcut_onedrive_sharepointCreates a shortcut pointing to OneDrive/SharePoint Online.
onelake_delete_shortcutDeletes a single shortcut from an item (preserves destination data).
onelake_reset_shortcut_cacheDrops cached shortcut reads, forcing re-resolution from destination.

OneLake Settings

Tool NameDescription
onelake_get_settingsGets OneLake settings for a workspace (diagnostics + immutability policy).
onelake_modify_diagnosticsModifies diagnostic logging configuration (status, destination lakehouse) at workspace scope.
onelake_modify_immutability_policyModifies the workspace-level OneLake immutability policy (scope, retention days).

Core Fabric Operations

Tool NameDescription
core_search-catalogSearches the OneLake catalog for items across workspaces by name, description, or workspace name. Optionally filter by item type.
core_create-itemCreates new Fabric items (Lakehouses, Notebooks, etc.).

Data Factory Operations

Tool NameDescription
datafactory_list-pipelinesLists all pipelines in a Microsoft Fabric workspace.
datafactory_create-pipelineCreates a new pipeline in a workspace.
datafactory_get-pipelineGets details of a specific pipeline.
datafactory_run-pipelineRuns a pipeline on demand.
datafactory_list-dataflowsLists all Dataflow Gen2 items in a workspace.
datafactory_create-dataflowCreates a new Dataflow Gen2 item.
datafactory_execute-queryExecutes an M (Power Query) query against a dataflow.

Always verify available commands via --help. Command names and availability may change between releases.

Support and Reference

Documentation

Feedback and Support

  • Support for this server implementation is primarily provided through community channels and GitHub repositories. Customers with qualifying Microsoft enterprise support agreements may have access to limited support for broader Microsoft Fabric and platform scenarios; review the Microsoft Support Policy section of this project for more details.
  • Check the Troubleshooting guide to diagnose and resolve common issues.
  • We're building this in the open. Your feedback is much appreciated!
    • Open an issue in the public GitHub repository — we'd love to hear from you!

Security

The Fabric MCP Server is a local-first tool that runs entirely on your machine. It provides API specifications, schemas, and best practices without connecting to live Microsoft Fabric environments.

MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to.

Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

Contributing

We welcome contributions to the Fabric MCP Server! Whether you're fixing bugs, adding new features, or improving documentation, your contributions are welcome.

Please read our Contributing Guide for guidelines on:

  • Setting up your development environment
  • Adding new commands
  • Code style and testing requirements
  • Making pull requests

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact open@microsoft.com with any additional questions or comments.

License

This project is licensed under the MIT License — see the LICENSE file for details.

Keywords

fabric

FAQs

Package last updated on 08 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts