Get Crosmos into your AI agent in under a minute with the MCP server.Documentation Index
Fetch the complete documentation index at: https://docs.crosmos.dev/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An API key from the Crosmos Console (starts with
csk_...) - Node.js 18 or later
Quick setup
Run the interactive setup to authenticate and install to your MCP clients in one command:- Authenticate — Enter your API key, which is validated and saved locally
- Install to clients — Detects installed MCP clients and writes the server config automatically
- Install skill — Installs the Crosmos skill into your AI editor for enhanced memory behavior
Install
If you prefer not to use the interactive setup, install manually:- npx (recommended)
- Global install
- From source
npx downloads and runs the server on demand.Authenticate
The server resolves credentials in this order:CROSMOS_API_KEYenvironment variable~/.crosmos/credentials.json(created byauth login)- Error — no key found
Login
~/.crosmos/credentials.json with restricted file permissions.
To use a custom API base URL:
Check status
Logout
If you used
setup, authentication is already configured. You can also set CROSMOS_API_KEY as an environment variable in your client config instead.Configure your client
If you ransetup, your MCP clients are already configured. To add Crosmos manually, find your client below.
Claude Code
Claude Desktop
Add to your config file:- macOS
- Linux
- Windows
~/Library/Application Support/Claude/claude_desktop_config.jsonOpencode
Add to~/.config/opencode/opencode.json:
Cursor
Add to~/.cursor/mcp.json:
VS Code
Add to your MCP config:- macOS
- Linux
- Windows
~/Library/Application Support/Code/User/mcp.jsonWindsurf
Add to~/.codeium/windsurf/mcp_config.json:
Other MCP clients
The server uses stdio transport and works with any MCP-compatible client. Point your client tonpx -y @crosmos/crosmos-mcp. If you used auth login, no environment variables are needed — credentials are read from ~/.crosmos/credentials.json automatically.
Next steps
MCP reference
See all available tools, CLI commands, and configuration.
Memories
Learn how Crosmos structures and retrieves context.