MCP Integration
Connect Agent Memory to Cursor, ChatGPT, and Codex via hosted HTTP MCP and OAuth. No local agentic-memory serve stdio bridge on the managed path.
Prerequisites
- Install the Rust CLI:
curl -fsSL https://agentmemorylabs.com/install.sh | sh - Create an API key at /account
export AM_HOSTED_BASE_URL=https://backend.agentmemorylabs.comagent-memory login --api-key YOUR_ACCOUNT_API_KEYagent-memory doctorshould exit 0 before MCP connect
Cursor IDE (default)
Open Cursor Settings → Features → MCP Servers, then add this OAuth-only config (no headers, no env vars, no stdio):
{
"mcpServers": {
"agentic-memory": {
"url": "https://mcp.agentmemorylabs.com/mcp-full/"
}
}
}Cursor runs OAuth against the public mount; the control plane forwards tool execution to your account runtime. For the smaller marketplace tool set, use https://mcp.agentmemorylabs.com/mcp instead.
Optional: agent-memory mcp setup --mount mcp-full prints endpoint details after login.
ChatGPT (hosted)
Add the hosted OpenAI MCP surface in ChatGPT connector settings:
https://mcp.agentmemorylabs.com/mcp-openai- OAuth required — stateful session flow; no API key in client config.
- OpenAI app directory review is in progress (launch gate G3). Expect friction until approval closes.
- Stateful OAuth may return 501 during private beta while G3 is open.
Codex
Point the Codex MCP bundle at the hosted Codex surface, or use the CLI to resolve wiring from your account route:
{
"mcpServers": {
"agentic-memory": {
"url": "https://mcp.agentmemorylabs.com/mcp-codex"
}
}
}
agent-memory mcp setupClaude Desktop
Coming soonAnthropic directory listing has not started (launch gate G4). Hosted OAuth config for Claude will publish when G4 closes. Legacy stdio + Neo4j examples are not valid for managed prod.
Windsurf
Same OAuth URL pattern as Cursor:
{
"mcpServers": {
"agentic-memory": {
"url": "https://mcp.agentmemorylabs.com/mcp-full/"
}
}
}Available Tools
search_codebase(query)— Semantic search over codeget_file_dependencies(file_path)— Import graph lookuptrace_execution_path(start_symbol)— On-demand call tracingsearch_all_memory(query)— Unified cross-domain searchsearch_conversations(query)— Chat history searchadd_message(role, content, session_id)— Write to conversation memory
Advanced operators: collapsed prod data plane mounts such as https://memory.agentmemorylabs.com/mcp-full/ are for dogfood and latency tuning — not end-user onboarding. Use agent-memory mcp setup --data-plane-url … only when you explicitly need direct data-plane routing.