MCP.so
登录

Dgraph MCP Server

@johnymontana

基本信息

分类

其他

传输方式

stdio

作者

johnymontana

关于 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.

Dgraph MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Dgraph MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Dgraph MCP Server?

A Model Context Protocol (MCP) server that enables LLM applications to interact with a Dgraph graph database. It provides tools for executing DQL queries, performing mutations, altering the schema, and retrieving the current schema. Built using the mcp-go library and intended for developers using Dgraph with LLMs.

How to use Dgraph MCP Server?

  1. Clone the repository and install dependencies with go mod download.
  2. Set the DGRAPH_HOST environment variable (default: localhost:9080).
  3. Run the server with go run main.go. The server uses standard input/output for communication with LLM applications.

Key features of Dgraph MCP Server

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

Use cases of Dgraph MCP Server

  • Querying a Dgraph graph database from an LLM application.
  • Adding new nodes and relationships via mutations.
  • Updating or extending the Dgraph schema on the fly.
  • Exploring the current schema for context before generating queries.
  • Automating graph database operations through natural language prompts.

常见问题

1

What is the Model Context Protocol (MCP)?

MCP is a standard that allows LLM applications to communicate with external tools and data sources. This server implements an MCP interface for Dgraph.

2

What are the prerequisites to run the server?

Go 1.18 or higher and a running Dgraph database (local or remote) are required.

3

Where does the Dgraph data live?

Data lives in the Dgraph database instance configured via the `DGRAPH_HOST` environment variable. The server itself does not store any data.

4

How does the server communicate with LLM applications?

It uses standard input/output (stdio) as the transport, making it compatible with any LLM framework that supports MCP over stdio.

5

How do I configure the Dgraph connection?

Set the `DGRAPH_HOST` environment variable to the gRPC address of your Dgraph instance (default: `localhost:9080`).

评论

其他 分类下的更多 MCP 服务器