Skip to main content

deepctl-cmd-mcp

Part of deepctl — Official Deepgram CLI

Local stdio MCP server for deepctl: search Deepgram's documentation from AI editors

Installation

This package is included with deepctl and does not need to be installed separately.

Install deepctl

# Install with pip
pip install deepctl

# Or install with uv
uv tool install deepctl

# Or install with pipx
pipx install deepctl

# Or run without installing
uvx deepctl --help
pipx run deepctl --help

Commands

Command Entry Point
deepctl mcp deepctl_cmd_mcp.command:McpCommand

MCP Server Setup

dg mcp (also deepctl mcp) runs a local MCP (Model Context Protocol) server over stdio. Your AI editor starts it and gets one tool, search_deepgram_knowledge_sources, which searches Deepgram's documentation and returns passages with their source URLs. Each search goes to Deepgram's hosted documentation search and uses your Deepgram API key. dg mcp doesn't transcribe, synthesize speech or call other Deepgram APIs.

Prerequisites

The API key comes from dg login or the DEEPGRAM_API_KEY environment variable. Never put the API key in the MCP config's args: a project config such as .mcp.json is usually committed.

# Log in once (stores the API key in the system keyring)
dg login

# Or set the environment variable in the shell that starts your editor
export DEEPGRAM_API_KEY="your-api-key"

Without a key, the server still starts, and each search returns a tool error that says to run dg login or set DEEPGRAM_API_KEY. If dg ignored the key in your config file because other users can change the file or it's owned by someone else, the error asks a person to fix the file instead; an AI agent should ask the user.

Claude Desktop passes env values in its config literally, so "DEEPGRAM_API_KEY": "${DEEPGRAM_API_KEY}" sends the text ${DEEPGRAM_API_KEY} as the key. Use dg login instead.

Claude Code

claude mcp add deepgram --scope project -- uvx deepctl mcp

Or add to your project's .mcp.json:

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

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "deepgram": {
      "command": "uvx",
      "args": ["deepctl", "mcp"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "deepgram": {
      "command": "uvx",
      "args": ["deepctl", "mcp"]
    }
  }
}

Installed CLI

If dg is already installed (Homebrew, the install script, pip, uv tool or pipx), use it directly in any of the above configurations:

{
  "command": "dg",
  "args": ["mcp"]
}

Alternative: pipx

Replace uvx with pipx run in any of the above configurations:

{
  "command": "pipx",
  "args": ["run", "deepctl", "mcp"]
}

Alternative: Local development

If running from a local clone of the repository:

{
  "command": "uv",
  "args": ["run", "dg", "mcp"]
}

Transport

The MCP server runs over stdio only: your editor starts dg mcp and talks to it over stdin and stdout. SSE and HTTP transports aren't supported, and a --transport other than stdio exits with an error, so remove it from your MCP config.

Dependencies

  • mcp>=1.23.1,<2.0.0
  • rich>=13.9.4,<16
  • click>=8.2.0,<9
  • pydantic>=2.10.1,<3

License

MIT — see LICENSE

Metadata

Release files for deepctl-cmd-mcp 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepctl-cmd-mcp 0.5.0
File Size Uploaded Provenance Actions
deepctl_cmd_mcp-0.5.0.tar.gz 14.7 kB With provenance Details for deepctl_cmd_mcp-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for deepctl-cmd-mcp 0.5.0
File Interpreter ABI Platform Actions
deepctl_cmd_mcp-0.5.0-py3-none-any.whl Python 3 none any Details for deepctl_cmd_mcp-0.5.0-py3-none-any.whl

Total release size: 30.2 kB

Release files / deepctl_cmd_mcp-0.5.0.tar.gz

Download URL deepctl_cmd_mcp-0.5.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bd71bcc90aca60cdf85e46ecfc94ba52534668f0e275f77986a8fa260aac975f
BLAKE2b-256 checksum
How to use checksums
67ad7b169fe6e4aeae2ef4aacbc84489c16d09431539a0a7435897ba87b278bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / deepctl_cmd_mcp-0.5.0-py3-none-any.whl

Download URL deepctl_cmd_mcp-0.5.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53f68196dab66392d39e72a9596744e0753d4e1e1525e180b077f48d7da5629c
BLAKE2b-256 checksum
How to use checksums
b5f71780a1424653261a575a888d31c6064664b578451f2ede38297489c622a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for deepctl-cmd-mcp 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for deepctl_cmd_mcp-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page