aixier/magic-garden-neo4j-server
If you are the rightful owner of magic-garden-neo4j-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Magic Garden Neo4j MCP Server is a specialized server designed to facilitate graph database operations for the Magic Garden AI children's education platform, leveraging the Model Context Protocol (MCP) for efficient data management.
Magic Garden Neo4j MCP Server
A Model Context Protocol (MCP) server for Neo4j graph database operations, designed for the Magic Garden AI children's education platform.
Features
Implemented Tools (26/64 - 40% Complete)
User Management (5 tools)
user_create
- Create new user accounts with password hashinguser_authenticate
- Authenticate users and generate tokensuser_profile_get
- Get user profiles with statisticsuser_update
- Update user informationuser_delete
- Delete users with cascade options
Record Management (5 tools)
record_create
- Create records with vector embeddingsrecord_update
- Update record propertiesrecord_search
- Multi-condition search with paginationrecord_similarity_search
- Vector similarity searchrecord_batch_operation
- Batch operations with transactions
Conversation Management (7 tools)
conversation_create
- Create new conversationsconversation_update
- Update conversation metadatamessage_create
- Add messages to conversationsmessage_update
- Update message contentconversation_history_get
- Retrieve conversation historyconversation_search
- Search conversations with filtersconversation_analysis
- Analyze conversation patterns
Installation
# Clone the repository
git clone https://github.com/yourusername/magic-garden-neo4j-server.git
cd magic-garden-neo4j-server
# Install dependencies
pip install -r requirements.txt
Configuration
Environment Variables
Create a .env
file with:
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=your-password
NEO4J_DATABASE=neo4j
LOG_LEVEL=INFO
Claude Desktop Configuration
Add to Claude Desktop settings:
{
"mcpServers": {
"magic-garden-neo4j": {
"command": "python",
"args": ["-m", "magic_garden_neo4j_server"],
"cwd": "/path/to/magic-garden-neo4j-server",
"env": {
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "your-password"
}
}
}
}
Cursor Configuration
For Cursor IDE integration, add to .cursor/mcp-settings.json
:
{
"servers": [
{
"name": "magic-garden-neo4j",
"command": "python",
"args": ["-m", "magic_garden_neo4j_server"],
"env": {
"NEO4J_URI": "bolt://localhost:7687",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "your-password"
}
}
]
}
Usage
Starting the Server
# Direct execution
python -m magic_garden_neo4j_server
# With environment variables
NEO4J_URI=bolt://localhost:7687 python -m magic_garden_neo4j_server
Example Tool Usage
Create a User
{
"tool": "user_create",
"arguments": {
"username": "alice",
"password": "secure123",
"nickname": "Alice",
"age": 8
}
}
Create a Record
{
"tool": "record_create",
"arguments": {
"user_id": "user_abc123",
"title": "My Drawing",
"image_url": "https://example.com/image.jpg",
"mood_color": "happy_yellow",
"embedding": [0.1, 0.2, 0.3, ...]
}
}
Start a Conversation
{
"tool": "conversation_create",
"arguments": {
"user_id": "user_abc123",
"title": "Story Time",
"conversation_type": "story"
}
}
Architecture
magic-garden-neo4j-server/
āāā src/
ā āāā __init__.py
ā āāā server.py # MCP server implementation
ā āāā neo4j_manager.py # Neo4j connection management
ā āāā tool_registry.py # Tool registration system
ā āāā tools/
ā ā āāā base.py # Base tool class
ā ā āāā user_tools.py # User management tools
ā ā āāā record_tools.py # Record management tools
ā ā āāā conversation_tools.py # Conversation tools
ā ā āāā ... # Other tool modules
ā āāā utils/
ā āāā errors.py # Error handling
ā āāā logger.py # Logging configuration
ā āāā validators.py # Input validation
āāā requirements.txt
āāā README.md
āāā .env.example
Development Status
Completed (40%)
- ā Core infrastructure (8 tasks)
- ā User management (5 tools)
- ā Record management (5 tools)
- ā Conversation management (7 tools)
In Progress (60%)
- š§ Intelligent analysis tools (7 tools)
- š§ Vector service tools (7 tools)
- š§ Report generation tools (7 tools)
- š§ Advanced query tools (7 tools)
- š§ Transaction management tools (7 tools)
License
MIT
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Support
For issues and questions, please open an issue on GitHub.