Skip to main content
Use Diga’s hosted Model Context Protocol (MCP) server to build and manage voice agents from compatible AI assistants and development tools.
This page explains how to connect an assistant to Diga. To give a Diga voice agent access to an external MCP server during a call, see MCP integrations.

Prerequisites

Before you begin, you need:
  • A Diga account that belongs to at least one project
  • An MCP client that supports remote servers over Streamable HTTP
  • Only if you use an API key instead of signing in: a Diga API key from the project you want to manage. Follow Create an API key and create a restricted key with only the permissions your assistant needs.

What you can do

The Diga MCP server turns Diga API operations into tools your assistant can discover and call. Depending on your permissions, you can use natural language to:
  • Create, update, publish, list, and inspect voice agents and their versions
  • Create calls and retrieve call details, messages, recordings, logs, and traces
  • Create and maintain knowledge bases from text, URLs, and files
  • Manage phone numbers, voices, integrations, webhooks, and workflows
  • Review project members, usage, billing, and other project resources
Your MCP client shows the exact tools available to it, including each tool’s description and required parameters.

Choose how to authenticate

Your MCP client connects to Diga over Streamable HTTP. Choose one of two ways to authenticate:
Signing in with Diga: your account can belong to several projects, so the server needs to know which one to work on. The first time you ask for something, the assistant lists your projects and asks you to choose one. It can also call the diga_select_project tool directly. The choice is remembered for 24 hours, and you can switch projects at any time by asking the assistant.Using an API key: the key belongs to the project where you created it, so no selection is needed. To manage another project, replace the key with one from that project.

Connect your MCP client

Choose your client. For the API key option, replace <DIGA_API_KEY> with your complete Diga API key.
Open Settings → Connectors → Add custom connector, name it Diga, and enter https://mcp.diga.io/mcp as the URL. When you enable the connector, Claude opens a browser window to sign in to Diga.To use an API key instead, open Request headers in the connector settings and add x-api-key with your key as the value. If your version of Claude does not show that option, use the mcp-remote bridge in Claude Desktop (Settings → Developer → Edit Config):
Never put an API key in the server URL or commit it to source control. URLs can appear in browser history, proxy logs, and analytics. Prefer environment-variable support when your MCP client provides it.

Verify the connection

After saving the configuration, restart or reload your MCP client. Check that a server named diga appears and that its tools are available. Start with a read-only request such as:
List my Diga agents.
If you signed in with Diga and belong to more than one project, the assistant first asks which project to use. Your client should ask for approval before running a tool if its permission settings require confirmation.

Troubleshooting

You signed in with Diga and have not chosen a project yet, or the choice expired after 24 hours. Tell the assistant which project to use, or ask it to list your projects first.
Your Diga account has two-factor authentication enabled. The authorization screen asks for your code during sign-in. If the connection was approved without it, disconnect and reconnect the Diga server in your MCP client and enter the code when asked. Alternatively, connect with an API key.
Your MCP client does not support OAuth for remote servers. Connect with a project API key instead.
If you signed in with Diga, your session may have expired. Disconnect and reconnect the server to sign in again. If you use an API key, confirm that you copied the complete key and that the client sends it as x-api-key without the Bearer prefix. If you use the Authorization header instead, its value must be Bearer <DIGA_API_KEY>.
You are authenticated but do not have permission to use that resource. If you signed in with Diga, ask a project administrator to update your role. If you use an API key, update the key’s restrictions in Settings → Project → API Keys, or use a different restricted key with the required permission.
If you signed in with Diga, ask the assistant to switch to the intended project. If you use an API key, the key determines the project. Replace it with a key created in the intended Diga project, then restart the MCP client so it reloads the configuration.
Verify that the URL is exactly https://mcp.diga.io/mcp and that the client supports remote MCP servers using Streamable HTTP. Some clients require a restart after configuration changes.

Security recommendations

  • Prefer signing in with Diga for interactive use. Access follows your role and ends when you disconnect.
  • When you use API keys, create a separate key for each MCP client and environment
  • Grant only the read or write permissions the assistant needs
  • Review tool calls before approving actions that change or delete resources
  • Rotate a key immediately if it is exposed