MCP Server
Hooks capture context. MCP recalls it. ContextPilot ships a stdio MCP server that exposes compact search and memory tools to agents that support Model Context Protocol.
Registration
contextpilot install merges the MCP server into ~/.claude/mcp_servers.json for Claude Code. The command points Claude at the built @contextpilot/mcp server.
{
"mcpServers": {
"contextpilot": {
"command": "node",
"args": ["/absolute/path/to/packages/mcp/dist/server.js"]
}
}
}contextpilot_search
Search compact local memories before rereading files.
Natural-language query.
Max results. Default 8, cap 20.
contextpilot_get
Fetch one full memory by ID returned from contextpilot_search.
Memory ID.
contextpilot_remember
Create a manual local memory.
Short searchable title.
Memory content.
Optional related files.
contextpilot_status
Returns the worker overview and current estimated savings.
Troubleshooting
contextpilot doctor
contextpilot status
contextpilot search "test memory"If Claude cannot see the tools, rerun contextpilot install, restart Claude Code, and check ~/.claude/mcp_servers.json.