Dgraph

by johnymontana

1 stars
342 downloads
Not rated
GitHub

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

- 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Dgraph
    Command (node, npx, python, etc.) npx
    Arguments
    • 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.

  4. 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.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.