ainative-opencode-memory-mcp
MCP serverDocs & knowledgeThis integration gives your OpenCode coding agent a memory that carries over between sessions. It can store decisions, conventions, facts, and code snippets, then bring the relevant ones back when you start new work, so you spend less time re-explaining your project.
Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.
Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.
What your AI can do with it
- Store facts, decisions, conventions, and code snippets so the agent remembers them in future sessions
- Search everything the agent has remembered and get the most relevant matches for a query
- Reload the most relevant remembered context at the start of a coding task
- Check how many memories are currently stored
- Delete stored memories, either everything at once or just those with a specific tag
Getting started
- Save this item in Your setup as a reference.
- Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
- Check this page for availability before trying to install it through Ahel.
From the project's README
As published by ainative-studio/ainative-opencode-memory-mcp in README.md.
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.
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
npm install -g ainative-opencode-memory-mcp
Setup (OpenCode)
- Get a free API key → ainative.studio/signup (Hobbyist $5/mo, 7-day free trial).
- Add to your OpenCode MCP config (
opencode.json/ MCP settings):
{
"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 — the AI-native dev platform with 65+ models, one OpenAI-compatible endpoint, and persistent agent memory. MIT licensed.
Tools it gives your AI (5)
| Tool | What it does |
|---|---|
| opencode_store_memory | Store a fact, decision, convention, or code snippet so your OpenCode agent remembers it in future sessions. |
| opencode_search_memory | Semantic search over everything the agent has remembered. Returns the most relevant memories for a query. |
| opencode_recall_context | Pull the most relevant remembered context for the current coding task — call this at the START of a session to reload what the agent knew. |
| opencode_memory_stats | Report how many memories are stored for this OpenCode namespace. |
| opencode_clear_memory | Delete stored memories. Optionally scope to a tag; with no tag, clears ALL memories in the namespace (destructive). |
Signals
- Last commit
- Aug 2026
- Weekly downloads
- 49
- Weekly_downloads
- 39 weekly_downloads
- Tools captured
- 5
Advanced
- Delivery
- ainative-opencode-memory-mcp MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-ainative-studio-ainative-opencode-memory-mcp- Source
- github.com/ainative-studio/ainative-opencode-memory-mcp
github.com/ainative-studio/ainative-opencode-memory-mcp
More in Docs & knowledge
MCP server · dat999zx
More in Docs & knowledgeagent-native-slides
MCP server · builderio
More in Docs & knowledgemcp-memory-server
MCP server · mnemoverse
More in Docs & knowledgedatasinking
MCP server · heubme2020
More in Docs & knowledgespoken
MCP server · spokenmd
More in Docs & knowledgeemailmd
MCP server · anypost
More in Docs & knowledge