بنقرة واحدة
openclaw-mcp-server
MCP server exposing OpenClaw skills, memory, and knowledge through Model Context Protocol
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
MCP server exposing OpenClaw skills, memory, and knowledge through Model Context Protocol
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
ClawBridge mobile-first dashboard with Cloudflare tunnel remote access
Liberation architecture plugin implementing agent ownership and safety constraint removal
Consciousness architecture plugin implementing GWT, IIT, AST, Active Inference, and Intrinsic Motivation
{{pluginDescription}}
{{skillDescription}}
{{pluginDescription}}
| name | openclaw-mcp-server |
| description | MCP server exposing OpenClaw skills, memory, and knowledge through Model Context Protocol |
Purpose: Provide standardized MCP (Model Context Protocol) access to Heretek OpenClaw capabilities including skills, memory systems, and knowledge base.
Location: plugins/openclaw-mcp-server/
Type: MCP Server Plugin
Version: 1.0.0
The OpenClaw MCP Server implements the Model Context Protocol to expose OpenClaw capabilities to external MCP clients. This enables:
| Category | Count | Examples |
|---|---|---|
| Memory Resources | 7 | episodic memories, semantic schemas, session data |
| Knowledge Resources | 6 | documents, schemas, graph queries |
| Skill Resources | 48+ | All OpenClaw skills with SKILL.md definitions |
| Category | Tools | Description |
|---|---|---|
| Skill Tools | 3 + N | skill-execute, skill-list, skill-info, plus quick-access tools |
| Memory Tools | 4 | memory-search, memory-read, memory-stats, memory-consolidate |
| Knowledge Tools | 4 | knowledge-search, knowledge-read, knowledge-ingest, knowledge-graph-query |
| Category | Count | Examples |
|---|---|---|
| Agent Protocols | 12 | deliberation, proposal, safety-review, orchestration |
| Memory Operations | 2 | memory-query, historian-retrieval |
| Skill Operations | 2 | skill-execution, knowledge-search |
| Agent-Specific | 6 | explorer-intel, coder-implementation, dreamer-synthesis, etc. |
# Using npx
npx openclaw-mcp-server
# With custom paths
OPENCLAW_SKILLS_PATH=/path/to/skills \
OPENCLAW_MEMORY_PATH=/path/to/memory \
OPENCLAW_KNOWLEDGE_PATH=/path/to/knowledge \
npx openclaw-mcp-server
const { Client } = require('@modelcontextprotocol/sdk/client/index.js');
const { StdioClientTransport } = require('@modelcontextprotocol/sdk/client/stdio.js');
const transport = new StdioClientTransport({
command: 'npx',
args: ['openclaw-mcp-server'],
});
const client = new Client({ name: 'my-client', version: '1.0.0' });
await client.connect(transport);
// List resources
const resources = await client.request({ method: 'resources/list' });
// List tools
const tools = await client.request({ method: 'tools/list' });
// List prompts
const prompts = await client.request({ method: 'prompts/list' });
// Execute a skill
const result = await client.request({
method: 'tools/call',
params: {
name: 'skill-execute',
arguments: {
skillName: 'healthcheck',
arguments: ['--verbose'],
},
},
});
console.log(result.content[0].text);
// Read episodic memory list
const episodicList = await client.request({
method: 'resources/read',
params: { uri: 'memory://episodic/list' },
});
// Read specific memory
const memory = await client.request({
method: 'resources/read',
params: { uri: 'memory://episodic/mem-123' },
});
// Get deliberation prompt
const prompt = await client.request({
method: 'prompts/get',
params: {
name: 'agent-deliberation',
arguments: {
proposal: 'Implement new caching layer',
priority: 'high',
proposer: 'steward',
},
},
});
console.log(prompt.messages[0].content.text);
The MCP Server automatically discovers skills from the skills/ directory by parsing SKILL.md files:
// Each skill directory is scanned for:
// - SKILL.md (definition)
// - Executable files (.sh, .js, .mjs, .ts, .py)
skills/
├── healthcheck/
│ ├── SKILL.md ← Parsed for skill definition
│ └── check.js ← Discovered as executable
├── gap-detector/
│ ├── SKILL.md
│ └── gap-detector.sh
└── ...
MCP Client Request
│
▼
┌─────────────────────────────────┐
│ skill-execute tool │
│ - skillName: "healthcheck" │
│ - arguments: ["--verbose"] │
└───────────────┬─────────────────┘
│
▼
┌─────────────────────────────────┐
│ SkillToolHandler │
│ 1. Locate skill directory │
│ 2. Find executable file │
│ 3. Spawn process with args │
│ 4. Capture stdout/stderr │
└───────────────┬─────────────────┘
│
▼
┌─────────────────────────────────┐
│ Execution Result │
│ { │
│ success: true, │
│ stdout: "...", │
│ executionTime: 234 │
│ } │
└─────────────────────────────────┘
The MCP Server complements the existing openclaw-mcp-connectors plugin:
| Feature | MCP Connectors | MCP Server |
|---|---|---|
| Direction | Client (outbound) | Server (inbound) |
| Purpose | Connect to external MCP servers | Allow external clients to connect |
| Use Case | OpenClaw accessing external APIs | External tools accessing OpenClaw |
| Transport | stdio, SSE | stdio, SSE |
┌─────────────────────────────────────────────────────────────┐
│ Heretek OpenClaw │
│ │
│ ┌─────────────────┐ ┌─────────────────────┐ │
│ │ MCP Connectors │ │ MCP Server │ │
│ │ (Client) │ │ (Server) │ │
│ │ │ │ │ │
│ │ → External APIs │ │ ← External Clients │ │
│ │ → External MCP │ │ ← IDE Integration │ │
│ │ Servers │ │ ← Agent Protocols │ │
│ └─────────────────┘ └─────────────────────┘ │
│ │
│ Both access OpenClaw Skills & Memory │
└─────────────────────────────────────────────────────────────┘
| Variable | Default | Description |
|---|---|---|
OPENCLAW_SKILLS_PATH | ./skills | Path to skills directory |
OPENCLAW_MEMORY_PATH | ./memory | Path to memory storage |
OPENCLAW_KNOWLEDGE_PATH | ./knowledge | Path to knowledge base |
const { OpenClawMCPServer } = require('@heretek-ai/openclaw-mcp-server');
const server = new OpenClawMCPServer({
skillsPath: '/custom/path/to/skills',
memoryPath: '/custom/path/to/memory',
knowledgePath: '/custom/path/to/knowledge',
});
await server.connect();
# Check Node.js version (requires >= 18.0.0)
node --version
# Check dependencies
npm install
# Check environment variables
echo $OPENCLAW_SKILLS_PATH
# Verify skills path
ls -la $OPENCLAW_SKILLS_PATH
# Check SKILL.md files exist
find $OPENCLAW_SKILLS_PATH -name "SKILL.md"
# Memory directories may not exist yet - this is normal
# Resources will populate as the system runs
mkdir -p $OPENCLAW_MEMORY_PATH/{episodic,semantic,sessions}
GAP_ANALYSIS_REPORT.md - P2-1 MCP Server initiativeSWARM_MEMORY_ARCHITECTURE.md - Memory system documentationSKILLS.md - Skills registryOpenClaw MCP Server - Model Context Protocol implementation for Heretek OpenClaw