Persistent cross-session memory for OpenCode and MCP coding agents, powered by ZeroDB.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Ainative Opencode Memory MCP.
opencode_store_memoryRemember a fact/decision/snippet (optional tags)
opencode_search_memorySemantic search over everything remembered
opencode_recall_contextReload relevant memories at the start of a task
opencode_memory_statsHow many memories are stored
opencode_clear_memoryWipe memories (optionally by tag)
Persistent memory for OpenCode agents. OpenCode is stateless β it forgets everything between sessions. This MCP server gives your OpenCode coding agent long-term memory powered by AINative ZeroDB: store a codebase's decisions, conventions, and gotchas once, and recall them in every future session.
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:
opencode.json / MCP settings):| 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) |
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.
| 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 β the AI-native dev platform with 65+ models, one OpenAI-compatible endpoint, and persistent agent memory. MIT licensed.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ainative-opencode-memory-mcp)<a href="https://allmcps.com/mcp/ainative-opencode-memory-mcp"><img src="https://allmcps.com/api/badge/ainative-opencode-memory-mcp?style=directory" alt="Ainative Opencode Memory MCP on AllMCPs" /></a>