# MCP server for coding agents

Last updated: 2026-11-17

**The problem.** A coding agent writes a speech-to-text integration from what it remembers, and what it remembers
is often an older API, another vendor's parameters, or a guess. The result looks right and fails at the first
session.

**What it does.** Gladia's MCP server gives your agent the current Gladia documentation as tools it calls on its
own: it searches the pages, reads the one it needs with its code examples, and cites the links it used. MCP (the
Model Context Protocol) is the open standard coding agents use to call outside tools.

- **No API key**: the documentation tools read public pages only.
- **Always current**: it reads the pages this site publishes, the API reference included, and follows them as
  they change.
- **Read-only**: no tool changes anything, so your agent can call them without asking you each time.
- **Any MCP client**: the server speaks Streamable HTTP, the transport every current client supports.

## Connect your agent

The server's address: `https://eu1.docs.gladia.io/mcp`.

**Claude Code**

```bash
claude mcp add --transport http gladia https://eu1.docs.gladia.io/mcp
```

**Cursor**

In `.cursor/mcp.json` (this project) or `~/.cursor/mcp.json` (every project):

```jsonc title=".cursor/mcp.json"
{
  "mcpServers": {
    "gladia": {
      "url": "https://eu1.docs.gladia.io/mcp"
    }
  }
}
```

**VS Code**

In `.vscode/mcp.json`:

```jsonc title=".vscode/mcp.json"
{
  "servers": {
    "gladia": {
      "type": "http",
      "url": "https://eu1.docs.gladia.io/mcp"
    }
  }
}
```

Then ask your agent something that needs the docs, for example: "Add live transcription to this app with the
Gladia Python SDK, with speaker diarization." It calls `search_docs` first: your client shows the call.

## The tools

| tool | what it does |
|---|---|
| `search_docs` | Finds the sections that answer a question (`query`, up to 500 characters), best first, one per page: each with its title, URL and a snippet. `limit`: 1 to 20 results, 5 by default. |
| `read_doc` | Reads one page as Markdown, its code examples included. `path`: an address from `search_docs` (`/live/endpointing/`) or a page's URL. |
| `list_docs` | Lists every page with its description; `section` keeps one section (`live`, `text-to-speech`...). |

The tools cover every page of this site: the guides and the API reference of each endpoint and WebSocket
message (`search_docs` finds `POST /v2/live` or `transcript message`). The same pages are here as plain text for
any LLM: [`/llms.txt`](/llms.txt) (the index) and [`/llms-full.txt`](/llms-full.txt) (every page).

> **Tell your agent to use the SDK.** The official [SDKs](/introduction/sdks/) stream the audio, keep it until the API has transcribed it, and reconnect
after a network drop. Agents that write a WebSocket client by hand get those parts wrong most often: ask yours to
use the SDK the docs show.

## Good to know

- **Your agent still needs your API key to run what it wrote.** The MCP server helps it write the code; the code
  calls the API with your key (see [Authentication](/introduction/authentication/)). Never paste a key into a
  prompt: keep it in an environment variable.
- **A client that only runs local servers** (stdio): put an MCP proxy such as `mcp-remote` in front of the URL.
- **Nothing found?** Ask with the API's own words (`endpointing`, `custom_vocabulary`, `POST /v2/live`) or read
  the section's index with `list_docs`.
