Dgraph
Summary
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.
Available Actions(3)
dgraph_query
Execute a DQL query against Dgraph. Parameters: query (string, required): The DQL query to execute, variables (object, optional): Variables for the query.
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).
dgraph_alter_schema
Alter the Dgraph schema. Parameters: schema (string, required): The schema definition to apply.
社区评论
暂无评论. 成为第一个评论的人!
登录以参与讨论