Microsoft Fabric Analytics MCP Server 标志

Microsoft Fabric Analytics MCP Server

社区
santhoshravindran7

A Model Context Protocol (MCP) server that enables AI assistants to securely access and analyze Microsoft Fabric Analytics data through authenticated API calls.

发布者santhoshravindran7
代码仓库Fabric-Analytics-MCP
语言JavaScript
复刻数
38
星标数
110
可用工具
0
传输类型stdio, streamable-http
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    Microsoft Fabric Analytics MCP Server 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 110 个星标和 38 个复刻。

MseeP.ai Security Assessment Badge

Microsoft Fabric Analytics MCP Server

License: MIT PyPI version npm version TypeScript Node.js Python Model Context Protocol PRs Welcome GitHub issues GitHub stars

A comprehensive Model Context Protocol (MCP) server that provides analytics capabilities and tools for interacting with Microsoft Fabric data platform. This server enables AI assistants like Claude to seamlessly access, analyze, and monitor Microsoft Fabric resources through standardized MCP protocols, bringing the power of Microsoft Fabric directly to your AI conversations.

📋 Table of Contents

🌟 Key Features

  • 🏗️ Complete Workspace Management - Create, delete, and manage Fabric workspaces with capacity assignment
  • 🔄 Enhanced CRUD Operations - Create, read, update, and delete all Fabric items (notebooks, lakehouses, datasets, reports)
  • 📓 Advanced Notebook Management - Create, execute, and manage Fabric notebooks with 5 predefined templates
  • ⚡ Livy API Integration - Full Spark session and batch job management with real-time monitoring
  • 📊 Comprehensive Spark Monitoring - Real-time monitoring across workspaces, items, and applications
  • 🤖 Multi-AI Assistant Support - Works with Claude Desktop, GitHub Copilot, and other MCP-compatible AI tools
  • 🔐 Enhanced Azure CLI Authentication - Zero-config setup with automatic token management
  • �️ Enterprise Authentication - Multiple auth methods (Bearer, Service Principal, Device Code, Interactive, Azure CLI)
  • 📈 Analytics & Insights - Generate comprehensive monitoring dashboards with real-time metrics
  • 🧪 End-to-End Testing - Complete test suite with real workspace creation and job execution
  • 🔄 Advanced Token Management - Automatic token validation, refresh, and expiration handling "List all Fabric capacities I can use" "Assign workspace 1234abcd-abcd-1234-abcd-123456789000 to capacity f9998888-7777-6666-5555-444433332222" "Show all workspaces in capacity f9998888-7777-6666-5555-444433332222" "Unassign workspace 1234abcd-abcd-1234-abcd-123456789000 from its capacity"
- **☸️ Enterprise Deployment** - Full Kubernetes and Azure deployment support with auto-scaling
- **🔄 Docker Support** - Containerized deployment with health checks and monitoring
- **📊 Monitoring & Observability** - Built-in Prometheus metrics and Grafana dashboards
- **🔀 Synapse to Fabric Migration** - Automated migration of Spark notebooks from Azure Synapse Analytics
- **🎯 52 Total Tools** - Comprehensive coverage of Fabric operations including migration (up from 48 tools)

## 🏗️ **New Workspace Management Features**

### **🆕 Latest Updates - Comprehensive Workspace Operations**

The MCP server now includes **21 new workspace management tools** that enable complete workspace lifecycle management:

### **🌟 Core Workspace Operations**
- **fabric_list_workspaces** - List all accessible workspaces with detailed metadata
- **fabric_create_workspace** - Create new workspaces with custom configuration
- **fabric_delete_workspace** - Delete workspaces with confirmation and cleanup
- **fabric_update_workspace** - Update workspace properties and settings
- **fabric_get_workspace** - Get detailed workspace information and status

### **⚡ Capacity & Resource Management**
- **fabric_list_capacities** - List all available Fabric capacities
- **fabric_assign_workspace_to_capacity** - Attach workspaces to dedicated capacity
- **fabric_unassign_workspace_from_capacity** - Move workspaces to shared capacity
- **fabric_list_capacity_workspaces** - List all workspaces in a capacity

### **👥 Access Control & Security**
- **fabric_get_workspace_role_assignments** - View workspace permissions
- **fabric_add_workspace_role_assignment** - Grant workspace access to users/groups
- **fabric_update_workspace_role_assignment** - Modify user permissions
- **fabric_remove_workspace_role_assignment** - Remove workspace access

### **🔄 Advanced Operations**
- **fabric_get_workspace_git_status** - Check Git integration status
- **fabric_connect_workspace_to_git** - Enable Git integration for workspace
- **fabric_disconnect_workspace_from_git** - Disable Git integration
- **fabric_update_workspace_git_connection** - Modify Git repository settings

### **🛠️ Environment & Pipeline Management**
- **fabric_list_workspace_environments** - List all environments in workspace
- **fabric_create_workspace_environment** - Create new environments
- **fabric_delete_workspace_environment** - Remove environments
- **fabric_list_workspace_data_pipelines** - List data integration pipelines
- **fabric_create_workspace_data_pipeline** - Create new data pipelines

### **🎯 Real-World Scenarios Enabled**

**🚀 Automated Workspace Provisioning:**

"Create a new workspace called 'Analytics-Q1-2025' and assign it to our premium capacity"


**📊 Multi-Workspace Analytics:**

"List all workspaces in our tenant and show their capacity assignments"


**🔒 Access Management:**

"Add user john.doe@company.com as Admin to the Analytics workspace"


**🏗️ Environment Setup:**

"Create a development environment in the Analytics workspace with Python and R libraries"


**🔄 Git Integration:**

"Connect the Analytics workspace to our GitHub repository for version control"


### **🤖 GitHub Copilot Integration**

