ainative-opencode-memory-mcp

MCP serverDocs & knowledge

This 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

  1. Save this item in Your setup as a reference.
  2. Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
  3. 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)

  1. Get a free API key → ainative.studio/signup (Hobbyist $5/mo, 7-day free trial).
  2. 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

ToolWhat it does
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)

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

VarDefaultNotes
AINATIVE_API_KEY—Required. Free at ainative.studio
OPENCODE_MEMORY_NAMESPACEopencodeIsolate memories per project
AINATIVE_API_URLhttps://api.ainative.studioOverride 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)

ToolWhat it does
opencode_store_memoryStore a fact, decision, convention, or code snippet so your OpenCode agent remembers it in future sessions.
opencode_search_memorySemantic search over everything the agent has remembered. Returns the most relevant memories for a query.
opencode_recall_contextPull 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_statsReport how many memories are stored for this OpenCode namespace.
opencode_clear_memoryDelete 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