MCP Integration
Connect ekkOS to Claude Code, Cursor, and other MCP-compatible AI tools. Get persistent memory across all your development workflows.
What is MCP?
Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external tools and data sources. Think of it as a plugin system for AI.
ekkOS provides an MCP server that gives your AI tools access to persistent memory. When you connect Claude Code or Cursor to ekkOS via MCP, they gain the ability to:
- Remember context across sessions
- Learn from successful problem-solving
- Apply proven patterns automatically
- Validate suggestions against your history
Claude Code Setup
Step 1: Locate your settings file
Claude Code stores its configuration in ~/.claude/settings.json
# macOS/Linux ~/.claude/settings.json # Windows %USERPROFILE%\.claude\settings.json
Step 2: Add ekkOS MCP server
Add the following to your settings.json (create the file if it doesn't exist):
{
"mcpServers": {
"ekkos-memory": {
"command": "npx",
"args": ["-y", "@ekkos/mcp-server"],
"env": {
"EKKOS_API_KEY": "your_api_key_here"
}
}
}
}Step 3: Restart Claude Code
Close your terminal and reopen it. Claude Code will automatically load the MCP server on next launch.
Ask Claude: "Search my memory for recent patterns"— if it uses the ekko tool, you're connected!
Cursor Setup
Step 1: Create MCP configuration
Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"ekkos-memory": {
"command": "npx",
"args": ["-y", "@ekkos/mcp-server"],
"env": {
"EKKOS_API_KEY": "your_api_key_here"
}
}
}
}Step 2: Enable MCP in Cursor Settings
- 1Open Cursor Settings (Cmd/Ctrl + ,)
- 2Search for "MCP"
- 3Enable "Use MCP Servers"
Step 3: Reload Window
Press Cmd/Ctrl + Shift + P and run "Reload Window"
Alternative: Global Installation
For faster startup, you can install the MCP server globally:
npm install -g @ekkos/mcp-server
Then update your config to use the global command:
{
"mcpServers": {
"ekkos-memory": {
"command": "ekkos-mcp",
"env": {
"EKKOS_API_KEY": "your_api_key_here"
}
}
}
}Available MCP Tools
Once connected, your AI has access to these memory tools:
ekkoSearch your memory substrate for patterns, solutions, and context
ekko(query: string, limit?: number)
"Search for authentication patterns"
Array of matching memories with relevance scores
crystallizeSave important decisions and patterns permanently
crystallize(title: string, problem: string, solution: string, tags?: string[])
"Remember: Always use Supabase for auth"
Confirmation with pattern ID
reflexValidate AI suggestions against your established patterns (Hallucination Firewall)
reflex(request: string, proposed_answer: string)
"Check if this approach aligns with our history"
GROUNDED, SPECULATIVE, or CONFLICT with explanation
forge_insightCreate new patterns from learnings with success metrics
forge_insight(title: string, problem: string, solution: string, works_when?: string[])
"Create pattern: RLS requires service role for admin ops"
Pattern ID and confirmation
traceExplain why a suggestion was made - show provenance
trace(retrieval_id: string, memory_ids?: string[])
"Show me which memories influenced this suggestion"
Detailed provenance with relevance scores
get_directivesGet current MUST/NEVER/PREFER/AVOID behavioral rules
get_directives(userId?: string, windowHours?: number)
"What are the current rules I should follow?"
Active directives with priorities
Best Practices
Do
- • Ask AI to "search memory" for relevant context
- • Crystallize important decisions and patterns
- • Use reflex to validate unfamiliar suggestions
- • Let the AI forge insights from successful solutions
- • Keep API keys in environment variables
Don't
- • Store API keys in plain text configs
- • Expect memory without asking for it
- • Ignore the reflex tool for risky changes
- • Forget to restart after config changes
- • Run multiple MCP servers on same port
Troubleshooting
MCP server not starting?
1. Verify Node.js 18+ is installed: node --version
2. Check npx is available: npx --version
3. Try running manually: EKKOS_API_KEY=xxx npx @ekkos/mcp-server
4. Check for error messages in the terminal output
AI not using memory tools?
1. Explicitly ask: "Search my memory for..." or "Use ekkOS to..."
2. Verify the MCP server is listed in your tool's connected servers
3. Check your API key is valid at platform.ekkos.dev
4. Restart your AI tool completely (not just reload)
Getting rate limited?
Free tier includes 100 requests/day. Upgrade at platform.ekkos.dev/pricing
Pro tier: 10,000 requests/day
Team tier: Unlimited requests