**Perfect for GitHub Copilot** - The enhanced workspace management works seamlessly with **GitHub Copilot's built-in terminal**, making it ideal for:

- **🔧 Azure CLI Authentication** - Uses your existing `az login` session
- **💻 Terminal-Based Operations** - Natural workflow within your coding environment  
- **⚡ Rapid Prototyping** - Quickly create test workspaces and environments
- **🏗️ Infrastructure as Code** - Manage Fabric resources alongside your codebase
- **🔄 CI/CD Integration** - Automate workspace provisioning in deployment pipelines

**GitHub Copilot Example Commands:**

```bash
# Using Azure CLI auth, create a new workspace for our ML project
# List all workspaces and their Git integration status
# Set up a complete analytics environment with lakehouse and notebooks

🔀 Synapse to Fabric Migration Tools

🆕 Automated Spark Workload Migration

The MCP server now includes 4 specialized migration tools that automate the migration of Spark notebooks and pipelines from Azure Synapse Analytics to Microsoft Fabric:

🔍 Migration Discovery Tools

  • fabric_list_synapse_workspaces - List all Synapse workspaces in your Azure subscription
  • fabric_discover_synapse_workspace - Inventory notebooks, pipelines, linked services, and Spark jobs from Synapse

🔄 Transformation & Migration Tools

  • fabric_transform_notebooks - Transform Synapse notebooks to Fabric format (mssparkutils → notebookutils)
  • fabric_migrate_synapse_to_fabric - Complete end-to-end migration with discovery, transformation, and provisioning

✨ Key Migration Features

  • Automatic Code Transformation - Converts Synapse-specific code to Fabric equivalents:

    • mssparkutils → notebookutils
    • Synapse magic commands → Fabric magic commands
    • ABFSS path rewriting to OneLake
    • Spark pool configuration cleanup
  • Comprehensive Asset Discovery - Inventories all migrat assets:

    • Jupyter notebooks (ipynb format)
    • Data pipelines and workflows
    • Linked services and connections
    • Spark job definitions
  • Safe Testing with Dry Run - Preview all changes before applying:

    • Test transformations without provisioning
    • Validate transformed code
    • Review change reports
  • End-to-End Automation - Complete migration pipeline:

    • Discovery → Transformation → Provisioning → Validation
    • Automatic lakehouse creation
    • OneLake shortcut provisioning
    • Comprehensive migration reports

🎯 Migration Scenarios

Migration Demo

📋 Explore Before Migrating:

"List all my Synapse workspaces and show me what notebooks are in workspace 'analytics-synapse'"

🔄 Preview Transformations:

"Discover assets from my Synapse workspace 'analytics-synapse' and show me how the code would be transformed (dry run)"

🚀 Complete Migration:

"Migrate all notebooks from Synapse workspace 'analytics-synapse' to Fabric workspace 'abcd-1234' and create a lakehouse called 'MigratedData'"

📊 Detailed Migration Guide: See MIGRATION.md for comprehensive migration documentation including:

  • Step-by-step workflows
  • Transformation rule details
  • Best practices and troubleshooting
  • Complete examples

🎯 End-to-End Testing with Real Workspaces

The MCP server now includes comprehensive end-to-end testing that creates real workspaces, assigns them to capacities, and executes actual jobs to validate the complete workflow:

bash
# One-command end-to-end test
npm run test:e2e

What it tests:

  • ✅ Workspace Creation - Creates real Fabric workspaces
  • ✅ Capacity Assignment - Attaches workspaces to your Fabric capacity
  • ✅ Item Creation - Creates notebooks, lakehouses, and other items
  • ✅ Job Execution - Runs actual Spark jobs and monitors completion
  • ✅ Resource Cleanup - Automatically removes all test resources

🚀 Deployment Options

🤖 Claude Desktop Integration

Recommended for AI Assistant Usage:

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "node",
      "args": ["C:\\path\\to\\your\\build\\index.js"],
      "cwd": "C:\\path\\to\\your\\project",
      "env": {
        "FABRIC_AUTH_METHOD": "bearer_token",
        "FABRIC_TOKEN": "your_bearer_token_here",
        "FABRIC_WORKSPACE_ID": "your_workspace_id",
        "ENABLE_HEALTH_SERVER": "false"
      }
    }
  }
}

💡 Get Bearer Token: Visit Power BI Embed Setup to generate tokens

⚠️ Important: Tokens expire after ~1 hour and need to be refreshed

🔧 Claude Desktop Authentication Fix

If you experience 60-second timeouts during startup, this is due to interactive authentication flows blocking Claude Desktop's sandboxed environment. Solution:

  1. Use Bearer Token Method (Recommended):

    • Set FABRIC_AUTH_METHOD: "bearer_token" in your config
    • Provide FABRIC_TOKEN with a valid bearer token
    • This bypasses interactive authentication entirely
  2. Alternative - Per-Tool Authentication:

    • Provide token directly in tool calls: bearerToken: "your_token_here"
    • Or use simulation mode: bearerToken: "simulation"
  3. Troubleshooting:

    • Server now has 10-second timeout protection to prevent hanging
    • Falls back to simulation mode if authentication fails
    • Enhanced error messages provide clear guidance

🎯 Quick Fix: The server automatically prioritizes FABRIC_TOKEN environment variable over interactive authentication flows, preventing Claude Desktop timeouts.

📱 Local Development

bash
# Clone and run locally
git clone https://github.com/santhoshravindran7/Fabric-Analytics-MCP.git
cd Fabric-Analytics-MCP
npm install && npm run build && npm start

🐳 Docker Deployment

bash
# Using Docker Compose
docker-compose up -d

# Or standalone Docker
docker build -t fabric-analytics-mcp .
docker run -p 3000:3000 -e FABRIC_CLIENT_ID=xxx fabric-analytics-mcp

☸️ Azure Kubernetes Service (AKS)

bash
# One-command enterprise deployment
export ACR_NAME="your-registry" FABRIC_CLIENT_ID="xxx" FABRIC_CLIENT_SECRET="yyy" FABRIC_TENANT_ID="zzz"
./scripts/setup-azure-resources.sh && ./scripts/build-and-push.sh && ./scripts/deploy-to-aks.sh

🌐 Azure MCP Server (Preview)

bash
# Serverless deployment on Azure
az mcp server create --name "fabric-analytics-mcp" --repository "santhoshravindran7/Fabric-Analytics-MCP"

📚 Detailed Guides:

🛠️ Tools & Capabilities

🔍 CRUD Operations for Fabric Items

  • Tool: list-fabric-items

  • Description: List items in a Microsoft Fabric workspace (Lakehouses, Notebooks, etc.)

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • itemType: Filter by item type (optional)
  • Tool: create-fabric-item

  • Description: Create new items in Microsoft Fabric workspace

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • itemType: Type of item (Lakehouse, Notebook, Dataset, Report, Dashboard)
    • displayName: Display name for the new item
    • description: Optional description
  • Tool: get-fabric-item

  • Description: Get detailed information about a specific Microsoft Fabric item

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • itemId: ID of the item to retrieve
  • Tool: update-fabric-item

  • Description: Update existing items in Microsoft Fabric workspace

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • itemId: ID of the item to update
    • displayName: New display name (optional)
    • description: New description (optional)
  • Tool: delete-fabric-item

  • Description: Delete items from Microsoft Fabric workspace

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • itemId: ID of the item to delete

🔍 Query Fabric Dataset (Enhanced)

  • Tool: query-fabric-dataset
  • Description: Execute SQL or KQL queries against Microsoft Fabric datasets
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token (optional - uses simulation if not provided)
    • workspaceId: Microsoft Fabric workspace ID
    • datasetName: Name of the dataset to query
    • query: SQL or KQL query to execute

🚀 Execute Fabric Notebook

  • Tool: execute-fabric-notebook
  • Description: Execute a notebook in Microsoft Fabric workspace
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • notebookId: ID of the notebook to execute
    • parameters: Optional parameters to pass to the notebook

📊 Get Analytics Metrics

  • Tool: get-fabric-metrics
  • Description: Retrieve performance and usage metrics for Microsoft Fabric items
  • Parameters:
    • workspaceId: Microsoft Fabric workspace ID
    • itemId: Item ID (dataset, report, etc.)
    • timeRange: Time range for metrics (1h, 24h, 7d, 30d)
    • metrics: List of metrics to analyze

🔧 Analyze Data Model

  • Tool: analyze-fabric-model
  • Description: Analyze a Microsoft Fabric data model and get optimization recommendations
  • Parameters:
    • workspaceId: Microsoft Fabric workspace ID
    • itemId: Item ID to analyze

📋 Generate Analytics Report

  • Tool: generate-fabric-report
  • Description: Generate comprehensive analytics reports for Microsoft Fabric workspaces
  • Parameters:
    • workspaceId: Microsoft Fabric workspace ID
    • reportType: Type of report (performance, usage, health, summary)

🚀 Livy API Integration (Sessions & Batch Jobs)

Session Management

  • Tool: create-livy-session

  • Description: Create a new Livy session for interactive Spark/SQL execution

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • sessionConfig: Optional session configuration
  • Tool: get-livy-session

  • Description: Get details of a Livy session

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • sessionId: Livy session ID
  • Tool: list-livy-sessions

  • Description: List all Livy sessions in a lakehouse

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
  • Tool: delete-livy-session

  • Description: Delete a Livy session

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • sessionId: Livy session ID

Statement Execution

  • Tool: execute-livy-statement

  • Description: Execute SQL or Spark statements in a Livy session

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • sessionId: Livy session ID
    • code: SQL or Spark code to execute
    • kind: Statement type (sql, spark, etc.)
  • Tool: get-livy-statement

  • Description: Get status and results of a Livy statement

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • sessionId: Livy session ID
    • statementId: Statement ID

Batch Job Management

  • Tool: create-livy-batch

  • Description: Create a new Livy batch job for long-running operations

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • batchConfig: Batch job configuration
  • Tool: get-livy-batch

  • Description: Get details of a Livy batch job

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • batchId: Batch job ID
  • Tool: list-livy-batches

  • Description: List all Livy batch jobs in a lakehouse

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
  • Tool: delete-livy-batch

  • Description: Delete a Livy batch job

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Microsoft Fabric lakehouse ID
    • batchId: Batch job ID

📊 Spark Application Monitoring

Workspace-Level Monitoring

  • Tool: get-workspace-spark-applications
  • Description: Get all Spark applications in a Microsoft Fabric workspace
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • continuationToken: Optional token for pagination

Item-Specific Monitoring

  • Tool: get-notebook-spark-applications

  • Description: Get all Spark applications for a specific notebook

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • notebookId: Notebook ID
    • continuationToken: Optional token for pagination
  • Tool: get-lakehouse-spark-applications

  • Description: Get all Spark applications for a specific lakehouse

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • lakehouseId: Lakehouse ID
    • continuationToken: Optional token for pagination
  • Tool: get-spark-job-definition-applications

  • Description: Get all Spark applications for a specific Spark Job Definition

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • sparkJobDefinitionId: Spark Job Definition ID
    • continuationToken: Optional token for pagination

Application Management

  • Tool: get-spark-application-details

  • Description: Get detailed information about a specific Spark application

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • livyId: Livy session ID
  • Tool: cancel-spark-application

  • Description: Cancel a running Spark application

  • Parameters:

    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • livyId: Livy session ID

Monitoring Dashboard

  • Tool: get-spark-monitoring-dashboard
  • Description: Generate a comprehensive monitoring dashboard with analytics
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID

📓 Notebook Management

The MCP server provides comprehensive notebook management capabilities with predefined templates and custom notebook support.

Create Notebook from Template

  • Tool: create-fabric-notebook
  • Description: Create new Fabric notebooks from predefined templates or custom definitions
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • displayName: Display name for the new notebook
    • template: Template type (blank, sales_analysis, nyc_taxi_analysis, data_exploration, machine_learning, custom)
    • customNotebook: Custom notebook definition (required if template is 'custom')
    • environmentId: Optional environment ID to attach
    • lakehouseId: Optional default lakehouse ID
    • lakehouseName: Optional default lakehouse name

Available Templates:

  • blank: Basic notebook with minimal setup
  • sales_analysis: Comprehensive sales data analysis with sample dataset
  • nyc_taxi_analysis: NYC taxi trip data analysis with sample dataset
  • data_exploration: Structured data exploration template
  • machine_learning: Complete ML workflow template
  • custom: Use your own notebook definition

Get Notebook Definition

  • Tool: get-fabric-notebook-definition
  • Description: Retrieve the notebook definition (cells, metadata) from an existing Fabric notebook
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • notebookId: ID of the notebook to retrieve
    • format: Format to return (ipynb or fabricGitSource)

Update Notebook Definition

  • Tool: update-fabric-notebook-definition
  • Description: Update the notebook definition (cells, metadata) of an existing Fabric notebook
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • notebookId: ID of the notebook to update
    • notebookDefinition: Updated notebook definition object

Execute Notebook

  • Tool: run-fabric-notebook
  • Description: Execute a Fabric notebook on-demand with optional parameters and configuration
  • Parameters:
    • bearerToken: Microsoft Fabric bearer token
    • workspaceId: Microsoft Fabric workspace ID
    • notebookId: ID of the notebook to run
    • parameters: Optional notebook parameters (key-value pairs with types)
    • configuration: Optional execution configuration (environment, lakehouse, pools, etc.)

Features:

  • 📓 Base64 encoded notebook payload support
  • 🔧 Comprehensive metadata management
  • 🌐 Environment and lakehouse integration
  • 🎛️ Parameterized notebook execution
  • ⚡ Spark configuration support
  • 🔤 Support for multiple programming languages (Python, Scala, SQL, R)

🚀 Quick Start

🎯 Installation Methods

Choose your preferred installation method:

Option 1: Python Package (PyPI) ⭐ Recommended

bash
# Install via pip (easiest method)
pip install fabric-analytics-mcp

# Verify installation
fabric-analytics --version

# Start the server
fabric-analytics-mcp start

Option 2: NPM Package

bash
# Install globally via npm
npm install -g mcp-for-microsoft-fabric-analytics

# Verify installation
fabric-analytics --version

# Start the server
fabric-analytics

# Or using npx (no installation required)
npx mcp-for-microsoft-fabric-analytics

Option 3: Universal Installation Script

For automated setup with environment configuration:

Unix/Linux/macOS:

bash
# Download and run universal installer
curl -fsSL https://raw.githubusercontent.com/santhoshravindran7/Fabric-Analytics-MCP/main/scripts/install-universal.sh | bash

# Or with options for full setup
curl -fsSL https://raw.githubusercontent.com/santhoshravindran7/Fabric-Analytics-MCP/main/scripts/install-universal.sh | bash -s -- --method pip --config --env --test

Windows (PowerShell):

powershell
# Download and run Windows installer
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/santhoshravindran7/Fabric-Analytics-MCP/main/scripts/install-windows.ps1'))

# Or with options for full setup
& ([scriptblock]::Create((iwr https://raw.githubusercontent.com/santhoshravindran7/Fabric-Analytics-MCP/main/scripts/install-windows.ps1).Content)) -Method pip -Config -Environment -Test

Option 4: Docker

bash
# Clone repository
git clone https://github.com/santhoshravindran7/Fabric-Analytics-MCP.git
cd Fabric-Analytics-MCP

# Build and run with Docker
docker build -t fabric-analytics-mcp .
docker run -d --name fabric-mcp -p 3000:3000 --env-file .env fabric-analytics-mcp

📖 See Docker Installation Guide for detailed Docker and Kubernetes deployment options.

Option 5: From Source (Development)

bash
# Clone and build from source
git clone https://github.com/santhoshravindran7/Fabric-Analytics-MCP.git
cd Fabric-Analytics-MCP
npm install
npm run build    # ✅ All configuration files included!

⚙️ Configuration

Set up your environment variables:

bash
export FABRIC_AUTH_METHOD=bearer_token  # or service_principal, interactive
export FABRIC_CLIENT_ID=your-client-id
export FABRIC_CLIENT_SECRET=your-client-secret
export FABRIC_TENANT_ID=your-tenant-id
export FABRIC_DEFAULT_WORKSPACE_ID=your-workspace-id

🔧 Claude Desktop Setup

Add to your Claude Desktop config:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

For PyPI Installation:

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "fabric-analytics-mcp",
      "args": ["start"],
      "env": {
        "FABRIC_AUTH_METHOD": "bearer_token"
      }
    }
  }
}

For NPM Installation:

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "fabric-analytics",
      "env": {
        "FABRIC_AUTH_METHOD": "bearer_token"
      }
    }
  }
}

For Source Installation:

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/PROJECT/build/index.js"]
    }
  }
}

🚀 Start Using

Restart Claude Desktop and try these queries:

  • "List all workspaces I have access to"
  • "Find workspace named 'Analytics'"
  • "List all items in my Fabric workspace [your-workspace-id]"
  • "Create a new lakehouse called 'Analytics Hub'"
  • "Show me all running Spark applications"
  • "Execute this SQL query: SELECT * FROM my_table LIMIT 10"

🧪 Development & Testing

Running the Server

bash
npm start        # Production mode
npm run dev      # Development mode with auto-reload

Testing Livy API Integration

For comprehensive testing of Spark functionality, install Python dependencies:

bash
pip install -r livy_requirements.txt

Available Test Scripts:

  • livy_api_test.ipynb - Interactive notebook for step-by-step testing
  • comprehensive_livy_test.py - Full-featured test with error handling
  • spark_monitoring_test.py - Spark application monitoring tests
  • mcp_spark_monitoring_demo.py - MCP server integration demo

Claude Desktop Integration

Add this configuration to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/PROJECT/build/index.js"]
    }
  }
}

🎉 You're ready! Restart Claude Desktop and start asking questions about your Microsoft Fabric data!

Livy API Testing Setup

For testing the Livy API functionality, additional Python dependencies are required:

bash
# Install Python dependencies for Livy API testing
pip install -r livy_requirements.txt

Available Test Scripts:

  • livy_api_test.ipynb - Interactive Jupyter notebook for step-by-step testing
  • comprehensive_livy_test.py - Full-featured test with error handling
  • simple_livy_test.py - Simple test following example patterns
  • livy_batch_test.py - Batch job testing capabilities
  • spark_monitoring_test.py - Spark application monitoring tests

Usage

Running the Server

bash
npm start

Development Mode

bash
npm run dev

Testing with Claude Desktop

Add the following configuration to your Claude Desktop config file:

Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/PROJECT/build/index.js"]
    }
  }
}

💬 Example Queries

Once connected to Claude Desktop, you can ask natural language questions like:

CRUD Operations:

  • "List all Lakehouses in my workspace"
  • "Create a new Notebook called 'Data Analysis'"
  • "Update the description of my lakehouse"
  • "Delete the test notebook from my workspace"

Notebook Management:

  • "Create a sales analysis notebook with sample data"
  • "Generate a new NYC taxi analysis notebook"
  • "Create a machine learning notebook template"
  • "Get the definition of my existing notebook"
  • "Run my notebook with specific parameters"
  • "Update my notebook with new cells"

Data Operations:

  • "Query the sales dataset to get total revenue by region"
  • "Execute my analytics notebook with today's date"

Analytics:

  • "Get performance metrics for the last 24 hours"
  • "Analyze my data model and provide optimization recommendations"
  • "Generate a usage report for my workspace"

Livy API Operations:

  • "Create a Livy session for interactive Spark analysis"
  • "Execute SQL query 'SELECT * FROM my_table LIMIT 10'"
  • "Run Spark code to show all tables"
  • "Monitor my batch job progress"

Spark Application Monitoring:

  • "Show me all Spark applications in my workspace"
  • "What's the status of my notebook Spark jobs?"
  • "Generate a comprehensive Spark monitoring dashboard"
  • "Show me recent failed applications"
  • "Cancel the problematic Spark application"

Capacity Management:

  • "List all Fabric capacities I can use"
  • "Assign workspace 1234abcd-abcd-1234-abcd-123456789000 to capacity f9998888-7777-6666-5555-444433332222"
  • "Show all workspaces in capacity f9998888-7777-6666-5555-444433332222"
  • "Unassign workspace 1234abcd-abcd-1234-abcd-123456789000 from its capacity"

🧩 Capacity Management Tools

Manage Microsoft Fabric capacity assignments directly from your AI assistant. These tools let you inspect available capacities, attach/detach workspaces, and audit capacity usage.

Available Tools

  • fabric_list_capacities – Enumerate all capacities you can access (ID, SKU, region, state)
  • fabric_assign_workspace_to_capacity – Attach a workspace to a dedicated capacity
  • fabric_unassign_workspace_from_capacity – Return a workspace to shared capacity
  • fabric_list_capacity_workspaces – List all workspaces currently hosted on a given capacity

Notes

  • If authentication fails or you're in simulation mode, capacity responses are simulated.
  • Real capacity operations require appropriate Fabric / Power BI admin permissions.
  • You can provide a bearer token per call (bearerToken field) or rely on global auth.

Minimal Parameter Reference

ToolRequired ParametersOptional
fabric_list_capacities(none)bearerToken
fabric_assign_workspace_to_capacitycapacityId, workspaceIdbearerToken
fabric_unassign_workspace_from_capacityworkspaceIdbearerToken
fabric_list_capacity_workspacescapacityIdbearerToken

❗ Troubleshooting

JSON Parse Errors (e.g., Unexpected token 'P')

If Claude Desktop or another MCP client reports an error like:

Error: Unexpected token 'P', "Please set"... is not valid JSON
SyntaxError: Unexpected token 'P', "Please set"... is not valid JSON

This is the EXACT issue reported in GitHub issue where the user saw "Unexpected token 'P', 'Please set'..." errors.

This almost always means something wrote plain text to STDOUT (which must contain ONLY JSON-RPC frames). Common causes:

  1. Added console.log debug statements in server code
  2. A dependency emitting warnings to STDOUT
  3. Early logging before transport initialization

Fixes Implemented in This Server

  • ✅ A startup guard now redirects console.log / console.info to STDERR automatically
  • ✅ Debug output has been consolidated behind the DEBUG_MCP_RUN=1 flag
  • ✅ All diagnostic messages go to STDERR, keeping STDOUT clean for JSON-RPC protocol

What You Can Do

  • Avoid adding raw console.log statements—prefer console.error (goes to STDERR)
  • If you must allow stdout logging temporarily (NOT recommended), set:
    • ALLOW_UNSAFE_STDOUT=true
    • Remove after debugging
  • Regenerate the build (npm run build) after changes to ensure compiled output matches source

Capacity Tools Not Appearing?

If the capacity tools don't show up when the client lists tools:

  1. Ensure you rebuilt after pulling changes: npm run build
  2. Confirm you're launching the server from build/index.js and not an older snapshot
  3. Verify no MCP client-side allowlist is filtering tool names
  4. Run a quick enumeration test: ask the assistant "List all available tools"
  5. If still missing, delete the build/ folder and rebuild to clear stale artifacts

Authentication Edge Cases

  • Azure CLI auth may fail silently without an active az login session
  • Bearer tokens expire (~1 hour); refresh if operations suddenly fail
  • For local testing: falling back to simulation still lets you prototype tool flows

Getting Verbose Diagnostics

Set the following (sent to STDERR, safe for MCP framing):

DEBUG_MCP_RUN=1

Optionally add structured auth tracing:

DEBUG_AUTH=1

Need a new troubleshooting topic? Open an issue or PR so others benefit from the resolution.

🔐 Authentication

This MCP server supports multiple authentication methods powered by Microsoft Authentication Library (MSAL):

🤖 For Claude Desktop: Use Bearer Token Authentication (Method #1) for the best experience and compatibility.

🔧 Claude Desktop Fix: Recent updates prevent authentication timeouts by prioritizing bearer tokens and adding timeout protection for interactive authentication flows.

🎫 1. Bearer Token Authentication (Recommended for Claude Desktop)

Perfect for AI assistants and interactive usage:

For Claude Desktop:

  • Visit Power BI Embed Setup
  • Generate a bearer token for your workspace
  • Add to your claude_desktop_config.json
  • No timeout issues - bypasses interactive authentication entirely

For Testing:

bash
# All test scripts will prompt for authentication method
python enhanced_auth_test.py

🤖 2. Service Principal Authentication (Recommended for Production)

Use Azure AD application credentials:

  • Client ID (Application ID)
  • Client Secret
  • Tenant ID (Directory ID)

Environment Variables Setup:

bash
export FABRIC_AUTH_METHOD="service_principal"
export FABRIC_CLIENT_ID="your-app-client-id"
export FABRIC_CLIENT_SECRET="your-app-client-secret"
export FABRIC_TENANT_ID="your-tenant-id"
export FABRIC_DEFAULT_WORKSPACE_ID="your-workspace-id"

Claude Desktop Configuration:

json
{
  "mcpServers": {
    "fabric-analytics": {
      "command": "node",
      "args": ["/path/to/build/index.js"],
      "env": {
        "FABRIC_AUTH_METHOD": "service_principal",
        "FABRIC_CLIENT_ID": "your-client-id",
        "FABRIC_CLIENT_SECRET": "your-client-secret",
        "FABRIC_TENANT_ID": "your-tenant-id"
      }
    }
  }
}

📱 3. Device Code Authentication

Sign in with browser on another device (great for headless environments):

bash
export FABRIC_AUTH_METHOD="device_code"
export FABRIC_CLIENT_ID="your-client-id"
export FABRIC_TENANT_ID="your-tenant-id"

🌐 4. Interactive Authentication

Automatic browser-based authentication:

bash
export FABRIC_AUTH_METHOD="interactive"
export FABRIC_CLIENT_ID="your-client-id"
export FABRIC_TENANT_ID="your-tenant-id"

🔧 5. Azure CLI Authentication ⭐ (Recommended for Local Development)

Use your existing Azure CLI login for seamless local testing:

bash
export FABRIC_AUTH_METHOD="azure_cli"

Prerequisites:

  1. Install Azure CLI: winget install Microsoft.AzureCLI (Windows) or Download
  2. Login to Azure: az login
  3. Set active subscription: az account set --subscription "your-subscription-name"

Benefits:

  • ✅ Zero Configuration - Uses your existing Azure login
  • ✅ Instant Setup - No app registration or client secrets needed
  • ✅ Multi-Account Support - Switch Azure accounts easily
  • ✅ Perfect for Development - Seamless local testing experience

Quick Test:

powershell
# Verify Azure CLI setup
npm run test:azure-cli

# Start MCP server with Azure CLI auth
$env:FABRIC_AUTH_METHOD="azure_cli"; npm start

💡 Pro Tip: Azure CLI authentication is perfect for developers who want to quickly test the MCP server without complex Azure AD app setup. Just az login and you're ready to go!

🔧 Complete Authentication Setup

📚 Detailed Guides:

🔍 Authentication Testing

Check your authentication status:

"Check my Fabric authentication status"
"What authentication method am I using?"
"Test my Microsoft Fabric authentication setup"

🔒 Security Best Practices

  • Never commit authentication tokens to version control
  • Use Service Principal authentication for production deployments
  • Device Code flow is perfect for CI/CD and headless environments
  • Interactive authentication is ideal for development and testing
  • All tokens are automatically validated and include expiration checking

Note: The MCP server seamlessly handles token validation and provides clear error messages for authentication issues.

☸️ Azure Kubernetes Service (AKS) Deployment

Deploy the MCP server as a scalable service on Azure Kubernetes Service for enterprise production use.

🚀 Quick AKS Deployment

Prerequisites

  • Azure CLI installed and configured
  • Docker installed
  • kubectl installed
  • Azure subscription with AKS permissions

1. Build and Push Docker Image

bash
# Build the Docker image
npm run docker:build

# Tag and push to Azure Container Registry
npm run docker:push

2. Deploy to AKS

bash
# Create Azure resources and deploy
./scripts/deploy-to-aks.sh

3. Access the MCP Server

Once deployed, your MCP server will be available at:

https://your-aks-cluster.region.cloudapp.azure.com/mcp

🏗️ Architecture Overview

The AKS deployment includes:

  • Horizontal Pod Autoscaler (3-10 pods based on CPU/memory)
  • Azure Load Balancer for high availability
  • SSL/TLS termination with Azure Application Gateway
  • ConfigMaps for environment configuration
  • Secrets for secure credential storage
  • Health checks and readiness probes
  • Resource limits and quality of service guarantees

📁 Deployment Files

All Kubernetes manifests are located in the /k8s directory:

  • namespace.yaml - Dedicated namespace
  • deployment.yaml - Application deployment with scaling
  • service.yaml - Load balancer service
  • ingress.yaml - External access and SSL
  • configmap.yaml - Configuration management
  • secret.yaml - Secure credential storage
  • hpa.yaml - Horizontal Pod Autoscaler

🔧 Configuration

Configure the deployment by setting these environment variables:

bash
export AZURE_SUBSCRIPTION_ID="your-subscription-id"
export AZURE_RESOURCE_GROUP="fabric-mcp-rg"
export AKS_CLUSTER_NAME="fabric-mcp-cluster"
export ACR_NAME="fabricmcpregistry"
export DOMAIN_NAME="your-domain.com"

🔐 Production Security

The AKS deployment includes enterprise-grade security:

  • Non-root container execution
  • Read-only root filesystem
  • Secret management via Azure Key Vault integration
  • Network policies for traffic isolation
  • RBAC with minimal required permissions
  • Pod security standards enforcement

📊 Monitoring & Scaling

  • Azure Monitor integration for logs and metrics
  • Application Insights for performance monitoring
  • Prometheus metrics endpoint for custom monitoring
  • Auto-scaling based on CPU (70%) and memory (80%) thresholds
  • Health checks for automatic pod restart

🔄 CI/CD Integration

The deployment scripts support:

  • Azure DevOps pipelines
  • GitHub Actions workflows
  • Automated testing before deployment
  • Blue-green deployments for zero downtime
  • Rollback capabilities for quick recovery

📚 Detailed Guide: See AKS_DEPLOYMENT.md for complete setup instructions.

🌐 Azure Model Context Protocol Server (Preview)

Microsoft Azure now offers a preview service for hosting MCP servers natively. This eliminates the need for custom infrastructure management.

🚀 Azure MCP Server Deployment

Prerequisites

  • Azure subscription with MCP preview access
  • Azure CLI with MCP extensions

Deploy to Azure MCP Service

bash
# Login to Azure
az login

# Enable MCP preview features
az extension add --name mcp-preview

# Deploy the MCP server
az mcp server create \
  --name "fabric-analytics-mcp" \
  --resource-group "your-rg" \
  --source-type "github" \
  --repository "santhoshravindran7/Fabric-Analytics-MCP" \
  --branch "main" \
  --auth-method "service-principal"

Configure Authentication

bash
# Set up service principal authentication
az mcp server config set \
  --name "fabric-analytics-mcp" \
  --setting "FABRIC_CLIENT_ID=your-client-id" \
  --setting "FABRIC_CLIENT_SECRET=your-secret" \
  --setting "FABRIC_TENANT_ID=your-tenant-id"

Access Your MCP Server

bash
# Get the server endpoint
az mcp server show --name "fabric-analytics-mcp" --query "endpoint"

🔧 Azure MCP Server Features

  • Automatic scaling based on usage
  • Built-in monitoring and logging
  • Integrated security with Azure AD
  • Zero infrastructure management
  • Global CDN for low latency
  • Automatic SSL/TLS certificates

💰 Cost Optimization

Azure MCP Server offers:

  • Pay-per-request pricing model
  • Automatic hibernation during idle periods
  • Resource sharing across multiple clients
  • No minimum infrastructure costs

📚 Learn More: Azure MCP Server Documentation

Note: Azure MCP Server is currently in preview. Check Azure Preview Terms for service availability and limitations.

🏗️ Architecture

This MCP server is built with:

  • TypeScript for type-safe development
  • MCP SDK for Model Context Protocol implementation
  • Zod for schema validation and input sanitization
  • Node.js runtime environment

⚙️ Configuration

The server uses the following configuration files:

  • tsconfig.json - TypeScript compiler configuration
  • package.json - Node.js package configuration
  • .vscode/mcp.json - MCP server configuration for VS Code

🔧 Development

Project Structure

├── src/
│   ├── index.ts              # Main MCP server implementation
│   └── fabric-client.ts      # Microsoft Fabric API client
├── build/                    # Compiled JavaScript output
├── tests/                    # Test scripts and notebooks
├── .vscode/                  # VS Code configuration
├── package.json
├── tsconfig.json
└── README.md

Adding New Tools

To add new tools to the server:

  1. Define the input schema using Zod
  2. Implement the tool using server.tool()
  3. Add error handling and validation
  4. Update documentation

API Integration

This server includes:

✅ Production Ready:

  • Full Microsoft Fabric Livy API integration
  • Spark session lifecycle management
  • Statement execution with SQL and Spark support
  • Batch job management for long-running operations
  • Comprehensive error handling and retry logic
  • Real-time polling and result retrieval

🧪 Demonstration Features:

  • CRUD operations (configurable for real APIs)
  • Analytics and metrics (extensible framework)
  • Data model analysis (template implementation)

🧪 Testing

🚀 End-to-End Testing

The MCP server includes comprehensive end-to-end testing that creates real workspaces, items, and jobs to validate complete functionality using Azure CLI authentication.

Quick Setup for E2E Testing

bash
# 1. Set up end-to-end testing environment
npm run setup:e2e

# 2. Run the comprehensive end-to-end test
npm run test:e2e

What the E2E Test Does

The end-to-end test creates a complete workflow in your Microsoft Fabric tenant:

  1. 🔐 Validates Azure CLI Authentication - Uses your existing az login session
  2. 🏗️ Creates a Test Workspace - New workspace with unique naming
  3. ⚡ Attaches to Capacity - Links workspace to your Fabric capacity (optional)
  4. 📓 Creates Notebooks & Lakehouses - Test items for validation
  5. 🏃 Runs Real Jobs - Executes notebook with actual Spark code
  6. 📊 Monitors Execution - Tracks job status and completion
  7. 🧹 Cleans Up Resources - Removes all created test resources

E2E Test Configuration

The setup script creates a .env.e2e configuration file:

bash
# Example configuration
FABRIC_CAPACITY_ID=your-capacity-id-here    # Optional: for capacity testing
E2E_TEST_TIMEOUT=300000                      # 5 minutes per operation
E2E_CLEANUP_ON_FAILURE=true                 # Clean up on test failure
E2E_RETRY_COUNT=3                           # Retry failed operations

E2E Test Features

  • ✅ Real Resource Creation - Creates actual Fabric workspaces and items
  • ✅ Azure CLI Integration - Uses your existing Azure authentication
  • ✅ Capacity Assignment - Tests workspace-to-capacity attachment
  • ✅ Job Execution - Runs real Spark jobs and monitors completion
  • ✅ Automatic Cleanup - Removes all test resources automatically
  • ✅ Comprehensive Logging - Detailed logging of all operations
  • ✅ Error Handling - Robust error handling and recovery

Prerequisites for E2E Testing

  1. Azure CLI installed and logged in:

    bash
    az login
  2. Microsoft Fabric Access with permissions to:

    • Create workspaces
    • Create notebooks and lakehouses
    • Run Spark jobs
    • (Optional) Assign workspaces to capacity
  3. Fabric Capacity (optional but recommended):

    • Set FABRIC_CAPACITY_ID in `.

