Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

MCP Clients

Use DKG knowledge from the agent client you already work in. MCP exposes node tools so the agent can query relationships, inspect sources, and contribute knowledge through the normal sharing and publication lifecycle.

Use an installed MCP-aware client such as Cursor, Claude Code, Claude Desktop, Windsurf, VS Code with Copilot, Cline, or Codex CLI. DKG supplies tools over MCP stdio; the client supplies the model and conversation.

npm install -g @origintrail-official/dkg
dkg mcp setup --network testnet

Setup initializes a fresh node, starts it, and offers to register DKG in detected clients. Restart the chosen client. Existing nodes keep their network. Use dkg mcp setup --dry-run to inspect changes first.

On Windows, Claude Desktop may keep its config in %APPDATA%\Claude or %LOCALAPPDATA%\Claude-Data\claude_<id>. Setup detects both, choosing the most recently modified existing config when multiple profiles remain. Uninstall checks all supported profiles for older DKG registrations. Check the displayed destination with --dry-run; the existing app preferences and other MCP entries are preserved. If detection misses your installation, open Settings → Developer → Edit Config in Claude Desktop and paste the entry from dkg mcp setup --print-only, then fully quit and restart the client.

Verify

  1. Run dkg status in the terminal.

  2. Inspect the client's DKG tool list. Ask it to call the discovered status and Context Graph listing tools.

  3. Complete the quickstart, including retrieval in a new conversation.

If the client cannot find tools, confirm that setup detected the intended installation, restart it, and inspect its MCP logs. A source checkout and a globally installed CLI use different setup modes and homes; see the package reference.

Remove the connection

dkg mcp uninstall --dry-run
dkg mcp uninstall

Removal disconnects clients; it does not delete graph data. For a single client, use the documented --client selector in the CLI reference.

Last updated

Was this helpful?