Skip to main content
Glama
run-server.ps12.63 kB
# Simple script to run the Graphiti MCP Server Write-Host "Starting Graphiti MCP Server..." -ForegroundColor Cyan Write-Host "" # Check if .env exists if (-not (Test-Path .env)) { Write-Host "⚠️ .env file not found!" -ForegroundColor Yellow Write-Host "Creating .env from env.example..." -ForegroundColor Yellow Copy-Item env.example .env Write-Host "" Write-Host "Please edit .env and add:" -ForegroundColor Yellow Write-Host " - NEO4J_URI (e.g., neo4j+s://xxxxx.databases.neo4j.io for Aura)" -ForegroundColor Yellow Write-Host " - NEO4J_USER (usually 'neo4j')" -ForegroundColor Yellow Write-Host " - NEO4J_PASSWORD" -ForegroundColor Yellow Write-Host " - OPENROUTER_API_KEY" -ForegroundColor Yellow Write-Host "" Write-Host "Press any key to open .env file for editing..." -ForegroundColor Cyan $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") notepad .env Write-Host "" Write-Host "After saving .env, run this script again." -ForegroundColor Yellow exit } # Check if Neo4j settings are in .env $envContent = Get-Content .env -Raw if ($envContent -notmatch "NEO4J_URI") { Write-Host "⚠️ Neo4j connection details are missing in .env file!" -ForegroundColor Red Write-Host "" Write-Host "You need to add Neo4j connection details before running the server." -ForegroundColor Yellow Write-Host "" Write-Host "Quick setup:" -ForegroundColor Cyan Write-Host " 1. Get a free Neo4j Aura instance at: https://neo4j.com/cloud/aura/" -ForegroundColor White Write-Host " 2. Add these lines to your .env file:" -ForegroundColor White Write-Host " NEO4J_URI=neo4j+s://xxxxx.databases.neo4j.io" -ForegroundColor Gray Write-Host " NEO4J_USER=neo4j" -ForegroundColor Gray Write-Host " NEO4J_PASSWORD=your_password" -ForegroundColor Gray Write-Host "" Write-Host "Or run: .\setup-neo4j.ps1 for detailed instructions" -ForegroundColor Cyan Write-Host "" exit 1 } # Check if uv is available if (Get-Command uv -ErrorAction SilentlyContinue) { Write-Host "Using uv to run server..." -ForegroundColor Green Write-Host "" uv run graphiti_mcp_server.py --transport sse --port 8001 } elseif (Get-Command python -ErrorAction SilentlyContinue) { Write-Host "Using python to run server..." -ForegroundColor Green Write-Host "" python graphiti_mcp_server.py --transport sse --port 8001 } else { Write-Host "❌ Error: Neither 'uv' nor 'python' found in PATH" -ForegroundColor Red Write-Host "Please install Python 3.10+ or uv" -ForegroundColor Yellow exit 1 }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/apexneural-hansika/graphiti_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server