https://github.com/memgraph/mcp-memgraph
Memgraph MCP Server
https://github.com/memgraph/mcp-memgraph
Last synced: 3 months ago
JSON representation
Memgraph MCP Server
- Host: GitHub
- URL: https://github.com/memgraph/mcp-memgraph
- Owner: memgraph
- License: mit
- Created: 2025-03-10T15:34:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-05-16T09:21:08.000Z (5 months ago)
- Last Synced: 2025-05-16T10:31:37.392Z (5 months ago)
- Language: Python
- Size: 87.9 KB
- Stars: 13
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - mcp-memgraph - Memgraph MCP Server includes tools to run queries and access schema resources on Memgraph, making it relevant for MCP-based graph database integration. ([Read more](/details/mcp-memgraph.md)) `mcp` `database` `graph-database` `memgraph` (Database & Messaging MCP Servers)
- awesome-mcp-zh - memgraph/mcp-memgraph - 包括对 Memgraph 执行查询和模式资源的工具。 | 官方实现 (Memgraph) 🎖️, Python 开发 🐍, 本地运行 🏠, Memgraph 集成。 | (MCP 服务器精选列表 / 🗄️ 数据库交互)
- awesome-mcp-servers - **mcp-memgraph** - Memgraph MCP Server (Python-based) `python` `mcp` `server` `pip install git+https://github.com/memgraph/mcp-memgraph` (AI/ML)
- awesome-mcp-servers - **mcp-memgraph** - Memgraph MCP Server (Python-based) (actively maintained) `python` `mcp` `server` `pip install git+https://github.com/memgraph/mcp-memgraph` (AI/ML)
- Awesome-Official-MCP-Servers - Memgraph - memgraph?style=social) | Query your data in [Memgraph](https://memgraph.com/) graph database. | | (官方 MCP 服务器列表)
- awesome-mcp-servers - Memgraph Claude Connector - Connects Memgraph to Claude AI, enabling Cypher query execution and schema retrieval (Table of Contents / AI Services)
- awesome-mcp-servers - Memgraph Claude Connector - Connects Memgraph to Claude AI, enabling Cypher query execution and schema retrieval (Table of Contents / AI Services)
- Awesome-Official-MCP-Servers - Memgraph - memgraph?style=social) | Query your data in [Memgraph](https://memgraph.com/) graph database. | | (官方 MCP 服务器列表)
README
> [!IMPORTANT]
> **This repository has been merged into the [Memgraph AI Toolkit](https://github.com/memgraph/ai-toolkit) monorepo to avoid duplicating tools.
> It will be deleted in one month—please follow the [MCP integration](https://github.com/memgraph/ai-toolkit/tree/main/integrations/mcp-memgraph) there for all future development, and feel free to open issues or PRs in that repo.**# 🚀 Memgraph MCP Server
Memgraph MCP Server is a lightweight server implementation of the Model Context Protocol (MCP) designed to connect Memgraph with LLMs.

## ⚡ Quick start
> 📹 [Memgraph MCP Server Quick Start video](https://www.youtube.com/watch?v=0Tjw5QWj_qY)
### 1. Run Memgraph MCP Server
1. Install [`uv`](https://docs.astral.sh/uv/getting-started/installation/) and create `venv` with `uv venv`. Activate virtual environment with `.venv\Scripts\activate`.
2. Install dependencies: `uv add "mcp[cli]" httpx`
3. Run Memgraph MCP server: `uv run server.py`.### 2. Run MCP Client
1. Install [Claude for Desktop](https://claude.ai/download).
2. 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.### 3. Chat with the database
1. Run Memgraph MAGE:
```
docker run -p 7687:7687 memgraph/memgraph-mage --schema-info-enabled=True
```
The `--schema-info-enabled` configuration setting is set to `True` to allow LLM to run `SHOW SCHEMA INFO` query.
2. Open Claude Desktop and see the Memgraph tools and resources listed. Try it out! (You can load dummy data from [Memgraph Lab](https://memgraph.com/docs/data-visualization) Datasets)## 🔧Tools
### run_query()
Run a Cypher query against Memgraph.## 🗃️ Resources
### get_schema()
Get Memgraph schema information (prerequisite: `--schema-info-enabled=True`).## 🗺️ 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. In the near future, we'll be releasing a TypeScript version of the server to better support JavaScript-based environments. Additionally, we plan to migrate this project into our central [AI Toolkit](https://github.com/memgraph/ai-toolkit) repository, where it will live alongside other tools and integrations for LangChain, LlamaIndex, and MCP. Our goal is to provide a unified, open-source toolkit that makes it seamless to build graph-powered applications and intelligent agents with Memgraph at the core.