Persistent cross-session memory for OpenCode and MCP coding agents, powered by ZeroDB.
MCPpedia last refreshed this data
io.github.AINative-Studio/ainative-opencode-memory-mcp is an MCP server that persistent cross-session memory for OpenCode and MCP coding agents, powered by ZeroDB. Its tool list has not been published yet over stdio, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"ainative-memory": {
"env": {
"AINATIVE_API_KEY": "your-key-here"
},
"args": [
"-y",
"ainative-opencode-memory-mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
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.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'ainative-opencode-memory-mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked ainative-opencode-memory-mcp against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 60-95% fewer tokens, same answers. Library, proxy, MCP server.
Transport for TMCP using STDIO
The graph based agentic IDE
Buddhist canon tools: search, passages, cross-canon parallels, dictionaries — all URN-cited.
MCP Security Weekly
Get CVE alerts and security updates for io.github.AINative-Studio/ainative-opencode-memory-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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:
npm install -g ainative-opencode-memory-mcp
opencode.json / MCP settings):{
"mcpServers": {
"ainative-memory": {
"command": "npx",
"args": ["-y", "ainative-opencode-memory-mcp"],
"env": { "AINATIVE_API_KEY": "your-key-here" }
}
}
}
| 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.