语音转录服务

Deepgram的模型上下文协议服务器,为AI编辑器提供直接访问Deepgram的语音、转录和音频智能工具的服务。

  • by deepgram
  • Python
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 deepgram/mcp

使用说明

deepgram mcp

Deepgram的 模型上下文协议 服务器——让人工智能编辑(Claude Code、Cursor、Windsurf等)直接访问Deepgram的语音、转录和音频智能工具。

独立包装。 安装 deepgram-mcp 如果您只需要MCP服务器而不需要完整的CLI套件,可以直接使用。如果您已经在使用 Deepgram命令行界面 (pip install deepctl), deepgram-mcp 作为依赖项包含在内 dg mcp 命令包装它——不需要单独安装。

为什么deepgram mcp不同

大多数MCP服务器以硬编码Python的形式提供工具。当提供者添加新工具时,您必须升级软件包才能获得它。

deepgram-mcp 在运行时从Deegram的API获取其工具列表。下次连接时,编辑器中会出现新工具,无需进行软件包升级。

需求

A. Deegram API密钥.免费获得一个 console.depgram.com.

将其设置为环境变量:

export DEEPGRAM_API_KEY=your_api_key_here

安装

pip install deepgram-mcp

编辑器设置

克劳德代码

添加 .mcp.json 在项目根目录中(或 ~/.claude/mcp.json 全球):

{
  "mcpServers": {
    "deepgram": {
      "command": "deepgram-mcp",
      "env": {
        "DEEPGRAM_API_KEY": "your_api_key_here"
      }
    }
  }
}

或者通过CLI:

claude mcp add deepgram -- deepgram-mcp

光标

添加 .cursor/mcp.json:

{
  "mcpServers": {
    "deepgram": {
      "command": "deepgram-mcp",
      "env": {
        "DEEPGRAM_API_KEY": "your_api_key_here"
      }
    }
  }
}

帆板运动

添加到您的Windsurf MCP配置中:

{
  "mcpServers": {
    "deepgram": {
      "command": "deepgram-mcp",
      "env": {
        "DEEPGRAM_API_KEY": "your_api_key_here"
      }
    }
  }
}

用法

stdio(默认设置——用于编辑器集成)

deepgram-mcp --api-key your_api_key_here

SSE(HTTP服务器)

deepgram-mcp --transport sse --port 8000

选项

标志 默认值 描述
--transport stdio 运输方式: stdio 或 sse
--port 8000 SSE服务器端口
--host 127.0.0.1 SSE服务器主机
--api-key $DEEPGRAM_API_KEY Deegram API密钥
--base-url https://api.dx.deepgram.com Deegram开发者API基础URL
--debug false 将调试信息打印到stderr

用作图书馆

import asyncio
from deepgram_mcp import run_proxy

asyncio.run(run_proxy(
    transport="stdio",
    host="127.0.0.1",
    port=8000,
    api_key="your_api_key_here",
    base_url="https://api.dx.deepgram.com",
    debug=False,
))

Deepgram命令行界面

如果你使用 Deepgram命令行界面, dg mcp 包装此包并自动处理身份验证:

dg mcp
dg mcp --transport sse --port 8000

许可证

麻省理工学院——见 许可证.