MCP Audio Server

MCP Audio Server

Enables audio transcription, intelligent splitting, and meeting analysis for MCP-compatible clients like Claude Desktop.

Category
访问服务器

README

MCP Audio Server

A Model Context Protocol (MCP) server that provides audio transcription, intelligent splitting, and meeting analysis tools. This server exposes audio processing capabilities to MCP-compatible clients like Claude Desktop, enabling seamless integration of audio workflows into AI conversations.

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. This MCP server provides audio processing tools that can be used by any MCP-compatible client, allowing AI assistants to:

  • Transcribe audio files directly in conversations
  • Split large audio files for processing
  • Generate meeting summaries and insights
  • Analyze multiple audio transcripts simultaneously

Features

  • 🎙️ Audio Transcription: High-quality transcription using Groq's Whisper models
  • ✂️ Smart Audio Splitting: Automatically split large audio files by size or duration
  • 📝 Transcript Summarization: Generate comprehensive meeting summaries with context
  • 📁 Multi-file Analysis: Chat with multiple transcript files simultaneously
  • 🔄 Format Fallbacks: Robust export with MP3 → AAC → WAV fallback chain
  • 📊 Size Management: Automatic handling of 25MB Groq API limits
  • 🎯 Intelligent Break Points: Uses silence detection for optimal split points

Installation

Prerequisites

  • Python 3.13+
  • uv package manager
  • ffmpeg (for audio processing)
  • Groq API key

Setup

  1. Clone the repository:
git clone <your-repo-url>
cd mcp-audio-server
  1. Install with uv:
uv sync
  1. Set up your Groq API key:
export GROQ_API_KEY="your-groq-api-key-here"
  1. Verify installation:
uv run python setup.py

Usage

With Claude Desktop

Add this server to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mcp-audio-server": {
      "command": "uv",
      "args": ["run", "python", "-m", "mcp_audio_server.server"],
      "cwd": "/path/to/mcp-audio-server",
      "env": {
        "GROQ_API_KEY": "your-groq-api-key-here"
      }
    }
  }
}

With Other MCP Clients

Use the provided configuration file:

# Copy and edit the config
cp mcp-config.json my-config.json
# Edit my-config.json with your API key and paths

Then connect your MCP client using the configuration.

Standalone Testing

Test the server directly:

# Start the MCP server
uv run python -m mcp_audio_server.server

# Or test with the CLI client
uv run mcp-audio-client transcribe path/to/audio.mp3

MCP Tools

This server exposes the following tools to MCP clients:

transcribe_audio

Transcribe audio files using Groq's Whisper API.

Parameters:

  • file_path (string): Path to audio file
  • model (string, optional): Groq model (default: "whisper-large-v3")
  • language (string, optional): Audio language

Example in Claude:

"Please transcribe the audio file at /path/to/meeting.mp3"

split_audio

Split audio files with multiple strategies.

Parameters:

  • file_path (string): Path to audio file
  • splits (array, optional): Manual split points
  • output_dir (string, optional): Output directory
  • max_size_mb (number, optional): Max size for auto-splitting (default: 24MB)
  • max_duration_minutes (number, optional): Max duration for auto-splitting
  • auto_split_by_size (boolean): Enable size-based splitting (default: true)
  • auto_split_by_duration (boolean): Enable duration-based splitting

Example in Claude:

"Please split the large audio file at /path/to/long_meeting.mp3 into segments under 25MB"

summarize_transcript

Generate summaries from transcripts.

Parameters:

  • transcript (string): Transcript text
  • context (string, optional): Additional context
  • custom_prompt (string, optional): Custom system prompt
  • model (string, optional): Groq model (default: "llama3-8b-8192")

Example in Claude:

"Please summarize this meeting transcript with context about our quarterly planning session"

multi_file_chat

Analyze multiple files simultaneously.

Parameters:

  • file_paths (array): List of file paths
  • question (string): Question to ask
  • system_prompt (string, optional): Custom system prompt
  • model (string, optional): Groq model (default: "llama3-8b-8192")

Example in Claude:

"Please analyze these three meeting transcripts and tell me what the common themes were"

Configuration

Environment Variables

  • GROQ_API_KEY: Your Groq API key (required for transcription/summarization)

Supported Audio Formats

  • MP3, M4A, WAV, FLAC, OGG, and more (via pydub)

Export Formats

  • Primary: MP3 (most compatible)
  • Fallback: AAC (ADTS format)
  • Final Fallback: WAV (uncompressed)

Example Workflows

Complete Meeting Processing

  1. Split large recording: "Please split this 2-hour meeting recording into manageable segments"
  2. Transcribe segments: "Now transcribe each segment"
  3. Generate summary: "Create a comprehensive summary of all segments with action items"

Multi-Meeting Analysis

  1. Transcribe multiple meetings: Process several meeting recordings
  2. Cross-meeting analysis: "What are the recurring themes across these three meetings?"
  3. Action item tracking: "What action items were mentioned and who owns them?"

Development

Setup Development Environment

uv sync --dev

Run Tests

uv run pytest

Code Formatting

uv run black src/
uv run ruff check src/

Testing the MCP Server

# Test server startup
uv run python -m mcp_audio_server.server

# Test with example client
uv run python examples/basic_usage.py

Requirements

  • Python 3.13+
  • uv package manager
  • ffmpeg (for audio processing)
  • Groq API key

Installing ffmpeg

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

# Windows
# Download from https://ffmpeg.org/

Troubleshooting

Common Issues

  1. "GROQ_API_KEY not set"

    • Ensure your API key is exported: export GROQ_API_KEY="your-key"
    • For Claude Desktop, add it to the MCP configuration
  2. "ffmpeg not found"

    • Install ffmpeg using the instructions above
    • Ensure it's in your system PATH
  3. "File too large" errors

    • Use the split_audio tool first to break large files into <25MB segments
    • Then transcribe each segment individually
  4. MCP connection issues

    • Verify the server path in your MCP configuration
    • Check that uv is installed and accessible
    • Ensure the working directory is correct

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with uv: uv sync --dev
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions:

  • Open an issue on GitHub
  • Check the MCP documentation: https://modelcontextprotocol.io/
  • Review the examples in this repository

Note: This is an MCP server that requires a compatible MCP client (like Claude Desktop) to use. The server provides audio processing tools that integrate seamlessly into AI conversations.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选