.vscode — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited .vscode (MCP Server) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
<div align="center">
The Long-Term Memory Layer for AI Coding Agents
Give your AI Assistant a brain that persists context, learns from past mistakes, and understands your project's goals.
Quick Start • Features • Installation • Configuration • License
</div>
MCP-KG-Memory is a production-grade Model Context Protocol (MCP) Server designed to solve the "context amnesia" problem in AI coding assistants (Cursor, Windsurf, VS Code, Antigravity).
Instead of starting from zero every session, this system maintains a persistent Knowledge Graph of your project. It acts as an active memory layer that tracks:
Real-time visualization of the Knowledge Graph memory structure.
Knowledge Graph Visualization
kg_autopilot)Every time you start a task, the agent consults the memory. It automatically retrieves:
Don't just grep strings. The system traverses the graph (k-hops) to find connected context. "I'm working on Auth" → Retrieval includes User model, JWT utility, and the relevant security constraints defined 2 weeks ago.
The system isn't static. It learns:
You can install kg-mcp globally using pipx (recommended) or in a local virtual environment.
# Install the package
pipx install kg-mcp
# Run the interactive Setup Wizard
kg-mcp-setupThe wizard will:
.env file.<details> <summary>❓ Don't have <code>pipx</code>? Click here to install it</summary>
macOS:
brew install pipx
pipx ensurepathWindows:
winget install pipx
pipx ensurepathLinux (Debian/Ubuntu):
sudo apt install pipx
pipx ensurepathRestart your terminal after installing pipx.
</details>
#### Alternative: Standard Pip
If you prefer not to use pipx:
pip install kg-mcp
kg-mcp-setup# Clone the repository
git clone https://github.com/Hexecu/mcp-neuralmemory.git
cd mcp-neuralmemory
# Set up environment
cp .env.example .env
# (Edit .env with your credentials)
# Install dependencies
cd server
pip install -e .
# Start Neo4j
docker compose up -d
# Initialize Schema
python -m kg_mcp.kg.apply_schemaTo use this memory server with your AI Editor, add the following configuration to your MCP config file.
Before configuring your editor, run the verification script to ensure everything is Green:
python3 verify_setup.py#### VS Code / Cursor / Windsurf Add this to your mcp_config.json (or mcp.json):
{
"mcpServers": {
"kg-memory": {
"command": "/path/to/your/venv/bin/python",
"args": [
"-m",
"kg_mcp",
"--transport",
"stdio"
],
"env": {
"NEO4J_URI": "bolt://127.0.0.1:7687",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"GEMINI_API_KEY": "YOUR_GOOGLE_AI_STUDIO_KEY",
"LLM_MODE": "gemini_direct",
"KG_MCP_TOKEN": "your-secure-token",
"LOG_LEVEL": "INFO"
}
}
}
}> Note: Replace paths and passwords with your actual values.
#### Antigravity IDE ⭐ (Recommended)
Antigravity is the IDE this project is primarily developed for. Add to ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"kg-memory": {
"command": "/path/to/venv/bin/python",
"args": ["-m", "kg_mcp", "--transport", "stdio"],
"env": {
"NEO4J_URI": "bolt://127.0.0.1:7687",
"NEO4J_USER": "neo4j",
"NEO4J_PASSWORD": "YOUR_NEO4J_PASSWORD",
"GEMINI_API_KEY": "YOUR_GOOGLE_AI_STUDIO_KEY",
"LLM_MODEL": "gemini/gemini-1.5-flash",
"KG_MCP_TOKEN": "your-secure-token"
}
}
}
}Setup Steps in Antigravity:
kg-memory with 2 toolsTo make your Agent usage seamless, add this System Prompt / Rule to your IDE (e.g. in Antigravity or .cursorrules):
"Always use kg-memory every user interaction, This means you should automatically use the kg-memory tools to find relevant context information and track every file change"
kg_autopilot)When you begin a new feature or fix, simply ask your agent:
"I want to implement the new Login flow. Check memory for context."
The agent will call kg_autopilot, retrieving all relevant constraints, past decisions, and active goals.
kg_track_changes)(Automatic if Agent is configured) When files are modified, the system links the code changes to the active goals, updating the Knowledge Graph with the implementation details.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
<div align="center"> Made with ❤️ for the Future of Coding </div>
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.