Dgraph
About
Connects language models to Dgraph graph databases, enabling DQL queries, mutations, and schema management for seamless database interactions without context switching.
Details
- Author
- johnymontana
- Repository
- johnymontana/dgraph-mcp-server
- GitHub stars
- 1
- Downloads
- 342
- Categories
- Design, Developer Tools, AI, Database, Frontend, Infrastructure, Other
- Tags
- #visualization
Jump to
- Execute DQL queries with optional variables.
- Perform RDF mutations with configurable commit behavior.
- Alter the Dgraph schema via schema definitions.
- Retrieve the current Dgraph schema as an MCP resource.
- Easy integration with any MCP‑compatible LLM framework.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
DgraphCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
go run main.go
The server uses standard input/output for communication with LLM applications.
dgraph_query
Execute a DQL query against Dgraph. Parameters: query (string, required), variables (object, optional)
dgraph_mutate
Execute a mutation against Dgraph. Parameters: mutation (string, required), commit (boolean, optional)
dgraph_alter_schema
Alter the Dgraph schema. Parameters: schema (string, required)
1. dgraph_query
Execute a DQL query against Dgraph.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"dgraph": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
Dgraph MCP Server
A Model Context Protocol (MCP) server implementation for Dgraph graph database, built using the mcp-go library.
Overview
This project implements an MCP server that allows LLM applications to interact with a Dgraph database. It provides tools for:
- Executing DQL queries
- Performing mutations
- Altering the schema
- Retrieving the current schema
Prerequisites
- Go 1.18 or higher
- Dgraph database (running locally or remotely)
Installation
1. Clone this repository
2. Install dependencies:
go mod download
Configuration
The server can be configured using environment variables:
- DGRAPH_HOST: Dgraph host address (default: localhost:9080)
Usage
Running the Server
go run main.go
The server uses standard input/output for communication with LLM applications.
Available Tools
1. dgraph_query
Execute a DQL query against Dgraph.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




