A server that provides Memgraph database integration capabilities through MCP protocol, allowing query execution and schema information retrieval.
5 stars3 watching0 forks
Memgraph MCP Server
Run server
- 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 runningwhich uv
on MacOS/Linux orwhere 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)
Tools
run_query()
Run a Cypher query against Memgraph
Resources
get_schema()
Get Memgraph schema information (run SHOW SCHEMA INFO; query) -> prerequisite: --schema-info-enabled=true
.
Roadmap
We just started working on the Memgraph MCP Server. Our goal is to provide a wider set of tools in the near future.
Features
query
schema
database
Category
Databases