Install
openclaw skills install mcp-tool-integratorAI-powered assistant to scaffold, configure, debug, and integrate MCP servers connecting AI agents with 50+ tools like GitHub, Slack, Notion, and databases.
openclaw skills install mcp-tool-integratorThe Model Context Protocol (MCP) is the emerging standard for connecting AI agents to external tools — and 2026 is the year it goes mainstream. Microsoft Agent 365, Claude Desktop, Cursor, and dozens of frameworks now support MCP natively. This skill helps developers scaffold, configure, and debug MCP server integrations at speed — turning scattered tool APIs into a unified agent capability layer.
MCP Tool Integrator — Connect AI Agents to Any Tool in Minutes
| 时间 | 动态 | 意义 |
|---|---|---|
| 2024年11月 | Anthropic发布MCP协议 | AI Agent与外部工具交互的开放标准诞生 |
| 2025年11月 | MCP移交至Linux Foundation旗下Agentic AI Foundation治理 | OpenAI、Google、Microsoft等主要厂商共同参与标准制定 |
| 2026年 | MCP成为AI Agent开发事实标准协议 | Microsoft Agent 365、Claude Desktop、Cursor等主流平台原生支持 |
| 2026年 | FastMCP简化MCP Server开发 | 开发者可快速搭建自定义MCP服务器 |
| 2026年5月 | MCP官方Server Registry扩展至50+工具 | 涵盖GitHub、Slack、Notion、Postgres、腾讯云等 |
关键提示: 2026年MCP生态已从单一AI厂商协议演变为跨平台开放标准。金融行业部署MCP时,优先使用官方认证的Server;国内企业可选用国产MCP Server(如腾讯云、钉钉、飞书定制实现)。
Step 1.1: Detect Current MCP Environment
Determine what MCP runtime is available and what tools are already connected.
Output: MCP Environment Audit
| Runtime | Version | Connected Tools | Status |
|---|---|---|---|
| Claude Desktop MCP | 1.0.3 | filesystem, github | ✅ Active |
| Cursor MCP Bridge | 0.9.2 | postgres, slack | ⚠️ Partial |
| Custom LangChain MCP | N/A | None | ❌ Not configured |
Step 1.2: Recommend MCP Architecture
Based on use case, recommend the optimal MCP topology.
Architecture Patterns:
Pattern A — Desktop-First (Individual Developer)
Claude Desktop ↔ Local MCP Servers ↔ filesystem, git, terminal
Pattern B — Enterprise Multi-Agent (Team)
LangChain Agent ↔ MCP Gateway ↔ GitHub, Jira, Slack, Notion, Postgres
Pattern C — API-First (Production)
FastAPI MCP Server ↔ Authenticated Tools ↔ CRM, ERP, Database
Pattern D — China-Optimized (Regulated Industry)
Local MCP Server ↔ Domestic tools (钉钉, 飞书, 腾讯云) ↔ Firewall-compliant
Step 2.1: Generate MCP Server Code
For any external tool, generate a complete MCP server implementation.
Input: Tool name + authentication method + required operations Output: Complete Python/TypeScript MCP server scaffold
Example MCP Server — Notion Integration:
# notion_mcp_server.py
from mcp.server.fastapi import McpServer
from mcp.types import Tool, CallToolRequest
import httpx
SERVER = McpServer(name="notion-mcp", version="1.0.0")
@SERVER.list_tools()
async def list_notion_tools():
return [
Tool(
name="notion_search_pages",
description="Search Notion pages by keyword",
input_schema={
"type": "object",
"properties": {
"query": {"type": "string"},
"filter_database_id": {"type": "string", "optional": True}
}
}
),
Tool(
name="notion_create_page",
description="Create a new Notion page in a database",
input_schema={
"type": "object",
"properties": {
"database_id": {"type": "string"},
"title": {"type": "string"},
"properties": {"type": "object"}
}
}
),
Tool(
name="notion_update_block",
description="Update a block in a Notion page",
input_schema={
"type": "object",
"properties": {
"block_id": {"type": "string"},
"content": {"type": "string"}
}
}
)
]
@SERVER.call_tool()
async def call_notion_tool(request: CallToolRequest):
if request.name == "notion_search_pages":
return await search_pages(request.arguments["query"], request.arguments.get("filter_database_id"))
elif request.name == "notion_create_page":
return await create_page(request.arguments["database_id"], request.arguments["title"], request.arguments.get("properties", {}))
elif request.name == "notion_update_block":
return await update_block(request.arguments["block_id"], request.arguments["content"])
Step 2.2: MCP Server Configuration File
Generate the mcp.json or mcp_servers.json config for the runtime.
// .mcp.json (Claude Desktop)
{
"mcpServers": {
"notion": {
"command": "python",
"args": ["notion_mcp_server.py"],
"env": {
"NOTION_API_KEY": "${NOTION_API_KEY}"
}
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
},
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "${DATABASE_URL}"
}
}
}
}
Step 3.1: GitHub MCP Integration
Enable AI agents to interact with GitHub repositories, issues, PRs, and code.
Capabilities enabled:
github_list_repos — List repositories with filtersgithub_create_issue — Create issue with labelsgithub_review_pr — Analyze PR changes and provide review commentsgithub_search_code — Semantic code search across reposgithub_get_workflow_runs — Monitor CI/CD pipeline statusUse case example:
"Summarize all open PRs in our main repo, highlight security concerns, and post a daily digest to Slack."
Step 3.2: Slack MCP Integration
Enable AI agents to send messages, search history, manage channels.
Capabilities enabled:
slack_post_message — Send to channel or DMslack_search_messages — Full-text search in Slack historyslack_list_channels — Get channel list with membershipslack_create_channel — Provision new channelsslack_schedule_message — Schedule future messagesStep 3.3: Database MCP (PostgreSQL / MySQL / MongoDB)
Enable AI agents to query databases, generate reports, and validate data.
Capabilities enabled:
db_query — Execute read-only SQL with row limitsdb_describe_table — Get schema documentationdb_generate_report — Natural language → formatted reportdb_validate — Check data quality rules⚠️ Security note: Always use read-only connections. Never expose write permissions without approval workflows.
Step 4.1: MCP Connection Diagnostic
When an MCP tool fails, systematically diagnose the root cause.
Diagnostic checklist:
Output: MCP Debug Report
| Tool | Connection Status | Latency | Last Error | Root Cause |
|---|---|---|---|---|
| Notion | ❌ Failed | — | 401 Unauthorized | Token expired |
| GitHub | ✅ Working | 230ms | — | — |
| Postgres | ⚠️ Slow | 4500ms | — | Missing index on query |
Step 4.2: Performance Optimization
For slow MCP tools, recommend optimizations:
Input:
I want to build an agent that:
1. Reads feature requests from Notion
2. Creates GitHub issues for each one
3. Posts a summary to Slack
4. Updates Notion with the GitHub issue links
I use Claude Desktop. Help me set up the MCP servers.
Output:
## MCP Architecture for Feature Request Agent
### Required MCP Servers (3 total)
1. notion-mcp — Read/write Notion databases
2. github-mcp — Create GitHub issues
3. slack-mcp — Post Slack notifications
### Setup Instructions
Step 1: Install MCP servers
```bash
npm install -g @modelcontextprotocol/server-notion
npm install -g @modelcontextprotocol/server-github
npm install -g @modelcontextprotocol/server-slack
Step 2: Configure .mcp.json in Claude Desktop config directory
Step 3: Verify connections with diagnostic check
"You are a feature request manager. Every morning at 9am:
### Example 2: Debugging a Failing MCP Connection
**Input:**
My Slack MCP integration stopped working. The error says "channel_not_found" when I try to post messages.
**Output:**
MISSING SCOPE: The Slack app's OAuth token does not include the "channels:write" scope required to post to public channels.
Use the conversations.open API instead — it works with existing scopes and can post to any channel the bot has been invited to.
---
## MCP Server Registry
Pre-built MCP server templates available:
| Tool | Package | Auth | Operations | China Status |
|------|---------|------|-----------|-------------|
| GitHub | @modelcontextprotocol/server-github | OAuth | 20+ | ✅ Works globally |
| Slack | @modelcontextprotocol/server-slack | OAuth | 15+ | ⚠️ Slack blocked in China |
| Notion | @modelcontextprotocol/server-notion | API Key | 12+ | ✅ Works globally |
| PostgreSQL | @modelcontextprotocol/server-postgres | Connection string | 5+ | ✅ Works globally |
| Filesystem | Built-in | Local | 8+ | ✅ Works globally |
| Brave Search | @modelcontextprotocol/server-brave-search | API Key | 3+ | ⚠️ Limited |
| AWS | aws-mcp | AWS credentials | 30+ | ✅ S3/lambda work |
| 腾讯云 | Custom (not official) | SecretKey | Varies | ✅ China-optimized |
---
## Notes & Best Practices
1. **MCP vs. direct API calls:** MCP adds a layer of standardization. Use it when you need to swap AI runtimes (Claude ↔ GPT ↔ Gemini) without rewriting tool integrations.
2. **China-specific:** Official MCP servers for 钉钉 (DingTalk) and 飞书 (Lark) are not in the official registry — build custom ones using the MCP Python SDK. 腾讯云 SDK has partial MCP compatibility.
3. **Security:** MCP tools inherit the AI agent's access level. Always use least-privilege tokens and enable audit logging.
4. **Versioning:** MCP moved to Linux Foundation Agentic AI Foundation (2025-11). Pin server versions in production. For China deployments, track domestic MCP ecosystem evolution.
5. **Testing:** Use `mcp dev` CLI or the Claude Desktop MCP inspector to test tools before deploying to agents.
6. **Cost control:** Many MCP tool calls count as API calls. Set rate limits and budgets per agent.
7. **2026标准之战:** MCP vs. OpenAI Tool Use vs. Google A2A — MCP已获得最多生态支持,但跨协议互操作性是2026年新挑战。使用标准转换层(如MCP Gateway)可桥接不同协议。
8. **企业AI Agent首选:** 金融行业部署AI Agent时,优先通过MCP接入内部系统(CRM/ERP),而非直接API集成——MCP的审计日志和访问控制更规范。
---
*Author: @gechengling | Skill: mcp-tool-integrator | clawhub.ai/gechengling/mcp-tool-integrator*