Neo4j knowledge graph retrieval MCP server
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mcp-knowledge-graph","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Neo4j Knowledge Graph MCP Server MCP server for enterprise knowledge graph retrieval over Neo4j. Client LLM generates Cypher; this server provides schema resources, validation, and read-only execution. > 中文详细说明请参阅:[docs/知识图谱检索MCP服务说明.md](docs/知识图谱检索MCP服务说明.md) ## Architecture - **10 Resources**: 7 static (schema, constraints, conventions, semantics, glossary, patterns, safety) + 3 dynamic (stats, samples, indexes) - **7 Tools**: `get_graph_context`, `get_cypher_prompt`, `validate_cypher`, `execute_cypher`, `explain_cypher`, `resolve_entity`, `refresh_graph_stats` - **4 Prompts**: `generate_cypher_query`, `refine_cypher_query`, `explain_query_result`, `decompose_complex_question` Context Tools (`get_graph_context_tool`, `get_cypher_prompt_tool`) provide the same schema context as Resources/Prompts for **Tools-only** MCP clients that do not support `resources/read` or `prompts/get`. ## Setup ```bash python3 -m venv .venv source .venv/bin/activate pip install mcp neo4j pyyaml pydantic pydantic-settings ``` Environment variables: | Variable | Default | Description | |----------|---------|-------------| | `NEO4J_URI` | `bolt://localhost:7687` | Neo4j Bolt URI | | `NEO4J_USER` | `neo4j` | Neo4j user | | `NEO4J_PASSWORD` | `password` | Neo4j password | | `NEO4J_DATABASE` | `neo4j` | Neo4j database | | `MCP_TRANSPORT` | `stdio` | `stdio` \| `streamable-http` \| `sse` | | `MCP_HOST` | `127.0.0.1` | HTTP/SSE bind host | | `MCP_PORT` | `8000` | HTTP/SSE bind port | | `MCP_SSE_PATH` | `/sse` | SSE endpoint path | | `MCP_STREAMABLE_HTTP_PATH` | `/mcp` | Streamable HTTP endpoint path | Copy `.env.example` to `.env` and adjust as needed. ## Import graph data From ontology_system: ```bash curl -o graph-import.cypher http://localhost:8183/graph/export/cypher cypher-shell -u neo4j -p password -f graph-import.cypher ``` ## Run MCP server ### stdio(默认,Cursor 子进程模式) ```bash PYTHONPATH=. python -m src.server ``` ### streamable-http(推荐 HTTP 模式) ```bash PYTHONPATH=. py…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.