# MegaMemory (MCP server)

> MegaMemory is an MCP server that adds search and knowledge tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Persistent project knowledge graph for coding agents. It has 712 GitHub stars, is released under the MIT license and runs locally with npx -y megamemory.

Persistent project knowledge graph for coding agents. An MCP server that lets your coding agent build and query a graph of concepts, architecture, and decisions — so it remembers across sessions.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/0xK3vin/MegaMemory |
| GitHub stars | 712 |
| License | MIT |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: megamemory |
| Remote URL | none |
| Needs API key | no |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | AI & search |
| Latest release | v1.6.2 (May 3, 2026) |
| Last commit | May 3, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "megamemory": {
      "command": "npx",
      "args": [
        "-y",
        "megamemory"
      ]
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --transport stdio megamemory -- npx -y megamemory
```

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

```json
{
  "mcpServers": {
    "megamemory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "megamemory"
      ]
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "megamemory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "megamemory"
      ]
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Tools

- `understand`: Semantic search over the knowledge graph. Returns matched concepts with children, edges, and parent context.
- `get_concept`: Look up a concept by its exact ID. Returns full context including children, edges, incoming edges, and parent.
- `create_concept`: Add a new concept with optional edges and file references.
- `update_concept`: Update fields on an existing concept. Regenerates embeddings automatically.
- `link`: Create a typed relationship between two concepts.
- `remove_concept`: Soft-delete a concept with a reason. History preserved.
- `list_roots`: List all top-level concepts with direct children.
- `list_conflicts`: List unresolved merge conflicts grouped by merge group.
- `resolve_conflict`: Resolve a merge conflict by providing verified, correct content based on the current codebase.

## Similar MCP servers

- [Context7](https://appsgit.com/mcp-servers/context7): Up-to-date code docs for any prompt. (62,752 stars, MIT, needs API key)
- [FunASR](https://appsgit.com/mcp-servers/funasr): Transcribe local audio with FunASR and SenseVoice using private, on-device inference. (20,596 stars, MIT)
- [Bifrost](https://appsgit.com/mcp-servers/bifrost): Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS. (8,591 stars, Apache-2.0)
- [Honcho](https://appsgit.com/mcp-servers/honcho): Memory that reasons: continual learning for stateful agents. (7,494 stars, AGPL-3.0, needs API key)
- [Semble](https://appsgit.com/mcp-servers/semble): Fast and Accurate Code Search for Agents. (6,185 stars, MIT)
- [Exa](https://appsgit.com/mcp-servers/exa): Connect AI agents to Exa for web search, content fetching, and multi-step research. (5,088 stars, MIT, official)

---

Canonical page: https://appsgit.com/mcp-servers/megamemory
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
