MCP Server
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
Section titled “Start the MCP Server”dg mcpStarts a server using stdio transport (default).
HTTP/SSE Transport
Section titled “HTTP/SSE Transport”For HTTP-based MCP clients:
dg mcp --transport sse --port 8000Configuration
Section titled “Configuration”Claude Code
Section titled “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 mcpCursor
Section titled “Cursor”Add to .cursor/mcp.json:
{
"mcpServers": {
"deepgram": {
"type": "stdio",
"command": "dg",
"args": ["mcp"]
}
}
}Windsurf
Section titled “Windsurf”Add to .windsurf/mcp.json:
{
"mcpServers": {
"deepgram": {
"type": "stdio",
"command": "dg",
"args": ["mcp"]
}
}
}Available Tools
Section titled “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
Section titled “Authentication”The MCP server uses your stored credentials (dg login) automatically.
For CI environments:
DEEPGRAM_API_KEY=sk_xxx dg mcp