MCP Catalogs
Home

ogham-mcp

by ogham-mcp·104·Score 49

Ogham MCP is a persistent, searchable shared memory system for AI coding agents across clients.

ai-llmdeveloper-toolsknowledge-graph
19
Forks
3
Open issues
this month
Last commit
2d ago
Indexed

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:

you:Preserving code context and decisions across different AI coding sessions
you:Sharing knowledge between team members using different AI coding tools
you:Creating a persistent memory of troubleshooting solutions and architectural patterns
you:What databases does Ogham support?
you:How does Ogham ensure data privacy?

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 README
  • memory

    Store a fact or memory in the shared memory system

  • search

    Search for memories in the shared memory using hybrid semantic and keyword search

  • list

    List recent memories from the shared memory system

  • delete

    Delete a specific memory by its ID

  • use_profile

    Switch to a specific memory profile

  • profiles

    List available memory profiles and their memory counts

  • stats

    Show profile statistics and memory usage information

  • export

    Export memories to a file

  • import

    Import memories from a file

  • cleanup

    Remove expired memories from the shared memory system

  • hybrid_search

    Search across multiple memory profiles simultaneously

  • hooks_recall

    Load project context from memory hooks

Comparable tools

hindsight-mcpmem0zep-mcpobsidian-mcp

Installation

Installation

Quick Start with uvx (recommended)

uvx --from ogham-mcp ogham init

This runs a setup wizard that walks you through database setup and client configuration.

Manual Setup

  1. Set up a database (Supabase or Neon recommended)
  2. 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-...
  1. 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.