Knowledge Graph Builder MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Knowledge Graph Builder MCP Serveringest 'report.pdf' and build knowledge graph"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Knowledge Graph Builder
Documents (.pdf/.docx/.txt/.md) or raw text -> entities/relationships (via LLM) -> Neo4j. Architecture inspired by Graphiti: episode-based ingestion, Pydantic entity/edge models, pluggable LLM provider.
Setup
docker compose up -d neo4j # Neo4j at bolt://localhost:7687, browser at :7474
cp .env.example .env # fill in ANTHROPIC_API_KEY or OPENAI_API_KEY, set LLM_PROVIDER
pip install -e ".[dev]"Related MCP server: Knowledge Graph Builder
Usage
kg ingest path/to/document.pdf # input option 1: CLI
kg serve-mcp # input option 2: MCP server (ingest_document, ingest_text,
# search_entities, get_episode tools)Logs
Every pipeline run writes one JSON line per phase to logs/pipeline.jsonl, tagged with run_id
and episode_id:
tail -f logs/pipeline.jsonl | jq
grep '"run_id":"<id>"' logs/pipeline.jsonl | jqExtending
New entity type: subclass
BaseNodeinsrc/kg/models/entities.py, add it toENTITY_TYPES.New document format: add a
_load_x(path) -> strfunction insrc/kg/ingestion/loaders.pyand register its extension inLOADERS.New LLM provider: subclass
LLMClientinsrc/kg/llm/, add a branch inget_llm_client()(src/kg/llm/base.py) and matching config insrc/kg/config.py.
Tests
pytest # model/chunker/extraction-schema tests need no external services
# test_writer.py needs `docker compose up -d neo4j` and skips otherwiseKnown v1 limitations (documented, not hidden)
Entity resolution is exact
(name, entity_type)match only — no fuzzy/embedding dedupe yet (src/kg/graph/resolver.py).Search is Cypher
CONTAINS, not vector/hybrid search.Single graph backend (Neo4j) — no multi-backend abstraction since nothing else was requested.
This server cannot be deployed
Maintenance
Related MCP Connectors
Ingest, manage, and retrieve documents for RAG-powered AI applications
Knowledge graph ingestion, entity search, ontology analysis, and CoSync scoring.
Company brain for AI agents — temporal knowledge graph search, exploration, and durable memory.
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables storage and retrieval of knowledge in a graph database format, allowing users to create, update, search, and delete entities and relationships in a Neo4j-powered knowledge graph through natural language.5-
- FlicenseNot gradedqualityDmaintenanceTransforms text or web content into structured knowledge graphs using local AI models with MCP integration for persistent storage in Neo4j and Qdrant.4-
- AlicenseBqualityCmaintenanceEnables storing and querying memories in a Neo4j knowledge graph with automatic entity extraction. Supports adding episodes, searching entities and relationships, and managing graph data through natural language.8MIT
- FlicenseNot gradedqualityCmaintenanceEnables building and querying knowledge graphs by ingesting documents into Neo4j using Gemini for entity extraction, and exposes MCP tools for graph health, document ingestion, and knowledge base querying.-