ContextMemory: MCP Server & 3D Visualizer 🧠
An ultra-lightweight, lightning-fast Model Context Protocol (MCP) Server and 3D Visualizer designed to act as a plug-and-play package. You can use this repository to instantly create your own custom MCP memory server for any project—simply by plugging in your own Neo4j Aura database credentials!
🌟 Features
- Plug-and-Play MCP Server: Instantly give your AI coding assistants (Antigravity, OpenCode, Claude Code, Cursor, etc.) a persistent, shared memory via
search_memory,add_memory, anddelete_memorytools. - Lazy-Loaded PyTorch: Instant server boot times (less than 4s). AI models only load into RAM when a memory operation is explicitly requested.
- Realtime 3D Visualizer: A sleek local web application that maps your project's memory as a glowing, interactive neural network.
- Neo4j Aura Ready: Directly offloads graph storage and vector queries to Neo4j Cloud, meaning it works on any machine without local database installation.
- 100% Secure: Credentials are kept entirely out of the code using
.envfiles, ensuring your database passwords are never leaked to GitHub!
🚀 Quick Start (Local Setup)
-
Clone the Repository
-
Configure your Database Credentials Rename the
.env.examplefile to.envand insert your Neo4j Cloud credentials: -
Launch the Visualizer!
- Windows: Double-click
run.bat - Mac/Linux: Run
./run.sh
This automatically sets up your Python virtual environment, installs the requirements, and opens the 3D visualizer at
http://localhost:8000. - Windows: Double-click
🤖 Connecting to your AI Agents (MCP Setup)
To give your AI coding agents access to this brain, configure them to use this repository as a local MCP server.
For Antigravity:
Add the following to your ~/.gemini/config/mcp_config.json:
(Mac/Linux users: change venv/Scripts/python.exe to venv/bin/python)
For OpenCode:
Add the following to your ~/.config/opencode/opencode.json:
🌐 Deploying to Vercel
If you want to host your 3D Visualizer permanently on the internet:
- Copy the contents of the
VercelVisualizerfolder into a new GitHub repository. - Go to Vercel.com and deploy that specific repository.
- In your Vercel Dashboard, add your
NEO4J_URI,NEO4J_USERNAME, andNEO4J_PASSWORDenvironment variables.
Built to make your AI tools smarter.