Geniro Graphiti MCP
A Model Context Protocol server that provides Claude CLI with a Graphiti knowledge-graph memory backed by Neo4j, featuring synchronous writes and no silent ingestion failures.
README
Geniro Graphiti MCP
A clean-room Model Context Protocol server that gives the Claude CLI a Graphiti knowledge-graph memory, backed by Neo4j.
It embeds graphiti-core in-process and writes synchronously: add_memory
awaits the actual graph write and returns the real result. There is no background
queue, so an ingestion failure is reported to you immediately instead of being
silently dropped while the tool reports success — the bug that affects the
upstream server and its forks.
Why this exists
The upstream Graphiti MCP server enqueues each episode on an in-memory
asyncio.Queue and returns success right away. If processing fails, the error is
only logged; if the process restarts, the whole queue is lost. You get "success"
and an empty graph. This rewrite removes the queue entirely:
- Synchronous awaited writes — errors propagate to the caller.
- Two-model config done right — a main LLM and an embedder are both required and validated; a misconfigured embedder fails loudly instead of silently returning no search results.
- A real test suite — unit tests prove the no-silent-drop guarantee; testcontainers integration tests run against a real Neo4j.
Requirements
- Python 3.11+
- A running Neo4j 5.26+ (use the bundled
docker-compose.yml) - An LLM provider key (OpenAI by default) and a reachable embedder
uv(recommended) orpip/pipx- Docker (only for the integration tests / bundled Neo4j)
Quick start
# 1. Start Neo4j
docker compose up -d
# 2. Configure
cp .env.example .env
# edit .env: set OPENAI_API_KEY, and point the embedder at a real embedding model
# 3. Install
uv sync # or: pip install .
# 4. Run (stdio)
uv run graphiti-mcp # or just: graphiti-mcp
Register with the Claude CLI
claude mcp add graphiti-mcp -- graphiti-mcp
If you installed into a virtualenv, point Claude at the resolved binary, e.g.:
claude mcp add graphiti-mcp -- uv run --directory /path/to/geniro-graphiti-mcp graphiti-mcp
Then, from Claude: call add_memory, then search_memory_facts, and confirm the
fact comes back; get_status reports Neo4j connectivity and the resolved providers.
Configuration
All configuration is via environment variables (or .env). See
.env.example for the full list. Highlights:
| Variable | Default | Notes |
|---|---|---|
NEO4J_URI |
bolt://localhost:7687 |
Bolt endpoint |
NEO4J_USER / NEO4J_PASSWORD |
neo4j / demodemo |
Match docker-compose.yml |
LLM_PROVIDER |
openai |
openai | anthropic | openai_generic |
LLM_MODEL |
gpt-5.5 |
Extraction model |
LLM_BASE_URL |
— | Required for openai_generic (LiteLLM/Ollama/vLLM) |
EMBEDDER_PROVIDER |
ollama |
openai | ollama | voyage | openai_generic |
EMBEDDER_MODEL |
qwen3-embedding:8b |
Must be an embedding model |
EMBEDDER_DIM |
4096 |
Must match the model's output dimension |
EMBEDDER_BASE_URL |
http://localhost:11434/v1 |
Ollama default |
GRAPHITI_GROUP_ID |
main |
Optional memory namespace |
Provider notes
- Two models are always needed. An LLM extracts entities/relationships; an embedder vectorizes them for search. Configuring only an LLM yields empty search results.
- OpenAI-compatible endpoints (LiteLLM, Ollama, vLLM, OpenRouter) must use
LLM_PROVIDER=openai_generic. This uses graphiti-core'sOpenAIGenericClientsoLLM_BASE_URLis honoured — the nativeOpenAIClientignoresbase_url(graphiti issue #1116) and would silently hit api.openai.com. - Anthropic / Voyage need optional extras:
uv pip install '.[anthropic]'or'.[voyage]'. - Embedding model, not chat model.
qwen3-embedding:8bis an embedding model;qwen3:8bis a chat model and will break search.EMBEDDER_DIMmust match.
Tools
| Tool | Purpose |
|---|---|
add_memory |
Ingest an episode (synchronous, awaited). |
add_triplet |
Add an explicit (source)-[edge]->(target) fact. |
search_memory_facts |
Search relationships (facts). |
search_nodes |
Search entity nodes. |
get_episodes |
List recent episodes. |
get_episode_entities |
Entities extracted from an episode. |
get_entity_edge |
Fetch one edge by UUID. |
delete_entity_edge |
Delete an edge by UUID. |
delete_episode |
Delete an episode by UUID. |
build_communities |
(Re)build community clusters. |
summarize_saga |
Summarize a thread of episodes. |
clear_graph |
Delete all data for one group (destructive, group-scoped). |
get_status |
Neo4j connectivity + resolved providers. |
Testing
# Unit tests (mocked graphiti-core — no Neo4j needed)
uv run pytest tests/unit -q
# Integration tests (spins a real Neo4j via testcontainers; needs Docker + an
# embedder/LLM the container can reach)
uv run pytest -m integration -q
# Everything
uv run pytest -q
The unit suite includes the core guarantee: when a write fails, add_memory
returns an error synchronously — never a false success.
Architecture
Claude CLI ──stdio──> graphiti-mcp (FastMCP)
│
├─ config.py env/.env settings
├─ providers.py LLM + embedder factories
├─ engine.py Graphiti(Neo4jDriver, llm, embedder)
├─ tools/ the 13 MCP tools (await writes)
└─ models.py pydantic responses
│
└─ graphiti-core ──Bolt──> Neo4j
The engine is embedded directly (architecture A) — no separate Graphiti REST service, no network hop, no async-202 durability bug.
License
Apache-2.0.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。