Graphiti MCP Server (Personality Knowledge Graph)
A private MCP server for querying a personality psychology knowledge graph, powered by Graphiti and Neo4j Aura.
Features
- Knowledge Graph: 16,000+ nodes covering personality psychology research, traits, types, frameworks, and assessments
- Semantic Search: Search facts and entities using natural language
- MCP Protocol: Compatible with Claude, Cursor, and other MCP clients
- Cloud Hosted: Runs on Railway with Neo4j Aura backend
Quick Start
For MCP Clients (Cursor, Claude Desktop)
Connect to the hosted server:
{
"mcpServers": {
"personality-knowledge": {
"url": "https://YOUR_RAILWAY_URL/mcp/"
}
}
}
Local Development
- Clone and install dependencies:
git clone https://github.com/YOUR_USERNAME/graphiti-mcp-server.git
cd graphiti-mcp-server
uv sync
- Set environment variables:
cp .env.example .env
# Edit .env with your credentials
- Run the server:
uv run main.py --config config/config-aura.yaml
Configuration
The server is configured via YAML files in config/:
config-aura.yaml- Production config for Neo4j Auraconfig-docker-neo4j.yaml- Local development with Docker Neo4j
Required Environment Variables
| Variable | Description |
|---|---|
NEO4J_URI | Neo4j Aura connection URI |
NEO4J_USER | Neo4j username (usually neo4j) |
NEO4J_PASSWORD | Neo4j password |
OPENAI_API_KEY | OpenAI API key for LLM/embeddings |
Available MCP Tools
search_nodes- Search for entity summaries by semantic similaritysearch_facts- Search for relationships/facts between entitiesget_entity_edge- Get details of a specific relationshipget_episodes- Get recent episodes for a groupadd_episode- Add new information to the knowledge graphget_status- Check server and database status
Deployment
Railway
- Create a new Railway project
- Connect this repository
- Set environment variables in Railway dashboard
- Deploy
The railway.toml and docker/Dockerfile.standalone are pre-configured for Railway deployment.
Knowledge Graph Contents
This instance contains indexed personality psychology textbooks covering:
- Personality Traits: Big Five, HEXACO, temperament dimensions
- Personality Types: MBTI, Enneagram, Socionics
- Frameworks: Theoretical models and assessment frameworks
- Researchers: Key figures in personality psychology
- Assessments: Psychological inventories (NEO-PI-R, HEXACO-PI-R, etc.)
License
This MCP server configuration is for private use. The underlying Graphiti framework is licensed under Apache 2.0.