MCP Audio RAG Server
Enables transcription of audio files using Google Gemini AI and creates a searchable knowledge base, allowing users to ask natural language questions about content in meetings, podcasts, lectures, and other audio recordings.
README
MCP Audio RAG Server
Transform your audio files into a searchable knowledge base using AI. Ask Claude questions about your meetings, podcasts, lectures, or any audio content.
<p align="center"> <a href="https://www.buymeacoffee.com/matheusslg" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="50"> </a> </p>
What is this?
This is an MCP (Model Context Protocol) server that lets you:
- Transcribe any audio file using Google's Gemini AI
- Store the transcriptions in a searchable database
- Search through all your audio content using natural language
Once set up, you can simply ask Claude things like:
- "What did they discuss about the budget in my meeting recording?"
- "Find mentions of machine learning in my podcast collection"
- "What were the key points from yesterday's lecture?"
How It Works
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Audio File │ ──▶ │ Gemini │ ──▶ │ Chunking │ ──▶ │ Supabase │
│ (.mp3, etc) │ │ Transcribe │ │ + Embedding │ │ (pgvector) │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
│
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ Claude │ ◀── │ Results │ ◀── │ Search │ ◀──────────┘
│ Response │ │ + Snippets │ │ Query │
└─────────────┘ └─────────────┘ └─────────────┘
Quick Start
Prerequisites
- Node.js 18+ - Download here
- Gemini API Key - Get one free
- Supabase Account - Sign up free
Step 1: Clone & Install
git clone https://github.com/matheusslg/mcp-audio-rag.git
cd mcp-audio-rag
npm install
Step 2: Set Up Supabase Database
- Create a new project at supabase.com
- Go to SQL Editor in your dashboard
- Paste and run the contents of
supabase/schema.sql
Step 3: Get Your API Keys
Supabase (Settings → API):
- Copy Project URL →
SUPABASE_URL - Copy service_role key →
SUPABASE_SERVICE_KEY
Google AI Studio:
- Create key at aistudio.google.com/apikey →
GEMINI_API_KEY
Step 4: Configure
cp .env.example .env
Edit .env:
GEMINI_API_KEY=your-key-here
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-role-key
Step 5: Add to Claude
For Claude Code CLI (~/.claude.json):
{
"mcpServers": {
"audio-rag": {
"command": "npx",
"args": ["tsx", "/full/path/to/mcp-audio-rag/src/server.ts"],
"env": {
"GEMINI_API_KEY": "your-key",
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_SERVICE_KEY": "your-service-role-key"
}
}
}
}
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):
Same config as above.
Usage
Transcribe Audio
Just tell Claude to transcribe a file:
Transcribe /path/to/meeting.mp3
Want to use a specific model? Just ask:
Transcribe /path/to/lecture.m4a using gemini-2.5-pro
Search Your Audio
Ask natural questions:
What did they say about the project timeline?
Search for mentions of "budget" in my recordings
Find discussions about AI in my podcasts
Manage Your Library
List all my transcribed audio files
Delete the recording from last week
Get the full transcript of meeting.mp3
Summarize the podcast episode
Available Models
| Model | Best For |
|---|---|
gemini-2.5-flash |
Default - Fast & accurate, great balance |
gemini-2.5-flash-lite |
Fastest, cheapest - good for bulk processing |
gemini-2.5-pro |
Best quality - complex audio, multiple speakers |
gemini-3-pro-preview |
Newest - cutting edge capabilities |
gemini-2.0-flash |
Reliable - previous generation |
gemini-2.0-flash-lite |
Fast - previous generation |
Supported Audio Formats
.mp3 .mp4 .m4a .wav .webm .mpeg .mpga
Available Tools
| Tool | Description |
|---|---|
ingest_audio |
Transcribe and store an audio file |
search_transcripts |
Search through your audio using natural language |
list_transcripts |
List all transcribed audio files |
get_full_transcript |
Get the complete transcript of a file |
summarize_audio |
Generate an AI summary of a transcript |
delete_transcript |
Remove a transcribed file from the database |
Troubleshooting
| Problem | Solution |
|---|---|
| "No relevant segments found" | Try rephrasing your search, or check if audio was ingested |
| "Missing environment variable" | Check your .env file or Claude config has all 3 keys |
| Supabase errors | Make sure you're using service_role key, not anon key |
| Slow transcription | Use gemini-2.5-flash-lite for faster processing |
Support This Project
If this project saved you time or helped you out, consider buying me a coffee!
<a href="https://www.buymeacoffee.com/matheusslg" target="_blank"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="50"> </a>
License
MIT - Use it however you want!
<p align="center"> Made with Gemini + Supabase + Claude </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。