> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DialNexa MCP Server Overview

> Connect an AI client to the DialNexa MCP server with Streamable HTTP, OAuth 2.1, or workspace API key authentication.

The DialNexa MCP server lets an MCP-compatible AI client inspect and manage DialNexa resources through named tools. Connect to `https://api.dialnexa.com/v1/mcp` with OAuth 2.1 or a DialNexa API key, then let the client discover the available tools through the Model Context Protocol.

## Who should use the DialNexa MCP server

Use the MCP server when an AI client should choose and call DialNexa operations during a conversation. Use the REST API when your application code needs deterministic request and response handling without an AI client deciding which operation to run.

| Choose | Best for |
| - | - |
| [MCP tools](https://dialnexa.com/docs/mcp-tools/quickstart.md) | AI assistants, coding agents, and MCP hosts that discover and call tools dynamically. |
| [REST API](https://dialnexa.com/docs/api-reference/introduction.md) | Backend services, scheduled jobs, product integrations, and explicit application workflows. |

Both interfaces use many of the same resource IDs. MCP clients can use an interactive DialNexa sign-in or a workspace API key, while REST API integrations use API keys.

## DialNexa MCP Server Endpoint And Authentication

The server implements MCP Streamable HTTP at:

```text theme={null}
https://api.dialnexa.com/v1/mcp
```

OAuth 2.1 is the recommended connection method for interactive MCP clients. It uses authorization-code flow with PKCE and lets the user choose the workspace during consent. API key authentication remains available for clients that support custom request headers.

### OAuth 2.1 Sign-In

Add the remote MCP URL without an Authorization header when your client supports MCP OAuth discovery. The connection follows this sequence:

1. The client contacts the MCP endpoint and receives the protected-resource metadata location in the `WWW-Authenticate` header.
2. The client discovers the DialNexa authorization server and opens a browser.
3. Sign in to DialNexa if needed.
4. Select every workspace this client may use. Write access is chosen per workspace and starts unticked: tick **Allow writes** where the client should create or change things. If no workspace has it, the client sees only the read-only tools; a write tool called for a workspace without it returns `Organization <id> is connected with read-only access.`
5. Click **Allow** to finish, or **Deny** to reject the connection.

The consent screen can request these scopes:

| Scope | What it allows |
| - | - |
| `mcp:read` | Read DialNexa workspace data through MCP tools. |
| `mcp:write` | Run state-changing MCP tools after any tool-specific confirmation requirements are satisfied. |
| `offline_access` | Let a compatible client refresh access without asking you to sign in for every request. |

![DialNexa MCP OAuth consent screen showing Claude, read and write permissions, offline access, and Deny and Allow buttons.](https://mintcdn.com/dialnexa/KQqTe49OFCMnH_9c/images/documentation/screenshots/mcp-oauth-consent.png?fit=max\&auto=format\&n=KQqTe49OFCMnH_9c\&q=85\&s=2df55d326baa2fe195fb4d86536328d8)

OAuth access is limited to the workspaces and permissions approved by the user. If the credential has access to multiple workspaces, call [List My Organizations](https://dialnexa.com/docs/mcp-tools/organization/list-my-organizations.md), choose the intended workspace, and pass its `organization_id` with subsequent tool calls. This cannot grant access to a workspace outside the credential's permissions.

### API Key Authentication

Send a workspace API key as a Bearer token on every request:

```text theme={null}
Authorization: Bearer YOUR_API_KEY
```

The server resolves the workspace from the API key. Tool arguments cannot select a different workspace. A missing, revoked, or malformed key returns `401 Unauthorized` before a tool runs.

See [API key authentication](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests) for key creation and storage guidance.

## DialNexa MCP response privacy

External MCP results omit internal workspace and provider fields and mask credential values in configurations. Text and structured results contain the same filtered data. Webhook tools show only the host of each webhook URL, because the rest of the URL can work as a password. Inspect the returned fields instead of expecting the dashboard's full records.

Link SIP trunks in the [dashboard](https://dialnexa.com/docs/calls/sip-trunking.md); the external MCP catalog does not offer `create_sip_trunk`. Billing plans, phone number pricing, and number purchases are in the dashboard too.

## DialNexa MCP tool reference

Each tool has its own reference page with the exact server description, input schema, safety level, JSON-RPC request shape, retry guidance, and related tools.

> [card] [Agents](https://dialnexa.com/docs/mcp-tools/agents/overview.md)
>
> Create, inspect, configure, and remove voice agents.

> [card] [Calls](https://dialnexa.com/docs/mcp-tools/calls/overview.md)
>
> Find call records and place confirmed outbound calls.

> [card] [Batch Calls](https://dialnexa.com/docs/mcp-tools/batch-calls/overview.md)
>
> Inspect campaigns, review leads, and control batch calls.

> [card] [Workflows](https://dialnexa.com/docs/mcp-tools/workflows/overview.md)
>
> Build workflow graphs and manage workflow execution.

> [card] [Knowledge Base](https://dialnexa.com/docs/mcp-tools/knowledge-base/overview.md)
>
> Create knowledge bases, add documents or text, and manage them.

> [card] [Phone Numbers](https://dialnexa.com/docs/mcp-tools/phone-numbers/overview.md)
>
> Inspect workspace phone numbers and assign them to agents. Numbers are bought in the dashboard.

> [card] [Reference Data](https://dialnexa.com/docs/mcp-tools/reference-data/overview.md)
>
> Resolve language, voice, model, and transcriber IDs.

> [card] [Templates](https://dialnexa.com/docs/mcp-tools/templates/overview.md)
>
> Find reusable agent templates and inspect their configuration.

> [card] [Billing](https://dialnexa.com/docs/mcp-tools/billing/overview.md)
>
> Check wallet balance, spend limits, and billing alert emails.

> [card] [Webhooks](https://dialnexa.com/docs/mcp-tools/webhooks/overview.md)
>
> Inspect workspace webhook configuration. Secrets and URL paths are not shown.

> [card] [Organization](https://dialnexa.com/docs/mcp-tools/organization/overview.md)
>
> Identify your workspaces and create, rename, delete, or fill agent folders.

> [card] [Dashboard](https://dialnexa.com/docs/mcp-tools/dashboard/overview.md)
>
> Read call, agent, onboarding, and weekly dashboard metrics.

> [card] [Integrations](https://dialnexa.com/docs/mcp-tools/integrations/overview.md)
>
> Inspect, validate, and disconnect integrations. New integrations are connected in the dashboard.

> [card] [Prompt Suggestions](https://dialnexa.com/docs/mcp-tools/prompt-suggestions/overview.md)
>
> Read AI-generated prompt improvements for an agent.

## Upload Files Through MCP

MCP supports knowledge-base text and document uploads, and batch recipient files. Use host attachments or a short-lived upload slot instead of copying large files into the conversation. See the [MCP file upload workflow](https://dialnexa.com/docs/mcp-tools/quickstart.md#mcp-file-uploads) for supported formats, limits, and finalization steps.

## Multilingual Agents And Document Processing

`create_agent` and `update_agent` accept up to three `secondary_language_ids` and an optional `language_default_message`. Choose a voice available to the connected workspace, and verify the saved draft before publishing. See the [complete create-agent schema](https://dialnexa.com/docs/mcp-tools/agents/create-agent.md#complete-input-schema).

Knowledge-base text and document uploads can return `processing` while indexing runs in the background. The upload response is the only status MCP shows: `list_knowledge_base_documents` and `get_knowledge_base_document` return knowledge bases, not the files inside them. Check processing in the dashboard or with the REST [List Knowledge Base Documents](https://dialnexa.com/docs/api-reference/v1/knowledge-base/documents.md) endpoint before expecting the agent to retrieve the content. A failed document can disappear from the normal list. See [document processing and recovery](https://dialnexa.com/docs/knowledge-base/managing-documents.md#wait-for-document-processing).

## Protocol behavior

* **Transport:** The server uses stateless MCP Streamable HTTP. Each request is authenticated independently with OAuth or an API key.
* **Discovery:** Use the standard MCP `tools/list` method after client initialization.
* **Invocation:** Use `tools/call` with the exact snake\_case tool name and an `arguments` object.
* **Results:** A successful tool returns one text content block containing the JSON-encoded result, and the same result as an object in `structuredContent` (a list is wrapped as `{ "items": [...] }`, a single value as `{ "value": ... }`).
* **Tool failures:** A tool-level failure sets `isError: true` and returns a readable explanation in the text block.
* **IDs:** Pass prefixed IDs exactly as returned, such as `agent_...`, `call_...`, `batch_...`, and `workflow_...`.

## Safety and confirmation

Reference pages classify every tool as read only, state changing, destructive, or billable. These tools refuse to run unless `confirm: true` is sent: `create_batch_call`, `redact_call`, `delete_agent`, `delete_knowledge_base`, `delete_phone_number`, `delete_campaign`, `delete_organization_folder`, `disconnect_integration`, and `update_batch_call_status` when the action is `cancel`. `create_call` has no `confirm` argument; its description tells the client to confirm the number and intent with the user first, so rely on your host's approval prompt for it. Never add `confirm: true` before the user approves the exact action.

After an uncertain timeout on a state-changing tool, read the affected resource before retrying. This prevents duplicate calls, purchases, or resources.

## Next steps

* [Connect a client in the MCP quickstart](https://dialnexa.com/docs/mcp-tools/quickstart.md)
* [Handle MCP responses, errors, and retries](https://dialnexa.com/docs/mcp-tools/errors.md)
* [Compare with the DialNexa REST API](https://dialnexa.com/docs/api-reference/introduction.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.