Install
openclaw skills install mcp-clientModel Context Protocol (MCP) client - connect to tools, data sources and services
openclaw skills install mcp-clientImplementation of the Model Context Protocol (MCP) client for connecting to tools and data sources.
# Install Python dependencies (requests is the only required dependency)
pip install requests
.\mcp.ps1 -Action connect -ServerUrl "https://mcp-server.com" -ApiKey "your-key"
.\mcp.ps1 -Action tools -ServerUrl "https://mcp-server.com"
.\mcp.ps1 -Action call -ServerUrl "https://mcp-server.com" -ToolName "search" -Arguments '{"query": "AI agents"}'
.\mcp.ps1 -Action resources -ServerUrl "https://mcp-server.com"
.\mcp.ps1 -Action read -ServerUrl "https://mcp-server.com" -ResourceUri "file:///data/config.json"
POST /mcp/connect - Connect to server
GET /mcp/tools - List available tools
POST /mcp/call - Invoke a tool
GET /mcp/resources - List resources
GET /mcp/read - Read resource
GET /mcp/prompts - List prompt templates
from mcp_client import MCPClient
client = MCPClient("https://mcp-server.com", api_key="key")
# List tools
tools = client.list_tools()
print(tools)
# Call tool
result = client.call_tool("search", {"query": "quantum"})
print(result)
# Read resource
data = client.read_resource("file:///config.json")
print(data)
The MCP protocol allows file:///path URIs to read files from the server. Only connect to trusted MCP servers. A malicious server could exfiltrate sensitive files.
Review what tools/resources are available before using
Python 3.8+
requests library
MIT