Skip to main content

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.

mcp-server

⚡ Quick start

📹 Memgraph MCP Server Quick Start video

1. Run Memgraph MCP Server

  1. Install uv 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.
  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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_memgraph-0.1.0.tar.gz (87.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_memgraph-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file mcp_memgraph-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_memgraph-0.1.0.tar.gz
  • Upload date:
  • Size: 87.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for mcp_memgraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f552a10a501f5ffbf1a3034187cdf57419a9dd6d90602fbdc74dcd39ac103a38
MD5 cdc14c545e9ba5efef3c2d494cad838f
BLAKE2b-256 afcd9e9c336cce3b1c91db477c481bb1d6fde582a4e028da7ba56680fb5a432f

See more details on using hashes here.

File details

Details for the file mcp_memgraph-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_memgraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd87607428c3ee5466e08460ea7c0bf3f3e7e0b6840feeba4111b62be2036ef4
MD5 f9cb605a55fbbf0f06e240ab70960b4f
BLAKE2b-256 b693302cd7bdfd5a0208a6be2e972a750c3ee3051666b9db39ff70eaae5b78d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page