Skip to main content
Glama
AINative-Studio

ainative-opencode-memory-mcp

Official

ainative-opencode-memory-mcp

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

Related MCP server: MCP Memory Server

Install

npm install -g ainative-opencode-memory-mcp

Setup (OpenCode)

  1. Get a free API keyainative.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

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.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Persistent memory for AI agents. Search, store, and recall across sessions.

  • Universal memory for AI agents and tools. Save, organize and search context anywhere.

  • Persistent memory for AI agents — verbatim conversations, searchable by meaning.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AINative-Studio/ainative-opencode-memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server