Ainative Opencode Memory MCP server
{
"mcpServers": {
"ainative-studio-ainative-opencode-memory": {
"command": "npx",
"args": [
"-y",
"ainative-opencode-memory-mcp@latest"
],
"env": {
"AINATIVE_API_KEY": "<ainative_api_key>",
"AINATIVE_API_URL": "https://..."
}
}
}
}{
"mcpServers": {
"ainative-studio-ainative-opencode-memory": {
"command": "npx",
"args": [
"-y",
"ainative-opencode-memory-mcp@latest"
],
"env": {
"AINATIVE_API_KEY": "<ainative_api_key>",
"AINATIVE_API_URL": "https://..."
}
}
}
}{
"mcpServers": {
"ainative-studio-ainative-opencode-memory": {
"command": "npx",
"args": [
"-y",
"ainative-opencode-memory-mcp@latest"
],
"env": {
"AINATIVE_API_KEY": "<ainative_api_key>",
"AINATIVE_API_URL": "https://..."
}
}
}
}{
"servers": {
"ainative-studio-ainative-opencode-memory": {
"command": "npx",
"args": [
"-y",
"ainative-opencode-memory-mcp@latest"
],
"env": {
"AINATIVE_API_KEY": "${input:ainative_api_key}",
"AINATIVE_API_URL": "${input:ainative_api_url}"
}
}
},
"inputs": [
{
"id": "ainative_api_key",
"type": "promptString",
"description": "Ainative api key",
"password": true
},
{
"id": "ainative_api_url",
"type": "promptString",
"description": "Ainative api url",
"password": true
}
]
}{
"mcpServers": {
"ainative-studio-ainative-opencode-memory": {
"command": "npx",
"args": [
"-y",
"ainative-opencode-memory-mcp@latest"
],
"env": {
"AINATIVE_API_KEY": "<ainative_api_key>",
"AINATIVE_API_URL": "https://..."
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y ainative-opencode-memory-mcpversion 0.1.2
What it does
This MCP server provides persistent memory for OpenCode agents across sessions using ZeroDB. It stores and retrieves architectural decisions, code conventions, and project-specific rules so agents can recall context between restarts.
- Store architectural decisions and design patterns once, then have agents recall them in subsequent sessions without re-learning.
- Capture naming conventions, code style rules, and project gotchas so agents apply consistent patterns across tasks.
- Retrieve relevant project context at the start of a coding task using semantic search over stored memories.
Tools this server exposes
| Tool | Does |
|---|---|
| opencode_store_memory | Store a fact, decision, or code snippet with optional tags for later recall. |
| opencode_search_memory | Semantically search over all stored memories. |
| opencode_recall_context | Retrieve relevant memories at the start of a task based on the file or task being worked on. |
| opencode_memory_stats | Get a count of how many memories are currently stored. |
| opencode_clear_memory | Delete stored memories, optionally filtered by tag. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.