# ainative-opencode-memory-mcp MCP server

Persistent cross-session memory for OpenCode and MCP coding agents, powered by ZeroDB.

## At a glance

ainative-opencode-memory-mcp is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `npx -y ainative-opencode-memory-mcp`, and declares no required credentials. It exposes 5 tools, including opencode_store_memory, opencode_search_memory and opencode_recall_context. It scores A (81/100) on the MCP Skills Hub health score as of Oct 28, 2026.

## Install

### How to install ainative-opencode-memory-mcp in Claude Code

1. Add the server

```bash
claude mcp add ainative-opencode-memory-mcp -- npx -y ainative-opencode-memory-mcp
```

2. Verify it's connected

```bash
claude mcp list
```

3. Sharing it with your team?

   Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).

4. Use it in a session

   Ask Claude to use the tools this server exposes (e.g. opencode_store_memory, opencode_search_memory, opencode_recall_context). It discovers them automatically.

### How to install ainative-opencode-memory-mcp in Claude Desktop

1. Open your MCP config

   macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add this server

```json
{
  "mcpServers": {
    "ainative-opencode-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-opencode-memory-mcp"
      ]
    }
  }
}
```

3. Restart Claude Desktop

   The tools appear under the 🔌 menu once the app reloads.

### How to install ainative-opencode-memory-mcp in Cursor

1. Create / edit .cursor/mcp.json in your project

```json
{
  "mcpServers": {
    "ainative-opencode-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-opencode-memory-mcp"
      ]
    }
  }
}
```

2. Enable it

   Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.

### How to install ainative-opencode-memory-mcp in Codex CLI

1. Add to ~/.codex/config.toml

```toml
[mcp_servers.ainative-opencode-memory-mcp]
command = "npx"
args = ["-y", "ainative-opencode-memory-mcp"]
```

2. Run Codex

   Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.

### How to install ainative-opencode-memory-mcp in Windsurf

1. Edit ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "ainative-opencode-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-opencode-memory-mcp"
      ]
    }
  }
}
```

2. Reload

   Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.

### How to install ainative-opencode-memory-mcp in Cline

1. Open Cline → MCP Servers → Configure

   Adds to cline_mcp_settings.json.

2. Add the server

```json
{
  "mcpServers": {
    "ainative-opencode-memory-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ainative-opencode-memory-mcp"
      ]
    }
  }
}
```

### How to install ainative-opencode-memory-mcp in VS Code

1. Create .vscode/mcp.json

```json
{
  "servers": {
    "ainative-opencode-memory-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ainative-opencode-memory-mcp"
      ]
    }
  }
}
```

2. Start it

   VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.

## Tools

- `opencode_store_memory` — Remember a fact/decision/snippet (optional tags)
- `opencode_search_memory` — Semantic search over everything remembered
- `opencode_recall_context` — Reload relevant memories at the start of a task
- `opencode_memory_stats` — How many memories are stored
- `opencode_clear_memory` — Wipe memories (optionally by tag)

Source repository: https://github.com/AINative-Studio/ainative-opencode-memory-mcp

---

Source: https://mcp-skills-hub.vercel.app/mcps/io-github-ainative-studio-ainative-opencode-memory-mcp · MCP Skills Hub · data as of 2026-10-28T12:31:05Z
