Memory MCP Server (Go)
About
A Model Context Protocol server that provides knowledge graph management capabilities.
Details
- Author
- okooo5km
- GitHub stars
- 93
- Downloads
- 582
- Categories
- Knowledge Base
Jump to
- SQLite backend with WAL mode for concurrent access
- FTS5 full-text search with BM25 ranking and synonym expansion
- Graph traversal returning 1-hop related entities
- Entity management: merge, update, and conflict detection
- Observation metadata tracking source, confidence, and tags
- Flexible transport with stdio, SSE, and Streamable HTTP
Install via Homebrew, quick install script, pre-built binaries, or build from source. Run the mms command with options for transport (stdio, sse, http), memory file path, port, host, and authentication. Configure MCP clients like Claude Desktop or Cursor by specifying the command and environment variables.
Memory MCP Server (Go)
> A Model Context Protocol server that provides knowledge graph management capabilities. This server enables LLMs to create, read, update, and delete entities and relations in a persistent knowledge graph, helping AI assistants maintain memory across conversations. This is a Go implementation of the official TypeScript Memory MCP Server.
Features
High-Performance Storage: SQLite backend with WAL mode, read/write connection separation for concurrent access
Knowledge Graph Management: Persistent graph of entities, relationships, and observations
Advanced Search: FTS5 full-text search with BM25 ranking, synonym expansion, and time-decay scoring
Graph Traversal: Search results include 1-hop related entities for richer context
Entity Management: Merge duplicate entities, update types, modify observations, detect conflicts
Observation Metadata: Track source, confidence, and tags for each observation
MCP Resources & Prompts: AI clients can passively load graph summaries and use guided memory workflows
Flexible Transport: Supports stdio, SSE, and Streamable HTTP with optional Bearer or OAuth 2.1 authentication
Seamless Migration: Automatic upgrade from JSONL to SQLite with zero intervention
Cross-Platform: Pure Go SQLite (no CGO required), works on Linux, macOS, and Windows
Available Tools
Core CRUD
| Tool | Description |
|------|-------------|
| create_entities | Create new entities with name, type, and observations |
| create_relations | Create relations between entities (active voice) |
| add_observations | Add observations to existing entities |
| delete_entities | Delete entities and their associated relations |
| delete_relations | Delete specific relations |
| delete_observations | Delete specific observations from entities |
Query
| Tool | Description |
|------|-------------|
| search_nodes | Search entities by keyword with FTS5, synonym expansion, and graph traversal. Returns lightweight results with snippets and related entities |
| open_nodes | Get full details of specific entities by exact name |
| read_graph | Get graph overview (summary mode) or full export (full mode) |
Entity Management
| Tool | Description |
|------|-------------|
| merge_entities | Merge two entities: migrate observations and relations from source to target, then delete source |
| update_entities | Change an entity's type |
| update_observations | Replace an observation's content |
| detect_conflicts | Find potential duplicates and contradictions within an entity's observations |
MCP Resources
| URI | Description |
|-----|-------------|
| memory://graph/summary | Graph statistics and entity type distribution |
| memory://graph/recent | Recently accessed entities |
| memory://graph/types | All entity and relation type enumerations |
| memory://entities/{name} | Full details of a specific entity |
MCP Prompts
| Prompt | Description |
|--------|-------------|
| memory-recall | Recall relevant memories by topic |
| memory-save | Analyze conversation text and suggest what to save |
| memory-review | Generate a comprehensive review of an entity's memories |
Installation
Homebrew (macOS/Linux)
brew install okooo5km/tap/mms
Quick Install Script (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/okooo5km/memory-mcp-server-go/main/scripts/install.sh | bash
Options: -v v0.2.3 for a specific version, -d /usr/local/bin for a custom directory.
Pre-built Binaries
Download from GitHub Releases. Available for macOS (arm64/amd64), Linux (arm64/amd64), and Windows (arm64/amd64).
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


