claude mcp add CLI command.
Prerequisites
Install the@memorycrystal/mcp-server npm package:
Claude Code
- Config file
- CLI command
Add a This config applies to the current project only. Commit it to your repository to share the setup with your team.
.claude/mcp.json file to your project:Codex CLI
Add Memory Crystal to Codex CLI by pointing it at the Streamable HTTP server:Session startup with crystal_wake
Callcrystal_wake at the start of every session to load your current context:
- Active goals and pending work
- Recent decisions made in previous sessions
- Any rules or lessons relevant to the current project
Verify
After configuring, confirm Memory Crystal is connected by asking the agent to callcrystal_stats. It should return your memory usage statistics without errors.
If the tools don’t appear, check that:
crystal-mcpis on yourPATH(runwhich crystal-mcpin a terminal), or the Streamable HTTP server is running on the expected port- The
MEMORY_CRYSTAL_API_KEYandMEMORY_CRYSTAL_API_URLvalues are correct - The config file is valid JSON
