knowledge_graph_brain
MCP-native knowledge graph orchestrator that unifies data silos with GraphRAG, dynamic connectors, and local AI.
claude mcp add --transport stdio ryandmonk-knowledge_graph_brain node ./dist/index.js \ --env PORT="8080" \ --env NEO4J_URI="bolt://localhost:7687" \ --env NEO4J_USER="neo4j" \ --env NEO4J_PASSWORD="password"
How to use
Knowledge Graph Brain exposes its capabilities as MCP tools and REST/OpenAPI endpoints to build, query, and manage a hybrid graph-and-embedding knowledge store. The MCP surface includes tools for knowledge access (ask_knowledge_graph, search_semantic, explore_relationships), lifecycle management (list_knowledge_bases, add_data_source, start_ingestion), and schema exploration (explore_schema, find_patterns, get_overview). You can interact with these tools via MCP clients or expose them through REST/OpenAPI for integration with apps like Open WebUI, Claude Desktop, or VS Code MCP extensions. To get started, run the MCP server, register your data sources and schemas, ingest data, and then query the graph with natural-language or structured prompts. The included web UI and OpenAPI docs help you explore capabilities and test tool calls during development. For local experimentation, you can build the MCP server and run it with mcpo, then access the generated docs at the provided endpoint.
How to install
-
Prerequisites:
- Node.js and npm installed on your machine
- Neo4j database running (default bolt://localhost:7687 with user neo4j/password or your configured credentials)
- Git available to clone the repository
-
Installation steps:
-
Clone the repository git clone https://github.com/ryandmonk/knowledge_graph_brain.git cd knowledge_graph_brain
-
Install dependencies npm install
-
Build/prepare the MCP server package
From the repository root, build the MCP server (examples show in the docs)
cd mcp-server && npm run build
-
Run the MCP server via mcpo (example)
From the repo root after building, or adjust paths as needed
../.venv/bin/mcpo --port 8080 -- node ./dist/index.js
-
Open the API/docs endpoint to verify REST/OpenAPI surface open http://localhost:8080/docs
-
-
Notes:
- If you use a custom Neo4j setup, set NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD in the environment or in the config file.
- The project includes a setup wizard and UI for local exploration; ensure you have the orchestrator UI scripts running if you want the local UI features.
Additional notes
Tips and gotchas:
- The MCP surface exposes both tool calls and REST/OpenAPI endpoints; you can mix MCP tool invocations with standard HTTP requests for testing and integration.
- Ensure Neo4j is up before starting ingestion or queries that rely on the graph data.
- When debugging, use the provided UI features to inspect ingestion status, schema configurations, and service visibility (Neo4j, connectors).
- The Quick Start workflow demonstrates cloning, installing, starting services, and ingesting data; adapt the commands to your environment if you host services differently.
- Environment variables can be used to customize endpoints and credentials; document them in your deployment config for reproducibility.
Related MCP Servers
Context-Engineering-for-Multi-Agent-Systems
Save thousands of lines of code by building universal, domain-agnostic Multi-Agent Systems (MAS) through high-level semantic orchestration. This repository provides a production-ready blueprint for the Agentic Era, allowing you to replace rigid, hard-coded workflows with a dynamic transparent Context Engine that provides 100% transparency.
ummon
The semantic layer for software engineering: Connect code to meaning, build on understanding
omega-memory
Persistent memory for AI coding agents
context-harness
Local-first context ingestion and retrieval for AI tools. SQLite + embeddings + MCP server for Cursor & Claude.
mem0 -selfhosted
Self-hosted mem0 MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama while using Claude as the main LLM.
mcp-chain-of-draft-prompt-tool
MCP prompt tool applying Chain-of-Draft (CoD) reasoning - BYOLLM