Dgraph MCP Server provides a bridge between language models and Dgraph graph databases, enabling AI assistants to execute DQL queries, perform mutations, and manage database schemas. Built in Go using the mcp-go library, it exposes specialized tools for database operations and includes a resource endpoint for retrieving schema information. The implementation features a Docker-based deployment option with a complete Dgraph environment and includes example code for both simple database operations and a more complex movie database application. Ideal for developers who want to leverage AI assistants for graph database interactions without switching context to separate database tools.
No reviews yet. Be the first to review!
Sign in to join the conversation
Execute a DQL query against Dgraph. Parameters: query (string, required) - The DQL query to execute; variables (object, optional) - Variables for the query.
Execute a mutation against Dgraph. Parameters: mutation (string, required) - The RDF mutation to execute; commit (boolean, optional) - Whether to commit the transaction (default: true).
Alter the Dgraph schema. Parameters: schema (string, required) - The schema definition to apply.