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 with administrator access to a project
- A Diga API key from that project
- An MCP client that supports remote servers over Streamable HTTP
What you can do
The Diga MCP server turns Diga API operations into tools your assistant can discover and call. Depending on your API key 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
How authentication and project selection work
Your MCP client connects to Diga over Streamable HTTP and sends your API key with every request.An API key belongs to the Diga project where you created it. That project is the company the assistant manages. To work with another company, create or copy a key from that project and replace the key in your MCP client configuration.
Connect your MCP client
Choose your client and replace<DIGA_API_KEY> with your complete Diga API key.
- Cursor
- Claude Desktop
- Claude Code
- Codex
- Other clients
Open Cursor Settings → MCP → Add new global MCP server, then add:
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.Your client should ask for approval before running a tool if its permission settings require confirmation.
Troubleshooting
A tool returns 403 Forbidden
A tool returns 403 Forbidden
The API key is valid but does not have permission to use that resource. 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
The API 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
- Create a separate API 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 the key immediately if it is exposed

