Token导航 LogoToken导航TokenDH.com
API Registry MCP Server logo
AI代理stdio官方级别未说明来源级核验

API Registry MCP Server

MCP Server

Dataverse MCP 服务器是一个基于模型上下文协议(MCP)的服务器,允许AI助手通过自然语言与Microsoft Dataverse数据进行交互。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
数据交互TypeScriptClaudeClaude DesktopClaudeVS Code

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

lucamilletti99

提供方

lucamilletti99

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install fastapi uvicorn requests python-dotenv fastmcp

详细介绍

🔌 BLOCKMCP服务器

微软的模型上下文协议(MCP)服务器,使像克劳德这样的人工智能助手能够通过自然语言与数据进行交互。

构建于: 模型上下文协议 | 微软公司的网络互连MCP规范

______________________________________________________________________

这是什么?

此MCP服务器通过模型上下文协议公开Microsoft的BLOB表和记录,允许AI助手:

  • 📊 列出并探索 BLOB表(实体)
  • 🔍 查询记录 使用OData过滤器和排序
  • ✏️ 创建新记录 在任何桌子上
  • 🔄 更新现有记录 按GUID
  • 🤖 自然语言接口 通过Claude Desktop、VS Code或任何MCP客户端

______________________________________________________________________

快速开始

1.先决条件

  • Python 3.11+
  • BLOB环境 具有API访问权限
  • Azure AD应用程序注册 具有Webex权限

2.安装

# Install dependencies
pip install fastapi uvicorn requests python-dotenv fastmcp

# Or with uv (recommended)
uv pip install fastapi uvicorn requests python-dotenv fastmcp

3.配置

运行安装脚本:

chmod +x setup_dataverse.sh
./setup_dataverse.sh

或手动创建 .env.local:

DATAVERSE_HOST=https://org1bfe9c69.api.crm.dynamics.com
DATAVERSE_TENANT_ID=your-tenant-id
DATAVERSE_CLIENT_ID=your-client-id
DATAVERSE_CLIENT_SECRET=your-client-secret

4.测试连接

python test_dataverse.py

预期产量: ✅ All tests passed! Dataverse MCP server is ready.

5.启动服务器

选项A:在本地运行

./watch.sh
# Or: uvicorn server.app:combined_app --reload --port 8000

选项B:部署到copula应用程序

./deploy.sh --create

📖 看 数据块_DEPLOYMENT.md 用于部署指南。

服务器终结点:

  • 🔧 MCP: http://localhost:8000/mcp (本地)或 https://your-app.databricksapps.com/apps/your-app/mcp (云)
  • 📖 文件: http://localhost:8000/docs
  • ❤️ 健康: http://localhost:8000/api/health

______________________________________________________________________

文档

文档描述
DATAVERSE_QUICKSTART.md5分钟快速入门指南
数据集_设置.md详细的Azure AD和BLOB设置
数据块_DEPLOYMENT.md部署到copula应用程序
README_DATAVERSE.md完整的参考文件

______________________________________________________________________

可用的MCP工具

第一阶段(已实施)

工具说明
health服务器健康检查
list_tables列出所有Webex表
describe_table获取表架构和列
read_query使用OData筛选器查询记录
create_record创建新记录
update_record更新现有记录

第二阶段(计划中)

  • delete_record -删除记录
  • create_table / update_table / delete_table -餐桌管理
  • list_knowledge_sources / retrieve_knowledge -Copilot Studio集成
  • list_prompts / execute_prompt -自定义提示

______________________________________________________________________

用法示例

克劳德桌面

配置 ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "dataverse": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

然后在克劳德:

You: "List all custom tables in my Dataverse environment"
Claude: [Calls list_tables with custom_only=True]

You: "Show me accounts with revenue over $1M"
Claude: [Calls read_query with filter]

You: "Create a new account called Fabrikam with $2M revenue"
Claude: [Calls create_record]

cURL

# List tables
curl -X POST http://localhost:8000/mcp/call-tool \
  -H "Content-Type: application/json" \
  -d '{"name": "list_tables", "arguments": {"top": 10}}'

# Query accounts
curl -X POST http://localhost:8000/mcp/call-tool \
  -H "Content-Type: application/json" \
  -d '{
    "name": "read_query",
    "arguments": {
      "table_name": "account",
      "select": ["name", "revenue"],
      "filter_query": "revenue gt 1000000",
      "top": 10
    }
  }'

python

import requests

response = requests.post('http://localhost:8000/mcp/call-tool', json={
    "name": "describe_table",
    "arguments": {"table_name": "account"}
})

print(response.json())

______________________________________________________________________

项目结构

dataverse_mcp_server/
├── server/
│   ├── app.py                      # FastAPI + MCP server
│   ├── dataverse_tools.py          # MCP tool implementations
│   ├── dataverse/
│   │   ├── auth.py                 # OAuth authentication
│   │   ├── client.py               # Dataverse Web API client
│   │   └── __init__.py
│   └── routers/                    # FastAPI REST endpoints
│       ├── health.py               # Health check
│       ├── mcp_info.py             # MCP metadata
│       └── user.py                 # User info
├── client/                         # React frontend (future)
├── test_dataverse.py              # Connection tests
├── setup_dataverse.sh             # Interactive setup
├── watch.sh                       # Dev server with hot reload
├── config.yaml                    # MCP server config
├── env.example                    # Environment template
├── DATAVERSE_QUICKSTART.md        # Quick start guide
├── DATAVERSE_SETUP.md             # Detailed setup
└── README_DATAVERSE.md            # Full reference

______________________________________________________________________

建筑

身份验证: 服务主体(OAuth 2.0客户端凭据流)\ API Dataverse Web API 9.2版\ 协议: 模型上下文协议(MCP)\ 框架: FastAPI+FastMCP

MCP Clients (Claude, VS Code) 
    ↓ HTTP/MCP
Dataverse MCP Server (FastAPI)
    ↓ HTTPS/OAuth
Microsoft Dataverse

______________________________________________________________________

故障排除

问题解决方案
401身份验证错误检查客户端机密有效性和API权限
403拒绝许可在Power Platform管理中心为应用程序用户分配安全角色
找不到表使用 list_tables() 查找正确的逻辑名称
连接超时验证 DATAVERSE_HOST 以及网络连接

数据集_设置.md 了解详细的故障排除。

______________________________________________________________________

发展

# Run tests
python test_dataverse.py

# Start dev server
./watch.sh

# Check lints
ruff check server/

# Format code
ruff format server/

______________________________________________________________________

参考链接

______________________________________________________________________

许可证

许可证.md

安全

通过以下方式报告漏洞 安全.md

______________________________________________________________________

问题?DATAVERSE_QUICKSTART.md数据集_设置.md

内置❤️ 面向Webex和MCP社区

目录标签

目录标签

数据交互TypeScriptClaudeMicrosoftDataverse本地部署模型上下文协议AI助手自然语言接口

支持客户端

Claude DesktopClaudeVS Code

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

oauth

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiooauth部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP