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
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.
- Claude (web and desktop)
- Claude Code
- Cursor
- Codex
- Other clients
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):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
The assistant asks me to select a project
The assistant asks me to select a project
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.
The connection fails because two-factor authentication is required
The connection fails because two-factor authentication is required
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.
The browser sign-in never opens
The browser sign-in never opens
Your MCP client does not support OAuth for remote servers. Connect with a project API key instead.
A tool returns 403 Forbidden
A tool returns 403 Forbidden
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.
The assistant shows the wrong company or no resources
The assistant shows the wrong company or no resources
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.
The client cannot connect to the server
The client cannot connect to the server
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

