memories.sh logomemories.sh
Integrations

Integrations

Setup guides for connecting memories.sh to your AI coding tools.

memories.sh works with every major AI coding tool. There are two ways to integrate:

  1. Generated files — Run memories generate <target> to create a native config file the tool reads automatically
  2. MCP server — Connect the tool to the memories.sh MCP server for live, bidirectional access

Most tools support both methods. Use generated files for simplicity, MCP for live access, or both together.

Quick Setup

The fastest way to set up all your tools at once:

memories init

This automatically detects installed tools and configures MCP for each one.

Supported Tools

Desktop/Terminal Tools

ToolGenerated FileMCP SupportAuto-detected
Claude CodeCLAUDE.mdYesYes
Blackbox CLIMCP onlyYesYes (CLI detection)
Cursor.cursor/rules/memories.mdcYesYes
Windsurf.windsurf/rules/memories.mdYesYes
VS Code / Copilot.github/copilot-instructions.mdYesYes
OpenCode.agents/ / .opencode/instructions.mdYesYes
Factory (Droid).agents/ / .factory/instructions.mdYesNo
Cline.clinerules/memories.mdYesNo
Roo.roo/rules/memories.mdYesNo
GeminiGEMINI.mdNoNo
OpenClaw~/.openclaw/workspace/AGENTS.md + ~/.openclaw/workspace/skills/NoNo
Antigravity.agents/YesYes
Kiro.agents/YesYes
Trae.agents/YesYes

Web-Based Tools

ToolIntegration Method
v0 by VercelMCP via SSE (Server-Sent Events)

Universal Target

The agents target generates the canonical .agents/ directory:

ToolDocs
AmpSourcegraph's coding agent
CodexOpenAI's CLI agent
GooseBlock's open-source agent
KiloKilo coding assistant
KiroAWS's agentic AI IDE
OpenCodeTerminal AI assistant
memories generate agents

Manual MCP Setup

For tools that aren't auto-detected, add to the tool's MCP config:

{
  "mcpServers": {
    "memories": {
      "command": "npx",
      "args": ["-y", "@memories.sh/cli", "serve"]
    }
  }
}

Remote/Web Tools (SSE)

For web-based tools like v0 that can't spawn local processes, use SSE transport:

memories serve --sse --port 3030

Then configure the tool to connect to http://localhost:3030/mcp. See the v0 integration guide for details.

Config File Locations

ToolMCP Config Location
Blackbox CLIManaged via blackbox mcp ... commands
Cursor.cursor/mcp.json or ~/.cursor/mcp.json
Claude Code.mcp.json (project) or ~/.mcp.json (global)
Windsurf.windsurf/mcp.json
VS Code.vscode/mcp.json
OpenCodeopencode.json (project) or ~/.config/opencode/opencode.json (global)
Factory.factory/mcp.json
Kiro.kiro/settings/mcp.json
Kilo.kilo/mcp.json
Trae.trae/mcp.json
Antigravity.antigravity/mcp.json (project) or ~/.gemini/antigravity/mcp_config.json (global, when IDE-managed)
Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.json

MCP Schema Matrix

Schema FamilyUsed ByShape
Cursor-style JSONCursor, Windsurf, Kiro, Kilo, Trae, Antigravity, Factory, Amp{ "mcpServers": { "memories": { "command": "npx", "args": [...] } } }
Claude-style JSONClaude Code, Claude Desktop{ "mcpServers": { "memories": { "command": "npx", "args": [...] } } }
VS Code-style JSONVS Code MCP config{ "servers": { "memories": { "command": "npx", "args": [...] } } }
OpenCode schemaOpenCode (opencode.json){ "$schema": "https://opencode.ai/config.json", "mcp": { "memories": { "type": "local", "command": ["npx", ...] } } }
CLI-managed MCPBlackbox CLIManaged via blackbox mcp add ... (no stable file path contract documented)
Workspace artifactsOpenClaw~/.openclaw/workspace/{AGENTS,SOUL,TOOLS,IDENTITY,USER,HEARTBEAT,BOOTSTRAP,BOOT,MEMORY}.md + memory/*.md + skills/**/*

See each tool's page for detailed setup instructions.

On this page