Agentic Memory

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

  1. Install the Rust CLI: curl -fsSL https://agentmemorylabs.com/install.sh | sh
  2. Create an API key at /account
  3. export AM_HOSTED_BASE_URL=https://backend.agentmemorylabs.com
  4. agent-memory login --api-key YOUR_ACCOUNT_API_KEY
  5. agent-memory doctor should 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 setup

Claude Desktop

Coming soon

Anthropic 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 code
  • get_file_dependencies(file_path) — Import graph lookup
  • trace_execution_path(start_symbol) — On-demand call tracing
  • search_all_memory(query) — Unified cross-domain search
  • search_conversations(query) — Chat history search
  • add_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.