Mind Protocol MCP server and runtime for AI agents. Graph physics, traversal, structured dialogues.
# Clone and install
git clone https://github.com/mind-protocol/mind-mcp.git
cd mind-mcp
pip install -e .
# Initialize a project (defaults to FalkorDB)
mind initThis creates .mind/ with:
- Protocol docs (PRINCIPLES.md, FRAMEWORK.md)
- Agent definitions, skills, procedures
- Python runtime for physics, graph, traversal
- Database config (graph name defaults to repo name)
After mind init, projects can run mind locally without pip install:
PYTHONPATH=".mind:$PYTHONPATH" python3 my_script.py# my_script.py
from mind.physics.constants import DECAY_RATE
from mind.connectome import ConnectomeRunner
from mind.infrastructure.database.factory import get_database_adapter
adapter = get_database_adapter()mind init [--database falkordb|neo4j] # Initialize .mind/ with runtime
mind status # Show status and modules
mind upgrade # Check for updatesGraph name defaults to repo name (e.g., my-project → my_project).
mind init
# Start FalkorDB
docker run -p 6379:6379 falkordb/falkordbOverride graph name in .env:
FALKORDB_GRAPH=custom_namemind init --database neo4jConfigure in .env:
DATABASE_BACKEND=neo4j
NEO4J_URI=neo4j+s://xxx.databases.neo4j.io
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_password
NEO4J_DATABASE=neo4jSee .env.mind.example for all options.
Add to .mcp.json in your project:
{
"mcpServers": {
"mind": {
"command": "python3",
"args": ["-m", "mcp.server"],
"cwd": "/path/to/mind-mcp"
}
}
}| Tool | Description |
|---|---|
graph_query |
Semantic search across the graph |
membrane_start |
Start a structured dialogue |
membrane_continue |
Continue dialogue with answer |
membrane_list |
List available dialogues |
doctor_check |
Run health checks |
agent_list |
List work agents |
agent_spawn |
Spawn a work agent |
task_list |
List pending tasks |
.mind/
├── PRINCIPLES.md # How to work
├── FRAMEWORK.md # Navigation guide
├── config.yaml # Mind config
├── database_config.yaml # Database settings
├── agents/ # Agent postures
├── skills/ # Executable capabilities
├── procedures/ # Structured dialogues
├── state/ # SYNC files
└── mind/ # Python runtime
├── physics/ # Graph physics
├── graph/ # Graph operations
├── connectome/ # Dialogue runner
├── infrastructure/ # DB adapters
└── traversal/ # Traversal logic
- Python 3.10+
- Neo4j or FalkorDB
- Optional: OpenAI API key (for embeddings)
MIT