# HippoMCP

> HippoMCP is an open-source MCP server for knowledge and memory. Local-first long-term memory for agents, with Chinese support and session continuity. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/cstksniper/hippocampus-mcp
- **MCP Registry name:** io.github.cstksniper/hippocampus-mcp
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

HippoMCP keeps original input in a raw layer (L0), extracts deduplicated facts and entity links from it, and retrieves with hybrid semantic and BM25 search, then trims results with fusion and MMR into five budgeted context slots. Its core ingestion path needs no LLM API, and the host agent does the reasoning. The README is explicit that it is a single-machine, local-first service, not cloud sync, and not an agent-to-agent or knowledge-graph reasoning tool.

Session handling is a focus. A session start tool builds a bootstrap of pinned facts, open todos, recent sessions and unfinished topics, and session end saves intents and summaries so the next session does not start blank. Memories carry active, superseded or archived states with source tracing, and deletion cascades into summaries, profiles and indexes, with tombstones to stop facts coming back.

Chinese is handled natively: on a Chinese system it selects a BGE embedding model (other systems get MiniLM), segments Chinese sentences, and handles Chinese bigrams in lexical search. It is meant to sit beside AGENTS.md and MEMORY.md rather than replace them. Install with pip install hippocampus-mcp on Python 3.11+.

## Features

- **Layered memory:** Stores raw input, extracts deduplicated facts and links entities.
- **Hybrid retrieval:** Combines semantic and BM25 search with fusion and MMR.
- **Session bootstrap:** Starts sessions with pinned facts, open todos and unfinished topics.
- **Safe forgetting:** Cascade-safe deletion with preview-first forget by query and tombstones.
- **Native Chinese support:** Chinese segmentation, bigram search and BGE embeddings.
- **Scoped libraries:** Separate project and user memory shared across connected agents.

## Good for

- Carry unfinished work across agent sessions
- Search large document sets without rereading them each time
- Share project memory between several agents on one machine
- Correct or remove wrong facts without leaving copies behind
- Keep Chinese-language project knowledge searchable

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add hippocampus-mcp -- uvx hippocampus-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add hippocampus-mcp -- uvx hippocampus-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.hippocampus-mcp]
command = "uvx"
args = ["hippocampus-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user hippocampus-mcp uvx -- hippocampus-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "hippocampus-mcp": {
      "command": "uvx",
      "args": [
        "hippocampus-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 7 tools changes data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `ingest`: Stores original input and extracts deduplicated facts.
- `get_memory_context` (name suggests: reads): Assembles relevant context within budgeted slots.
- `session_start` (name suggests: changes): Builds a task-oriented bootstrap for a new session.
- `session_end`: Saves intents, summaries and open topics.
- `forget_memory`: Deletes a memory with cascade into derived data.
- `forget_by_query` (name suggests: reads): Previews and removes memories matching a query.
- `library_whoami`: Reports which library the client is bound to.

## FAQ

### Does HippoMCP need an LLM API?

Not for its core ingestion path, according to the README; the host agent does the reasoning.

### Is HippoMCP a cloud service?

No. It is a single-machine, local-first service and does not offer managed cloud sync.

### Does HippoMCP replace AGENTS.md or MEMORY.md?

No. The README says it complements them, adding deep searchable memory.

### What Python version is required?

Python 3.11 or newer.

### Which hosts does setup support?

The README's setup lists workbuddy, zcode, trae and claude.

### Is HippoMCP free?

Yes. HippoMCP is open source, so you can use and self-host it for free.

### How do I add HippoMCP to Claude Code?

Run this command in your terminal: claude mcp add hippocampus-mcp -- uvx hippocampus-mcp

### What are the best alternatives to HippoMCP?

The closest alternatives to HippoMCP are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/hippomcp
