Skip to main content
ClaudeWave
AINative-Studio avatar
AINative-Studio

ainative-opencode-memory-mcp

View on GitHub

OpenCode memory MCP — persistent cross-session memory for OpenCode & MCP coding agents, powered by AINative ZeroDB.

MCP ServersOfficial Registry0 stars0 forksJavaScriptMITUpdated today
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/AINative-Studio/ainative-opencode-memory-mcp
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "ainative-opencode-memory-mcp": {
      "command": "node",
      "args": ["/path/to/ainative-opencode-memory-mcp/dist/index.js"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/AINative-Studio/ainative-opencode-memory-mcp and follow its README for install instructions.
Use cases

MCP Servers overview

# ainative-opencode-memory-mcp

**Persistent memory for [OpenCode](https://opencode.ai) agents.** OpenCode is stateless — it forgets everything between sessions. This MCP server gives your OpenCode coding agent **long-term memory** powered by [AINative ZeroDB](https://ainative.studio/opencode?utm_source=npm&utm_medium=mcp&utm_campaign=opencode-memory): store a codebase's decisions, conventions, and gotchas once, and recall them in every future session.

## Why

OpenCode restarts with a blank slate every time. Your agent re-learns your architecture, re-asks the same questions, re-makes the same mistakes. With this MCP, it remembers:

- Architecture & design decisions
- Naming conventions and code style
- Gotchas, workarounds, and "don't touch X" rules
- User/team preferences

## Install

```bash
npm install -g ainative-opencode-memory-mcp
```

## Setup (OpenCode)

1. **Get a free API key** → [ainative.studio/signup](https://ainative.studio/signup?utm_source=npm&utm_medium=mcp&utm_campaign=opencode-memory) (Hobbyist $5/mo, 7-day free trial).
2. Add to your OpenCode MCP config (`opencode.json` / MCP settings):

```json
{
  "mcpServers": {
    "ainative-memory": {
      "command": "npx",
      "args": ["-y", "ainative-opencode-memory-mcp"],
      "env": { "AINATIVE_API_KEY": "your-key-here" }
    }
  }
}
```

## Tools

| Tool | What it does |
|------|--------------|
| `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) |

## Example

At the start of a session, have your agent call `opencode_recall_context` with the file/task you're working on — it reloads what it knew. As you work, `opencode_store_memory` captures new decisions. Next session, it all comes back.

## Environment

| Var | Default | Notes |
|-----|---------|-------|
| `AINATIVE_API_KEY` | — | **Required.** Free at ainative.studio |
| `OPENCODE_MEMORY_NAMESPACE` | `opencode` | Isolate memories per project |
| `AINATIVE_API_URL` | `https://api.ainative.studio` | Override for self-host |

---

Built by [AINative Studio](https://ainative.studio/opencode?utm_source=npm&utm_medium=mcp&utm_campaign=opencode-memory) — the AI-native dev platform with 65+ models, one OpenAI-compatible endpoint, and persistent agent memory. MIT licensed.

What people ask about ainative-opencode-memory-mcp

What is AINative-Studio/ainative-opencode-memory-mcp?

+

AINative-Studio/ainative-opencode-memory-mcp is mcp servers for the Claude AI ecosystem. OpenCode memory MCP — persistent cross-session memory for OpenCode & MCP coding agents, powered by AINative ZeroDB. It has 0 GitHub stars and was last updated today.

How do I install ainative-opencode-memory-mcp?

+

You can install ainative-opencode-memory-mcp by cloning the repository (https://github.com/AINative-Studio/ainative-opencode-memory-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is AINative-Studio/ainative-opencode-memory-mcp safe to use?

+

AINative-Studio/ainative-opencode-memory-mcp has not been audited yet by our security agent. Review the original repository on GitHub before using it in production.

Who maintains AINative-Studio/ainative-opencode-memory-mcp?

+

AINative-Studio/ainative-opencode-memory-mcp is maintained by AINative-Studio. The last recorded GitHub activity is from today, with 0 open issues.

Are there alternatives to ainative-opencode-memory-mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy ainative-opencode-memory-mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: AINative-Studio/ainative-opencode-memory-mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/ainative-studio-ainative-opencode-memory-mcp)](https://claudewave.com/repo/ainative-studio-ainative-opencode-memory-mcp)
<a href="https://claudewave.com/repo/ainative-studio-ainative-opencode-memory-mcp"><img src="https://claudewave.com/api/badge/ainative-studio-ainative-opencode-memory-mcp" alt="Featured on ClaudeWave: AINative-Studio/ainative-opencode-memory-mcp" width="320" height="64" /></a>