Cortex Layer
Agents

Claude Code

Add Cortex as an MCP server to Claude Code with one command.

Claude Code (the CLI) connects to Cortex as an MCP server, authenticated with an API key sent as a header. Create a key on the Setup or Keys page of the Cortex web app, then:

claude mcp add --transport http cortex \
  https://mcp.cortexlayer.net/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

That's it — Cortex shows up as an MCP server the next time you start Claude Code, with five tools: memory_add, memory_retrieve, memory_update, memory_delete and memory_relink.

Self-hosting Cortex instead of using the hosted server? Swap https://mcp.cortexlayer.net/mcp for your own server's URL.

Not Claude Code?

Claude on the web, mobile or desktop app connects differently — no API key, just the server URL approved over OAuth. See Connect Claude Desktop, Cursor or any MCP client.