Skip to main content

Overview

Dograh exposes an MCP (Model Context Protocol) server that lets AI assistants like Codex, Claude Code, Claude Desktop, and Cursor access your workspace and documentation. Once connected, an assistant can list your agents, fetch agent definitions, and search Dograh docs on your behalf.

Prerequisites

  • A Dograh API key. Generate one at /api-keys (or http://localhost:3010/api-keys for self-hosted). See API Keys.
  • Your Dograh MCP endpoint:
    • Hosted: https://app.dograh.com/api/v1/mcp/
    • Self-hosted: <YOUR_BACKEND_URL>/api/v1/mcp/
The endpoint is also shown in Platform Settings โ†’ MCP Server inside the Dograh UI.
If you deployed Dograh to a remote server using setup_remote.sh, your endpoint is served with a self-signed SSL certificate. Claude Code will refuse MCP connections to it unless you start the CLI with TLS verification disabled:
This is only required for self-signed certificates. If you have set up a custom domain with Letโ€™s Encrypt certificates via Certbot, no extra flag is needed.

Claude Code

Register Dograh as an MCP server with the Claude Code CLI:
Replace YOUR_API_KEY with the key you generated. For self-hosted deployments, swap the URL for your backend. Verify the server is connected:

Codex

Open Codexโ€™s config file (~/.codex/config.toml) and add a dograh MCP server:
Replace YOUR_API_KEY with the key you generated. For self-hosted deployments, replace the URL with your backend MCP endpoint. If you prefer to keep the API key out of config.toml, store it in an environment variable instead:
Then set the API key before starting Codex:
Verify the server is registered:

Claude Desktop

Open Claude Desktopโ€™s config file (claude_desktop_config.json) and add the dograh entry under mcpServers:
Restart Claude Desktop after saving. The Dograh tools should appear in the tool picker.

Cursor and other MCP clients

Any MCP client that supports Streamable HTTP transport can connect with the same URL and header. Paste the configuration above into your clientโ€™s MCP settings file and replace YOUR_API_KEY.

Example prompts

Once the MCP server is connected, you can drive Dograh from your coding agent in plain English. A few prompts to try: Explore your workspace
  • โ€œList my agents in Dograh.โ€
  • โ€œShow me the definition of the agent called Lead Qualifier.โ€
  • โ€œWhich credentials and tools are configured in my Dograh workspace?โ€
  • โ€œList the recordings from my most recent agent.โ€
Edit an agent
  • โ€œIn my Lead Qualifier agent, add a new agent node after the greeting that asks the caller for their budget, then routes to the existing qualification node.โ€
  • โ€œAdd an end-call node to Support Bot that triggers when the user says they are done, with a polite goodbye prompt.โ€
  • โ€œRename the intro node in Lead Qualifier to greeting and update any edges that reference it.โ€
  • โ€œChange the LLM model on all agent nodes in Support Bot to gpt-4o-mini.โ€
Learn the platform
  • โ€œSearch the Dograh docs for how to configure a TURN server.โ€
  • โ€œWhat node types does Dograh support, and what fields does a knowledge_base node take?โ€
  • โ€œHow do I deploy Dograh on a custom domain with HTTPS?โ€
Agent edits are saved as a new draft version โ€” your published agent keeps serving calls until you explicitly publish the draft from the Dograh UI.
The API key controls which workspace the assistant sees. Treat it like any other credential โ€” do not commit it to source control or paste it into shared chats.