Microsoft Fabric MCP服务器-克劳德桌面扩展
  
A. 本地优先 模型上下文协议(MCP)服务器,为AI代理提供对Microsoft Fabric公共API、项目定义和最佳实践的全面访问,所有这些都不需要连接到实时Fabric环境。
特性
- API全面覆盖:所有Microsoft Fabric公共API的完整OpenAPI规范
- 项目定义知识:每种结构项类型的JSON模式(Lakehouse、管道、语义模型、笔记本等)
- 内置最佳实践:关于分页、错误处理和推荐模式的嵌入式指南
- 本地第一安全:完全在您的计算机上运行,从不连接到您的Fabric环境
- 交叉平台的:支持Windows(x64)、macOS(英特尔)和macOS(苹果硅)
安装
快速安装(预构建包)
- 下载最新
.mcpb文件来自 发布 页 - 打开 克劳德桌面版
- 导航至 设置 → 扩展
- 点击 “安装扩展…”
- 选择已下载的
.mcpb文件 - 该扩展将立即可用
从源代码构建
先决条件
- .NET SDK 8.0 或以后
- Git
- PowerShell 7+(Windows)或Bash(macOS/Linux)
Windows(PowerShell)
# Clone this extension template
git clone
cd fabric-mcp-extension
# Run the build script
./scripts/Build-FabricMcpExtension.ps1
# The .mcpb file will be created in the current directorymacOS/Linux(Bash)
# Clone this extension template
git clone
cd fabric-mcp-extension
# Make the build script executable
chmod +x scripts/build.sh
# Run the build script
./scripts/build.sh
# The .mcpb file will be created in the current directory编译选项
PowerShell:
# Build for specific platforms only
./scripts/Build-FabricMcpExtension.ps1 -Platforms @('win-x64')
# Specify output directory
./scripts/Build-FabricMcpExtension.ps1 -OutputPath "C:\MyExtensions"
# Use existing repository clone
./scripts/Build-FabricMcpExtension.ps1 -SkipClone -RepoPath "C:\Dev\mcp"猛击:
# Build for specific platforms only
./scripts/build.sh -p osx-arm64
# Specify output directory
./scripts/build.sh -o ~/MyExtensions
# Use existing repository clone
./scripts/build.sh --skip-clone --repo ~/Dev/mcp可用工具
安装后,结构MCP服务器向Claude公开以下工具:
| 工具 | 说明 |
|---|---|
platform_get_platform_apis | 获取有关Microsoft Fabric平台API的详细信息,包括端点、操作和模式 |
platform_get_item_definitions | 获取结构项类型的JSON模式 |
platform_get_best_practices | 获取分页、错误处理和推荐模式的嵌入式指南 |
使用示例
安装后,您可以向Claude提出以下问题:
"What APIs are available for managing Lakehouses in Microsoft Fabric?"
"Show me the JSON schema for creating a Fabric pipeline."
"What are the best practices for handling pagination in Fabric API calls?"
"Generate code to create a new Lakehouse using the Fabric REST API."
"What's the recommended error handling pattern for Fabric API authentication?"建筑
fabric-mcp-extension/
├── manifest.json # MCPB manifest with metadata and configuration
├── icon.png # Extension icon (optional)
├── README.md # This documentation
├── server/ # Platform-specific executables
│ ├── Fabric.Mcp.Server.exe # Windows x64
│ ├── Fabric.Mcp.Server-darwin-x64 # macOS Intel
│ └── Fabric.Mcp.Server-darwin-arm64 # macOS Apple Silicon
└── scripts/
├── Build-FabricMcpExtension.ps1 # PowerShell build script
└── build.sh # Bash build script安全
此MCP服务器是 本地优先 和 注重隐私:
- 无网络连接 连接到Microsoft Fabric或任何外部服务
- 不要求进行验证 -使用捆绑的API规范
- 无数据收集 -完全离线运行
- 只读操作 -无法修改您的Fabric环境
服务器为AI代理提供API文档和架构,以帮助生成正确的代码,但从不访问实际的结构资源。
故障排除
扩展无法安装
- 确保您运行的是Claude Desktop 0.10.0或更高版本
- 检查一下
.mcpb文件未损坏(请尝试重新下载) - 验证您是否有足够的磁盘空间
工具未出现
- 安装后重新启动Claude Desktop
- 检查 设置 → 扩展 验证扩展是否已启用
- 查看扩展日志以获取错误消息
构建失败
- 确保。NET SDK 8.0+已安装:
dotnet --version - 检查Git是否可用:
git --version - 验证存储库克隆的网络连接
调试日志
在Claude Desktop中启用调试日志记录:
- 首选 设置 → 开发者
- 启用 调试日志记录
- 检查“扩展”面板中的日志
资源
贡献
欢迎投稿!请查看 Microsoft MCP贡献指南 作为指导方针。
许可证
该项目根据MIT许可证获得许可。请参阅 许可证 文件以获取详细信息。
免责声明
此扩展位于 公开预览Microsoft Fabric MCP Server为您的AI代理提供了生成Microsoft Fabric代码所需的知识,但是:
- 无法连接到实际的Fabric环境
- 部署前应审查生成的代码
- API规范可能会更新;重建为最新版本
______________________________________________________________________
