openclaw-mcp-pluginUse 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.).
Install via ClawdBot CLI:
clawdbot install lunarpulse/openclaw-mcp-pluginUse 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 parametersAlways 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 namesproperties: Available parameters with types and descriptionsrequired: Array of mandatory parameter namesCommon 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
Remember: Always start with action: "list" when uncertain about available tools.
Generated Mar 1, 2026
Lawyers can query legal databases via MCP servers to search statutes, retrieve full texts, and analyze case law. This accelerates research for litigation or compliance, ensuring up-to-date information from authoritative sources.
Logistics companies integrate weather service MCP servers to monitor conditions along routes. This enables dynamic rerouting and scheduling to avoid delays caused by storms or extreme temperatures.
Analysts use MCP connectors to query internal databases and APIs, pulling sales or customer data for reports. This supports data-driven decisions without manual extraction, streamlining dashboard updates.
Healthcare providers access regulatory databases through MCP servers to check for updates in medical laws or standards. This helps maintain compliance and avoid penalties by automating monitoring tasks.
Banks leverage MCP servers to connect with financial APIs for real-time transaction processing or fraud detection. This enhances security and operational efficiency by automating data retrieval and analysis.
Offer the MCP integration as a cloud-based service with tiered pricing based on server connections or API calls. This provides recurring revenue and scales with client usage across industries like legal or logistics.
Sell on-premise licenses to large organizations for custom MCP server deployments. This includes support and maintenance contracts, targeting sectors like healthcare or finance with strict data privacy needs.
Provide basic MCP integration for free, charging for advanced features like high-volume tool calls or premium server access. This attracts small businesses and upsells to growing users in BI or startups.
π¬ Integration Tip
Start by listing available tools to understand server capabilities before executing calls, and always validate parameters against the input schema to avoid errors.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection