DocsIntegrationsMCP Integration

MCP Integration

Use HelixMind's spiral memory in Claude Code, Cursor, VS Code, Windsurf, Codex, and JetBrains IDEs.

MCP Integration

HelixMind includes an MCP (Model Context Protocol) server that exposes your spiral memory to other AI tools.

Available MCP Tools

ToolDescription
spiral_contextQuery spiral memory (L1โ€“L3) for relevant context
spiral_storeStore new context in the spiral
spiral_statusGet memory metrics (node counts, storage)
spiral_compactTrigger manual compaction
spiral_relateCreate manual relations between nodes

Setup by Editor

Claude Code

claude mcp add spiral-context -- npx -y spiral-context-mcp

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "spiral-context": {
      "command": "npx",
      "args": ["-y", "spiral-context-mcp"]
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "mcpServers": {
    "spiral-context": {
      "command": "npx",
      "args": ["-y", "spiral-context-mcp"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "spiral-context": {
      "command": "npx",
      "args": ["-y", "spiral-context-mcp"]
    }
  }
}

Codex / JetBrains

Same JSON format. add to the respective MCP config file. For JetBrains: Settings โ†’ Tools โ†’ AI Assistant โ†’ MCP Servers.

Architecture

Your Editor (Claude Code / Cursor / VS Code)
    โ”‚
    โ”œโ”€โ”€ MCP Protocol (STDIO)
    โ”‚
    โ””โ”€โ”€ spiral-context-mcp Server
            โ”œโ”€โ”€ Spiral Engine (SQLite + sqlite-vec + MiniLM embeddings)
            โ””โ”€โ”€ 5 MCP Tools (context, store, status, compact, relate)

Key Points

FeatureDetail
InitializationNon-blocking. basic tools work instantly, search after ~2-3s
Shared memoryMCP server + CLI share the same spiral.db
Cross-toolAnalyze in CLI โ†’ knowledge available in Cursor via MCP
Team sharingExport from Dev A โ†’ import on Dev B โ†’ MCP has all knowledge

Troubleshooting

IssueSolution
Server not connectingTest npx -y spiral-context-mcp directly
Slow initializationFirst run downloads embedding model (~22MB), cached after
Database lockedEnsure only one MCP server per project, check for zombie processes
HelixMind โ€” AI Coding CLI with Spiral Memory