MCP integration and utilities for Memgraph MCP server
Project description
🚀 Memgraph MCP Server
Memgraph MCP Server is a lightweight server implementation of the Model Context Protocol (MCP) designed to connect Memgraph with LLMs.
Run Memgraph MCP server
- Install
uv - Install Claude for Desktop.
- Add the Memgraph server to Claude config
You can do it in the UI, by opening your Claude desktop app navigate to Settings, under the Developer section, click on Edit Config and add the
following content:
{
"mcpServers": {
"mpc-memgraph": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-memgraph",
"--python",
"3.13",
"mcp-memgraph"
]
}
}
}
Or you can open the config file in your favorite text editor. The location of the config file depends on your operating system:
MacOS/Linux
~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows
%APPDATA%/Claude/claude_desktop_config.json
[!NOTE]
You may need to put the full path to the uv executable in the command field. You can get this by runningwhich uvon MacOS/Linux orwhere uvon Windows. Make sure you pass in the absolute path to your server.
Chat with the database
- Run Memgraph MAGE:
Thedocker run -p 7687:7687 memgraph/memgraph-mage --schema-info-enabled=True--schema-info-enabledconfiguration setting is set toTrueto allow LLM to runSHOW SCHEMA INFOquery. - Open Claude Desktop and see the Memgraph tools and resources listed. Try it out! (You can load dummy data from Memgraph Lab Datasets)
🔧Tools
The Memgraph MCP Server exposes the following tools over MCP. Each tool runs a Memgraph‐toolbox operation and returns a list of records (dictionaries).
run_query(query: str)
Run any arbitrary Cypher query against the connected Memgraph database.
Parameters:
query: A valid Cypher query string.
get_configuration()
Fetch the current Memgraph configuration settings.
Equivalent to running SHOW CONFIGURATION.
get_index()
Retrieve information about existing indexes.
Equivalent to running SHOW INDEX INFO.
get_constraint()
Retrieve information about existing constraints.
Equivalent to running SHOW CONSTRAINT INFO.
get_schema()
Fetch the graph schema (labels, relationships, property keys).
Equivalent to running SHOW SCHEMA INFO.
get_storage()
Retrieve storage usage metrics for nodes, relationships, and properties.
Equivalent to running SHOW STORAGE INFO.
get_triggers()
List all database triggers.
Equivalent to running SHOW TRIGGERS.
get_betweenness_centrality()
Compute betweenness centrality on the entire graph.
Uses BetweennessCentralityTool under the hood.
get_page_rank()
Compute PageRank scores for all nodes.
Uses PageRankTool under the hood.
🗺️ Roadmap
The Memgraph MCP Server is just at its beginnings. We're actively working on expanding its capabilities and making it even easier to integrate Memgraph into modern AI workflows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_memgraph-0.1.2.tar.gz.
File metadata
- Download URL: mcp_memgraph-0.1.2.tar.gz
- Upload date:
- Size: 89.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c49529915968ee3c9b31f9038b424685d6cc779ab9a2603059d9945cadcd84b4
|
|
| MD5 |
aca2c8660c37ee7cb6a4cf41b83ea39b
|
|
| BLAKE2b-256 |
861394f79042cf6462a745daca2755fa06ecb621b3cdfb91578672598bd825fc
|
File details
Details for the file mcp_memgraph-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_memgraph-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c293ae1f29a1c12d7dc9ceaddee498804f27a03dcb38a6e0fd1e838a6a05e8d8
|
|
| MD5 |
762c6b00510b7576393e7e4d9de22d28
|
|
| BLAKE2b-256 |
a86ee55d3b624aca4f88ac468d7f8ba28bb6c9739120d71b399d78992c156537
|