1. Conduid
  2. Developer Tools
  3. Dgraph MCP Server
MCP server · Developer Tools

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.

Unclaimed last commit a year ago devtools
41Fair

Scored 4 months ago · breakdown

About Dgraph MCP Server

Dgraph MCP Server is an MCP server published by johnymontana in the Developer Tools category: a Model Context Protocol (MCP) server implementation for Dgraph graph database, built using the [mcp-go](https://github.com/mark3labs/mcp-go) library. It has been installed 0 times through Conduid.

The repository has 3 stars and 2 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx dgraph-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Dgraph MCP Server

Powered by Claude · Grounded in docs

I know everything about Dgraph MCP Server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

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.

Parameters:

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

Example:

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

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

3. dgraph_alter_schema

Alter the Dgraph schema.

Parameters:

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

Example:

{
  "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

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

Adding Data

_:alice <name> "Alice" .
_:alice <age> "30" .
_:bob <name> "Bob" .
_:bob <age> "32" .
_:alice <friend> _:bob .

Schema Definition

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

License

MIT

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Dgraph MCP Server

How do I install Dgraph MCP Server?

Run npx dgraph-mcp-server, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Dgraph MCP Server safe to use with an AI agent?

Its trust score is 41 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Dgraph MCP Server still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.