Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Dgraph Mcp Server

    A Model Context Protocol (MCP) server implementation for Dgraph graph database, built using the [mcp-go](https://github.com/mark3labs/mcp-go) library.

    3 stars
    Go
    Updated Sep 5, 2025

    Table of Contents

    • Overview
    • Prerequisites
    • Installation
    • Configuration
    • Usage
    • Running the Server
    • Available Tools
    • 1. dgraph_query
    • 2. dgraph_mutate
    • 3. dgraph_alter_schema
    • Available Resources
    • 1. dgraph://schema
    • Integration with LLM Applications
    • Example Queries
    • Basic Query
    • Adding Data
    • Schema Definition
    • License

    Table of Contents

    • Overview
    • Prerequisites
    • Installation
    • Configuration
    • Usage
    • Running the Server
    • Available Tools
    • 1. dgraph_query
    • 2. dgraph_mutate
    • 3. dgraph_alter_schema
    • Available Resources
    • 1. dgraph://schema
    • Integration with LLM Applications
    • Example Queries
    • Basic Query
    • Adding Data
    • Schema Definition
    • License

    Documentation

    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:

    bash
    go mod download

    Configuration

    The server can be configured using environment variables:

    • DGRAPH_HOST: Dgraph host address (default: localhost:9080)

    Usage

    Running the Server

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

    Parameters:

    • query (string, required): The DQL query to execute
    • variables (object, optional): Variables for the query

    Example:

    json
    {
      "tool": "dgraph_query",
      "params": {
        "query": "{ me(func: has(name)) { name } }"
      }
    }

    2. dgraph_mutate

    Execute a mutation against Dgraph.

    Parameters:

    • mutation (string, required): The RDF mutation to execute
    • commit (boolean, optional): Whether to commit the transaction (default: true)

    Example:

    json
    {
      "tool": "dgraph_mutate",
      "params": {
        "mutation": "_:person  \"John Doe\" .",
        "commit": true
      }
    }

    3. dgraph_alter_schema

    Alter the Dgraph schema.

    Parameters:

    • schema (string, required): The schema definition to apply

    Example:

    json
    {
      "tool": "dgraph_alter_schema",
      "params": {
        "schema": "name: string @index(exact) ."
      }
    }

    Available Resources

    1. dgraph://schema

    Returns the current Dgraph schema.

    Integration with LLM Applications

    This server can be integrated with any LLM application that supports the Model Context Protocol (MCP). The server communicates via standard input/output, making it easy to integrate with various LLM frameworks.

    Example Queries

    Basic Query

    code
    {
      people(func: has(name)) {
        name
        age
        friends {
          name
        }
      }
    }

    Adding Data

    code
    _:alice  "Alice" .
    _:alice  "30" .
    _:bob  "Bob" .
    _:bob  "32" .
    _:alice  _:bob .

    Schema Definition

    code
    name: string @index(exact) .
    age: int .
    friend: [uid] .

    License

    MIT

    Similar MCP

    Based on tags & features

    • MC

      Mcpjungle

      Go·
      617
    • AN

      Anyquery

      Go·
      1.4k
    • YU

      Yutu

      Go·
      317
    • MC

      Mcp Cyclops

      Go·
      29

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • MC

      Mcpjungle

      Go·
      617
    • AN

      Anyquery

      Go·
      1.4k
    • YU

      Yutu

      Go·
      317
    • MC

      Mcp Cyclops

      Go·
      29

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k