Memgraph MCP Server - includes a tool to run a query against Memgraph and a schema resource.
A streamlined, open-source implementation of the Model Context Protocol (MCP) designed to seamlessly bridge the gap between Memgraph and Large Language Models (LLMs). Empower your AI applications with the rich contextual understanding that only graph data can provide.
πΉ Watch the Quick Start Video: Memgraph MCP Server Quick Start
uv
: A fast and modern Python package installer. Follow the installation guide: uv
Installationuv venv .venv\Scripts\activate # Windows source .venv/bin/activate # macOS/Linux
uv add "mcp[cli]" httpx
uv run server.py
Install Claude for Desktop: Download from Claude.ai.
Modify the Claude Configuration: Add the Memgraph server details to the claude_desktop_config.json
file.
Locate the Configuration File:
~/Library/Application\ Support/Claude/claude_desktop_config.json
$env:AppData\Claude\claude_desktop_config.json
Example Configuration:
{ "mcpServers": { "mpc-memgraph": { "command": "/Users/katelatte/.local/bin/uv", "args": [ "--directory", "/Users/katelatte/projects/mcp-memgraph", "run", "server.py" ] } } }
Important Notes:
- Ensure you provide the absolute path to the
uv
executable in thecommand
field. Usewhich uv
(macOS/Linux) orwhere uv
(Windows) to find the correct path.- The
directory
argument should point to the location of yourserver.py
file.
docker run -p 7687:7687 memgraph/memgraph-mage --schema-info-enabled=True
The
--schema-info-enabled=True
flag is crucial. It allows the LLM to executeSHOW SCHEMA INFO
queries, providing valuable context about your graph database.
run_query()
get_schema()
--schema-info-enabled=True
flag.The Memgraph MCP Server is rapidly evolving. Our roadmap includes:
Our vision is to empower developers with a comprehensive, open-source toolkit that makes it effortless to build intelligent agents and graph-powered applications with Memgraph at the core.
π βοΈ Biomedical research server providing access to PubMed, ClinicalTrials.gov, and MyVariant.info.
π MCP server that provides SQL analysis, linting, and dialect conversion using [SQLGlot](https://github.com/tobymao/sqlglot)
π π All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Supabase MCP Server with support for SQL query execution and database exploration tools