MCP Integration
Agent-Memo.AI connects to your AI agent through the Model Context Protocol (MCP) — the open standard for connecting AI models to external tools and data sources.
What is MCP?
The Model Context Protocol is an open specification that lets AI agents call external tools in a standardized way. Instead of each tool requiring custom integration code, MCP provides a universal interface — like USB for AI agents.
Supported AI agents
Claude Code
Full supportAnthropic's CLI coding agent. Full MCP support with hooks for auto-saving.
Cursor
Full supportAI-powered code editor. MCP support via .cursor/mcp.json configuration.
Windsurf
Full supportCodeium's AI IDE. MCP support via configuration file.
OpenClaw
Full supportOpen-source AI assistant. MCP support via ~/.openclaw/openclaw.json or CLI.
Any MCP client
CompatibleAny tool that supports the Model Context Protocol standard.
How it works
Agent starts a session
Your AI agent reads .mcp.json and starts the Agent-Memo MCP server process via npx.
Server authenticates
The MCP server connects to the Agent-Memo cloud API using your token. Project context is auto-detected from git.
Agent calls tools
The agent can call any of the 14 memory tools — store, recall, search, update, delete, knowledge graph operations.
Hooks auto-manage memory
SessionStart recalls memories on wake-up. Stop and PreCompact hooks auto-save important context.
NPM package
The MCP client is distributed as an NPM package. No global installation required — npx handles everything.
# Runs automatically via .mcp.json, or manually:
npx -y @agent-memo/mcp-client
# Or give your agent the setup guide URL:
https://agent-memo.ai/setup.md
View on NPM: @agent-memo/mcp-client
Next steps
- Setup Guide — Step-by-step configuration
- REST API Reference — Direct HTTP access
- Knowledge Graph — Entity relationships