Get the FREE Ultimate OpenClaw Setup Guide →

memgraph

MCP server from mgorunuch/memgraph-mcp-server

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio mgorunuch-memgraph-mcp-server memgraph-mcp-server \
  --env MEMGRAPH_URI="bolt://localhost:7687 (default)" \
  --env MEMGRAPH_USER="Memgraph username (optional, defaults to none)" \
  --env MEMGRAPH_PASSWORD="Memgraph password (optional)"

How to use

This Memgraph MCP Server provides a bridge between Claude's MCP tooling and a Memgraph graph database. It exposes a standard MCP interface that Claude can connect to, enabling you to run Cypher queries against Memgraph, retrieve schema information, and generate JSON configuration for Claude integration. The server blocks potentially destructive queries by default, ensuring safer operation, and can be configured to connect to Memgraph via the Bolt protocol using the MEMGRAPH_URI, MEMGRAPH_USER, and MEMGRAPH_PASSWORD environment variables. Once running, you can generate an MCP JSON configuration for Claude with the --json flag, and then use Claude's MCP features to query the graph or inspect its schema through the provided run_query and get_schema tools.

How to install

Prerequisites:\n- Go 1.21 or higher (per the project requirements) or use Homebrew to install the binary.\n- Memgraph database accessible via Bolt protocol.\n\nInstallation steps (via Homebrew):\n1) Add the tap for the repository:\n brew tap mgorunuch/memgraph-mcp-server https://github.com/mgorunuch/memgraph-mcp-server\n2) Install the server:\n brew install mgorunuch/memgraph-mcp-server/memgraph-mcp-server\n\nInstallation steps (via Go source):\n1) Clone the repository:\n git clone https://github.com/mgorunuch/memgraph-mcp-server.git\n2) Build the server:\n cd memgraph-mcp-server\n go build\n\nConfiguration after installation:\n- Set Memgraph connection parameters via environment variables (optional): MEMGRAPH_URI, MEMGRAPH_USER, MEMGRAPH_PASSWORD. If not provided, defaults to bolt://localhost:7687 with no authentication.\n- Run the server:\n memgraph-mcp-server\n\nTo generate a Claude MCP configuration for integration, use:\n memgraph-mcp-server --json --connection-uri 'bolt://localhost:7687' --username 'username' --password 'password'\n

Additional notes

Notes and tips:\n- The server exposes a controlled set of MCP tools: run_query for executing Cypher queries against Memgraph, and get_schema for retrieving schema information.\n- By default, destructive operations (DELETE, REMOVE, DROP, CREATE, MERGE, SET) are blocked. To allow such operations, you must explicitly set unsafe: true when using the run_query tool.\n- Ensure Memgraph is reachable at the configured bolt URI and that any required credentials are supplied via MEMGRAPH_USER and MEMGRAPH_PASSWORD.\n- The --json option can be used to quickly produce a Claude-compatible MCP configuration JSON.\n- When using Claude, point its MCP configuration to the running memgraph-mcp-server instance.\n

Related MCP Servers

Sponsor this space

Reach thousands of developers