mcp

package
v25.0.0-split-vector3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

README

Dgraph MCP (Master Control Protocol)

Project Overview

This is a Dgraph-based Master Control Protocol (MCP) designed to provide advanced graph database management and querying capabilities. There are two ways you can access the mcp server:

  1. Using the dgraph alpha's http endpoint
  2. Using the go code

Key Components

  • Dgraph schema management
  • Advanced data querying
  • Flexible graph database interactions

Setup Instructions for dgraph alpha

  • Install dgraph alpha
  • Start dgraph alpha

For Read only:

{
  "dgraph-mcp-ro": {
    "serverUrl": "http://localhost:8080/mcp-ro/sse"
  }
}

For Read write:

{
  "dgraph-mcp": {
    "serverUrl": "http://localhost:8080/mcp/sse"
  }
}

Setup Instructions for go code

  • Install dgraph binary
  • Insert the following to your mcp config:
{
  "mcpServers": {
    "dgraph": {
      "command": "dgraph_binary",
      "args": ["mcp", "-c", "dgraph://localhost:9080"]
    }
  }
}
  • Modify the server details using args in dgraph mcp command
Local Setup for Claude Desktop

You can setup a local experience using Claude app

Install Claude.app from https://claude.ai/download.

On Mac OS the configurations files are in ~/Library/Application\ Support/Claude. Create ~/Library/Application\ Support/Claude/claude_desktop_config.json file and set the content with mcp config shown above.

Close the Claude app and reopen it.

Check that the tools are listed in Claude desktop (Click on the tools icon).

You are ready to chat and get things done in Dgraph from Claude.

Troubleshooting

  • Check Dgraph connection settings
  • Verify Go module dependencies
  • Review error logs carefully

Documentation

Index

Constants

This section is empty.

Variables

View Source
var False = false
View Source
var (
	Mcp x.SubCommand
)
View Source
var True = true

Functions

func NewMCPServer

func NewMCPServer(connectionString string, readOnly bool) (*server.MCPServer, error)

NewMCPServer initializes and returns a new MCPServer instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL