Skip to main content
Crosmos ships an MCP server for AI clients that support the Model Context Protocol. The server gives agents tools to search memories, add new memories, list spaces, and check API health. Use MCP when you want Crosmos memory inside an AI client such as Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, opencode, Cline, Roo-Cline, or Zed. Use the SDKs when you are building Crosmos directly into an application or backend service.

Interactive setup

npx @crosmos/crosmos-mcp setup
The setup command authenticates with your Crosmos API key, detects installed MCP clients, writes their config, and can install the Crosmos skill for supported AI editors. It detects Claude Desktop, Claude Code, opencode, Cursor, VS Code, Windsurf, Cline, Roo-Cline, and Zed when they are installed.

Authenticate manually

Generate an API key from Settings -> API Keys in the Crosmos Console. Keys use the csk_ prefix.
npx @crosmos/crosmos-mcp auth login
The login command validates the key and saves credentials to ~/.crosmos/credentials.json with restricted file permissions.
CROSMOS_API_KEY overrides saved credentials. Use environment variables for CI, containers, or client config that should not read from ~/.crosmos.

Configure a client manually

If you do not use setup, point your MCP client at npx -y @crosmos/crosmos-mcp.
claude mcp add crosmos-memory -- npx -y @crosmos/crosmos-mcp
Restart the client after changing its MCP config.

Next steps

Tools

See tool inputs, behavior, and examples.

Configuration

Configure credentials, default spaces, timeouts, and deployment settings.