ogham-mcp
by ogham-mcp·★ 104·Score 49
Ogham MCP is a persistent, searchable shared memory system for AI coding agents across clients.
Overview
Ogham MCP provides a persistent memory layer for AI coding agents that works across different clients like Claude Code, OpenCode, and Cursor. It solves the problem of AI agents forgetting context between sessions by implementing a searchable shared memory with 97.2% retrieval accuracy. The system supports hybrid search combining semantic and keyword matching, multiple profiles for different contexts, and can export to Obsidian format. It's built with Python and uses PostgreSQL with vector embeddings for storage and retrieval.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Ogham when you need persistent, cross-client memory for AI coding agents and already use or are willing to set up PostgreSQL/Supabase infrastructure.
When NOT to choose this
Don't choose Ogham if you need a fully self-contained solution without external database dependencies, or if you prefer simpler tools with less configuration overhead.
Tools this server exposes
12 tools extracted from the READMEmemoryStore a fact or memory in the shared memory system
searchSearch for memories in the shared memory using hybrid semantic and keyword search
listList recent memories from the shared memory system
deleteDelete a specific memory by its ID
use_profileSwitch to a specific memory profile
profilesList available memory profiles and their memory counts
statsShow profile statistics and memory usage information
exportExport memories to a file
importImport memories from a file
cleanupRemove expired memories from the shared memory system
hybrid_searchSearch across multiple memory profiles simultaneously
hooks_recallLoad project context from memory hooks
Comparable tools
Installation
Installation
Quick Start with uvx (recommended)
uvx --from ogham-mcp ogham initThis runs a setup wizard that walks you through database setup and client configuration.
Manual Setup
- Set up a database (Supabase or Neon recommended)
- Configure environment variables:
export SUPABASE_URL=https://your-project.supabase.co
export SUPABASE_KEY=your-service-role-key
export EMBEDDING_PROVIDER=openai
export OPENAI_API_KEY=sk-...- Add to your MCP client:
**Claude Code:**
claude mcp add ogham -- uvx ogham-mcp**OpenCode:** Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"ogham": {
"type": "local",
"command": ["uvx", "ogham-mcp"],
"environment": {
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_KEY": "{env:SUPABASE_KEY}",
"EMBEDDING_PROVIDER": "openai",
"OPENAI_API_KEY": "{env:OPENAI_API_KEY}"
}
}
}
}FAQ
- What databases does Ogham support?
- Ogham supports Supabase (default), Neon, and self-hosted PostgreSQL databases.
- How does Ogham ensure data privacy?
- Ogham stores data in your own database. You control the connection credentials and data never leaves your infrastructure unless you use external embedding providers like OpenAI.
Compare ogham-mcp with
Last updated · Auto-generated from public README + GitHub signals.