MCP Server

Use the Deepgram CLI as an MCP server for AI coding tools.

The dg CLI includes a built-in MCP (Model Context Protocol) server that gives AI coding tools direct access to Deepgram APIs.

Start the MCP Server

dg mcp

Starts a server using stdio transport (default).

HTTP/SSE Transport

For HTTP-based MCP clients:

dg mcp --transport sse --port 8000

Configuration

Claude Code

Add to your project’s .claude/mcp.json:

{
"mcpServers": {
"deepgram": {
"type": "stdio",
"command": "dg",
"args": ["mcp"]
}
}
}

Or add globally:

claude mcp add deepgram --scope user --command dg --args mcp

Cursor

Add to .cursor/mcp.json:

{
"mcpServers": {
"deepgram": {
"type": "stdio",
"command": "dg",
"args": ["mcp"]
}
}
}

Windsurf

Add to .windsurf/mcp.json:

{
"mcpServers": {
"deepgram": {
"type": "stdio",
"command": "dg",
"args": ["mcp"]
}
}
}

Available Tools

dg mcp proxies the tools exposed by the Deepgram developer API to your editor. The remote service owns the available tool list, so inspect the connected MCP client for the current tools and their schemas.

Authentication

The MCP server uses your stored credentials (dg login) automatically.

For CI environments:

DEEPGRAM_API_KEY=sk_xxx dg mcp