- Install
uv
and createvenv
withuv venv
. Activate virtual environment with.venv\Scripts\activate
. - Install dependencies:
uv add "mcp[cli]" httpx
- Run Memgraph MCP server:
uv run server.py
. - Install Claude for Desktop.
- Add the Memgraph server to Claude config:
MacOS/Linux
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows
code $env:AppData\Claude\claude_desktop_config.json
Example config:
{
"mcpServers": {
"mpc-memgraph": {
"command": "/Users/katelatte/.local/bin/uv",
"args": [
"--directory",
"/Users/katelatte/projects/mcp-memgraph",
"run",
"server.py"
]
}
}
}
Note
You may need to put the full path to the uv executable in the command field. You can get this by running which uv
on MacOS/Linux or where uv
on Windows. Make sure you pass in the absolute path to your server.
- Open Claude Desktop and see the Memgraph tool listed. Try it out! (Have data loaded in Memgraph)
Run a Cypher query against Memgraph
Get Memgraph schema information (run SHOW SCHEMA INFO; query) -> prerequisite: --schema-info-enabled=true
.