VoiceGateway // DOCS

MCP Server

VoiceGateway includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) server that lets AI coding agents inspect, configure, and manage your voice AI gateway without leaving

MCP Server

VoiceGateway includes a built-in Model Context Protocol (MCP) server that lets AI coding agents inspect, configure, and manage your voice AI gateway without leaving their workflow.

What is MCP?

MCP is an open protocol that allows AI agents to use tools provided by external servers. When you connect an agent like Claude Code or Cursor to VoiceGateway's MCP server, the agent gains access to 17 tools for querying gateway state and performing administrative operations.

Tools Overview

The MCP server exposes tools in four categories:

Observability (read-only)

ToolDescription
get_healthGateway health, uptime, version
get_provider_statusProvider configuration status
get_costsCost summary by period/project
get_latency_statsLatency percentiles and per-model stats
get_logsRecent request logs with filters

Provider Management

ToolDescription
list_providersList all configured providers
get_providerDetails for one provider
test_providerLive connectivity test
add_providerRegister a new provider
delete_providerRemove a managed provider (destructive)

Model Management

ToolDescription
list_modelsList all registered models
register_modelRegister a new model
delete_modelRemove a managed model (destructive)

Project Management

ToolDescription
list_projectsList projects with today's stats
get_projectFull project details and cost trends
create_projectCreate a new project
delete_projectRemove a managed project (destructive)

Safety Features

Destructive tools (delete_provider, delete_model, delete_project) implement a two-phase confirmation pattern:

  1. Preview phase: Called without confirm=True, the tool returns a preview of the impact (affected models, projects, total spend, etc.).
  2. Confirm phase: Called with confirm=True, the deletion is performed.

This ensures agents always show the user what will happen before making irreversible changes.

Quick Start

Shell
# Install MCP dependencies
pip install "voicegateway[mcp]"

# Start with stdio (for local agents)
voicegw mcp

# Start with HTTP/SSE (for remote agents)
VOICEGW_MCP_TOKEN=my-token voicegw mcp --transport http --port 8090

Next Steps

On this page