安装

TypingMind
{
  "mcpServers": {
    "fabric-analytics-mcp": {
      "command": "node",
      "args": [
        "build/index.js"
      ]
    }
  }
}

将 Microsoft Fabric Analytics MCP Server MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Microsoft Fabric Analytics MCP Server 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 您可以在自己的设备上本地运行 MCP,也可以通过 URL 连接远程 MCP 服务器。

方式 1:使用本地连接器

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 Microsoft Fabric Analytics MCP Server 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Microsoft Fabric Analytics MCP Server MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "fabric-analytics-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-for-microsoft-fabric-analytics"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Microsoft Fabric Analytics MCP Server MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Microsoft Fabric Analytics MCP Server MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Microsoft Fabric Analytics MCP Server 帮我完成这项任务吗?
Microsoft Fabric Analytics MCP Server
当然,我看过了。
以下是我使用 Microsoft Fabric Analytics MCP Server 得到的结果。

方式 2:添加 MCP 服务器 URL

如果 Microsoft Fabric Analytics MCP Server 已托管在远程服务器上,或您的团队希望让多个用户共用一个连接器,请选择此方式。

1

打开 MCP 连接器

在 TypingMind 中,前往“插件”,打开“MCP 连接器”,然后选择“添加 URL”。

  1. 在您的浏览器中打开 TypingMind。
  2. 进入“插件”。
  3. 打开“MCP 连接器”。
  4. 点击“添加 URL”。
