A sophisticated Model Context Protocol (MCP) server that provides advanced knowledge management capabilities using Neo4j as the graph database backend. This implementation extends the official Neo4j MCP Server with specialized features for knowledge organization, gap analysis, and multi-source integration.
This implementation creates a comprehensive knowledge management system designed to work seamlessly with MCP-enabled AI assistants (Claude, Grok, Gemini, OpenAI, etc.). The system stores, organizes, and retrieves knowledge in a structured graph format, enabling powerful knowledge discovery and relationship analysis.
The core server interfaces with Neo4j to provide knowledge storage and retrieval capabilities to MCP clients like Claude Desktop.
A system that processes outputs from other MCP servers and structures them for storage in the Neo4j graph.
Advanced querying capabilities that combine Cypher queries with text matching and (future) vector similarity search.
- Rich Knowledge Schema: Store concepts, facts, sources, and their relationships in a structured graph
- Multi-source Integration: Combine knowledge from different AI assistants and sources
- Knowledge Gap Analysis: Identify missing connections and areas for research
- Path Finding: Discover relationships between concepts
- Interactive Exploration: Explore the knowledge graph from specific starting points
- Document Knowledge Integration: Extract and store knowledge from processed documents
- Node.js (v14+)
- Neo4j (v4.4+) or Neo4j AuraDB account
- Clone the repository:
git clone https://github.com/your-username/neo4j-knowledge-mcp.git
cd neo4j-knowledge-mcp- Install dependencies:
npm install- Configure the server by creating a
.envfile:
NEO4J_URI=neo4j+s://your-instance.databases.neo4j.io
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=your-password
- Set up the database schema:
npm run setup-db- Start the server:
npm startAdd this to your claude_desktop_config.json:
{
"mcpServers": {
"neo4j-knowledge": {
"command": "node",
"args": [
"/path/to/neo4j-knowledge-mcp/index.js"
],
"env": {
"NEO4J_URI": "neo4j+s://your-auradb-instance.databases.neo4j.io",
"NEO4J_USERNAME": "neo4j",
"NEO4J_PASSWORD": "your-auradb-password"
}
}
}
}store-knowledge with source="manual-entry", content="Cash value life insurance can be used as collateral for loans without triggering taxable events", contentType="fact", metadata={"confidence": 0.9, "domain": "financial-planning"}
process-mcp-output with mcpSource="grok-assistant", rawOutput="[Grok search results about infinite banking concept]", processingInstructions="Extract key concepts about infinite banking and cash flow strategies"
search-knowledge with query="tax advantages of permanent life insurance", searchType="hybrid", maxResults=10
explore-knowledge-graph with startConcept="Cash Value Life Insurance", maxDepth=3, visualize=true
find-knowledge-paths with conceptA="Infinite Banking", conceptB="Tax Planning", maxPathLength=4
analyze-knowledge-gaps with domain="Financial Planning", analysisType="missing-connections", threshold=0.8
- Concept: Fundamental ideas or entities
- Fact: Specific factual statements
- Source: Origin of knowledge
- Person: Individuals mentioned in knowledge
- Domain: Knowledge domains
- AIProcessing: Tracking which AI systems processed content
- IS_A, RELATED_TO, PART_OF, ENABLES, REQUIRES (Concept relationships)
- ABOUT, CONTRADICTS, SUPPORTS (Fact relationships)
- DERIVED_FROM, CITED_FROM, PROCESSED_BY (Source relationships)
- BELONGS_TO, SUBDOMAIN_OF (Domain relationships)
- PRECEDED_BY, SUPERSEDED_BY (Temporal relationships)
This implementation extends the official Neo4j MCP Server with additional capabilities:
- Enhanced Schema: More sophisticated node and relationship types
- Advanced Analysis Tools: Gap analysis, path finding, etc.
- Multi-source Integration: Process and integrate outputs from various MCP servers
- Vector Embeddings: Add semantic similarity search using OpenAI embeddings or similar
- Knowledge Versioning: Track how knowledge evolves over time
- Expert Validation: Add systems for expert review and validation of knowledge claims
- Visual Interface: Build a web interface for interactive knowledge exploration
- Advanced Analytics: Add graph algorithms for centrality analysis, community detection, etc.
- Real-time Sync: Automatically process and store knowledge as it's generated by other MCP servers
MIT
- Based on and extends the official Neo4j MCP server
- Utilizes the MCP SDK for communication with AI assistants