Sign inSign up

memgraph/mcp-memgraph

By memgraph

Updated 2 days ago

MCP server for connecting LLMs and AI agents to the Memgraph graph database

Image
Machine learning & AI
0

4.5K

memgraph/mcp-memgraph repository overview

Memgraph MCP Server

A lightweight Model Context Protocol (MCP) server that connects LLMs and AI agents to Memgraph graph database.

Quick Start

# Start Memgraph
docker run -d -p 7687:7687 memgraph/memgraph-mage:latest

# Start MCP server (HTTP mode)
docker run --rm -p 8000:8000 memgraph/mcp-memgraph:latest

The server is available at http://localhost:8000/mcp/.

Available Tools

ToolDescription
run_queryExecute Cypher queries (read-only by default)
get_schemaFetch graph schema
get_page_rankCompute PageRank scores
get_betweenness_centralityCompute betweenness centrality
get_node_neighborhoodFind nodes within distance
search_node_vectorsVector similarity search
get_configurationFetch Memgraph configuration
get_index / get_constraintRetrieve index and constraint info
get_storageStorage usage metrics
get_triggersList database triggers
get_proceduresList available procedures

Configuration

VariableDefaultDescription
MEMGRAPH_URLbolt://host.docker.internal:7687Memgraph Bolt URL
MEMGRAPH_USERmemgraphAuthentication username
MEMGRAPH_PASSWORD(empty)Authentication password
MCP_TRANSPORTstreamable-httpTransport: streamable-http or stdio
MCP_READ_ONLYtrueBlock write operations
MCP_SERVERserverServer mode: server or memgraph-experimental

Usage with MCP Clients

VS Code / Cursor:

{ "servers": { "mcp-memgraph": { "url": "http://localhost:8000/mcp/" } } }

Stdio mode (Claude Desktop, etc.):

docker run --rm -i -e MCP_TRANSPORT=stdio memgraph/mcp-memgraph:latest

Tag summary

Content type

Image

Digest

sha256:80353fa1c

Size

124.8 MB

Last updated

2 days ago

docker pull memgraph/mcp-memgraph