Use Model Context Protocol servers to access external tools and data sources. Enable AI agents to discover and execute tools from configured MCP servers (legal databases, APIs, database connectors, weather services, etc.).
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mcp-adapter或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mcp-adapter⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mcp-adapter/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mcp-integration description: Use Model Context Protocol servers to access external tools and data sources. Enable AI agents to discover and execute tools from configured MCP servers (legal databases, APIs, database connectors, weather services, etc.). license: MIT ---
Use the MCP integration plugin to discover and execute tools provided by external MCP servers. This skill enables you to access legal databases, query APIs, search databases, and integrate with any service that provides an MCP interface.
The plugin provides a unified mcp tool with two actions:
list - Discover available tools from all connected serverscall - Execute a specific tool with parameters---
Always start by listing available tools to see what MCP servers are connected and what capabilities they provide.
Action:
{
tool: "mcp",
args: {
action: "list"
}
}
Response structure:
[
{
"id": "server:toolname",
"server": "server-name",
"name": "tool-name",
"description": "What this tool does",
"inputSchema": {
"type": "object",
"properties": {...},
"required": [...]
}
}
]
For each tool, examine:
"server:toolname" - split on : to get server and tool names - properties: Available parameters with types and descriptions - required: Array of mandatory parameter names
Common tool naming patterns:
search_* - Find or search operations (e.g., search_statute, search_users)get_* - Retrieve specific data (e.g., get_statute_full_text, get_weather)query - Execute queries (e.g., database:query)analyze_* - Analysis operations (e.g., analyze_law)resolve_* - Resolve references (e.g., resolve_citation)---
Before calling a tool:
inputSchema.requiredAction:
{
tool: "mcp",
args: {
action: "call",
server: "<server-name>",
tool: "<tool-name>",
args: {
// Tool-specific parameters from inputSchema
}
}
}
Example - Korean legal search:
{
tool: "mcp",
args: {
action: "call",
server: "kr-legal",
tool: "search_statute",
args: {
query: "연장근로 수당",
limit: 5
}
}
}
Tool responses follow this structure:
{
"content": [
{
"type": "text",
"text": "JSON string or text result"
}
],
"isError": false
}
For JSON responses:
const data = JSON.parse(response.content[0].text);
// Access data.result, data.results, or direct properties
---
For complex requests, execute multiple tools in sequence:
Example - Legal research workflow:
search_statute to find relevant lawsget_statute_full_text for complete textanalyze_law for interpretationsearch_case_law for related casesEach step uses output from the previous step to inform the next call.
Between tool calls:
---
"Tool not found: server:toolname"
action: "list" to verify available tools"Invalid arguments for tool"
inputSchema from list response"Server connection failed"
Errors return:
{
"content": [{"type": "text", "text": "Error: message"}],
"isError": true
}
Handle gracefully:
---
{tool: "mcp", args: {action: "list"}}
Response shows kr-legal:search_statute with:
query (string)limit (number), category (string){
tool: "mcp",
args: {
action: "call",
server: "kr-legal",
tool: "search_statute",
args: {
query: "연장근로 수당",
category: "노동법",
limit: 5
}
}
}
const data = JSON.parse(response.content[0].text);
// Present data.results to user
User-facing response:
Found 5 Korean statutes about overtime pay:
1. 근로기준법 제56조 (연장·야간 및 휴일 근로)
- Overtime work requires 50% premium
2. 근로기준법 제50조 (근로시간)
- Standard working hours: 40 hours per week
Would you like me to retrieve the full text of any statute?
---
{tool: "mcp", args: {action: "list"}}
{
tool: "mcp",
args: {
action: "call",
server: "server-name",
tool: "tool-name",
args: {param1: "value1"}
}
}
Tool ID parsing: "server:toolname" → split on : for server and tool names
Parameter validation: Check inputSchema.required and inputSchema.properties[param].type
Response parsing: JSON.parse(response.content[0].text) for JSON responses
Error detection: Check response.isError === true
---
- Legal research workflows - Database queries - Weather service integration - Multi-step complex workflows - Error handling patterns
---
Remember: Always start with action: "list" when uncertain about available tools.
安装 mcp-adapter 后,可以对 AI 说这些话来触发它
Help me get started with mcp-adapter
Explains what mcp-adapter does, walks through the setup, and runs a quick demo based on your current project
Use mcp-adapter to use Model Context Protocol servers to access external tools and dat...
Invokes mcp-adapter with the right parameters and returns the result directly in the conversation
What can I do with mcp-adapter in my data & analytics workflow?
Lists the top use cases for mcp-adapter, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mcp-adapter/ 目录(个人级,所有项目可用),或 .claude/skills/mcp-adapter/(项目级)。重启 AI 客户端后,用 /mcp-adapter 主动调用,或让 AI 根据上下文自动发现并使用。
mcp-adapter 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
mcp-adapter 可免费安装使用。请查阅仓库了解许可证信息。
Use Model Context Protocol servers to access external tools and data sources. Enable AI agents to discover and execute tools from configured MCP servers (legal databases, APIs, database connectors, weather services, etc.).
mcp-adapter 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using mcp-adapter
Identifies repetitive steps in your workflow and sets up mcp-adapter to handle them automatically