TypingMind 的“添加自定义 MCP 服务器 URL”表单
2

粘贴服务器 URL

在“服务器 URL”字段中输入 提供商提供的 MCP 服务器 URL。根据服务器要求,添加连接名称、描述、图标、自定义 HTTP 请求头或 OAuth 客户端设置。

  1. 将 提供商提供的 MCP 服务器 URL 粘贴到“服务器 URL”字段中。
  2. 为 Microsoft Fabric Analytics MCP Server 输入连接名称。
  3. 您可以添加描述和图标,以便更容易识别此连接。
  4. 如果服务器需要身份验证,请添加自定义 HTTP 请求头或 OAuth 客户端信息。
3

创建连接

点击“创建连接”,然后返回插件列表,确认新的 MCP 连接处于可用状态。

  1. 点击“创建连接”。
  2. 返回 MCP 连接器列表。
  3. 确认列表中的 Microsoft Fabric Analytics MCP Server 连接显示为可用状态。
  4. 如果连接未立即出现,请刷新插件列表。
4

切换模型,无需重新连接

使用您偏好的模型开始聊天,在“插件”中启用 Microsoft Fabric Analytics MCP Server 工具,并根据需要随时切换到其他模型。该 MCP 连接在 TypingMind 工作区中仍然可用。

  1. 在 TypingMind 中开始新聊天。
  2. 选择您想使用的 AI 模型。
  3. 在“插件”中启用 Microsoft Fabric Analytics MCP Server 工具。
  4. 需要时,请让模型使用该工具。
  5. 切换到其他 AI 模型,继续使用同一个 MCP 连接。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Microsoft Fabric Analytics MCP Server 帮我完成这项任务吗?
Microsoft Fabric Analytics MCP Server
当然,我看过了。
以下是我使用 Microsoft Fabric Analytics MCP Server 得到的结果。

常见问题

Microsoft Fabric Analytics MCP Server MCP 服务器有什么用途?

Microsoft Fabric Analytics MCP Server 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Microsoft Fabric Analytics MCP Server MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 Microsoft Fabric Analytics MCP Server。

为什么在 TypingMind 中使用 Microsoft Fabric Analytics MCP Server MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 Microsoft Fabric Analytics MCP Server 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Microsoft Fabric Analytics MCP Server MCP 连接到 TypingMind?

在 TypingMind 中,您可以使用本地 MCP 连接器或添加远程 MCP 服务器的 URL 来连接 Microsoft Fabric Analytics MCP Server。当服务器需要访问您设备上的文件、应用或私有资源时,请使用本地连接器;如果 MCP 服务器部署在远端,请使用服务器 URL。

Microsoft Fabric Analytics MCP Server MCP 在 TypingMind 中提供哪些工具?

Microsoft Fabric Analytics MCP Server 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Microsoft Fabric Analytics MCP Server MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 Microsoft Fabric Analytics MCP Server 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