apicheats.dev elevenlabs/llms.txt Raw .md
GET

/v1/convai/mcp-servers/{mcp_server_id}

ElevenLabs API

Get Mcp Server

Base URL
https://api.elevenlabs.io
Auth
xi-api-key: <ELEVENLABS_API_KEY>
Last verified
2026-09-03 · upstream hash matched
Actions
Agents: curl -H "Accept: text/markdown" this URL
→ 159 tokens · Vary: Accept

Critical gotchas

Authentication uses the non-standard xi-api-key header, not Authorization: Bearer. Sending a Bearer token returns HTTP 401.

Text-to-speech responses are raw binary audio, not JSON. Write the body to a file (--output speech.mp3) rather than parsing it.

cURL

curl -X GET 'https://api.elevenlabs.io/v1/convai/mcp-servers/mcp-server-id' \  -H "xi-api-key: $ELEVENLABS_API_KEY"
Get a free ElevenLabs API key → sponsored

Parameters

Name In Type Required Description
mcp_server_id path string Yes ID of the MCP Server.

Response 200 OK

{
  "id": "string",
  "config": {
    "approval_policy": "require_approval_all",
    "tool_approval_hashes": [
      {
        "tool_name": "string",
        "tool_hash": "string",
        "approval_policy": "requires_approval"
      }
    ],
    "transport": "SSE",
    "url": "string",
    "secret_token": {
      "secret_id": "string"
    },
    "request_headers": {},
    "request_meta": {},
    "auth_connection": {
      "auth_connection_id": "string"
    },
    "name": "string",
    "description": "",
    "force_pre_tool_speech": false,
    "pre_tool_speech": "auto",
    "disable_interruptions": false,
    "interruption_mode": "allow",
    "tool_call_sound": "typing",
    "tool_call_sound_behavior": "auto",
    "execution_mode": "immediate",
    "response_timeout_secs": 30,
    "tool_config_overrides": [
      {
        "tool_name": "string",
        "force_pre_tool_speech": true,
        "pre_tool_speech": "auto",
        "disable_interruptions": true,
        "interruption_mode": "allow",
        "tool_call_sound": "typing",
        "tool_call_sound_behavior": "auto",
        "execution_mode": "immediate",
        "response_timeout_secs": 0,
        "assignments": [
          {
            "dynamic_variable": "user_name",
            "preserve_native_type": false,
            "sanitize": false,
            "source": "response",
            "value_path": "user.name"
          }
        ],
        "input_overrides": {},
        "response_mocks": [
          {
            "parameter_conditions": "[recursive or deeply nested schema]",
            "mock_result": "[recursive or deeply nested schema]",
            "is_error": "[recursive or deeply nested schema]"
          }
        ]
      }
    ],
    "disable_compression": false
  },
  "access_info": {
    "access_source": "creator",
    "creator_email": "john.doe@example.com",
    "creator_name": "John Doe",
    "is_creator": true,
    "role": "admin"
  },
  "dependent_agents": [
    {
      "referenced_resource_ids": [
        "string"
      ],
      "id": "string",
      "name": "string",
      "type": "available",
      "created_at_unix_secs": 0,
      "access_level": "admin"
    }
  ],
  "metadata": {
    "created_at": 0,
    "owner_user_id": "string"
  }
}