Groq MCP Server
Enables lightning-fast inference using Groq models through MCP clients, supporting vision, speech, batch processing, and agentic tasks.
README
Groq MCP Server
Query models hosted on Groq for lightning-fast inference directly from Claude and other MCP clients through the Model Context Protocol (MCP).
Use MCP to access vision models for interpreting visual data from images, instantly generate speech from text, process thousands of requests through Groq's batch processing, and even build apps with full access to Groq's documentation.
With the Groq MCP server you can try tasks like:
Agentic Tasks, Code Generation & Web Search
- What is Groq's Compound Beta? Use the compound tool. Summarize with one line then turn into voice
- Please retrieve the current Bitcoin price from CoinGecko API and calculate the value of 0.38474 bitcoins?
- What is the weather in SF right now?
- Generate and run code, which means you can make API calls, get data from webpages, and much more
- This feature uses the new
compound-betaagentic tools system
Vision & Understanding
- "Describe this image [URL to image]"
- "Analyze this image and extract key information as JSON [URL to image]"
Speech & Audio
- "Convert this text to speech using the Arista-PlayAI voice: [text]"
- "Read this text aloud in Arabic: [text]"
- "Transcribe this audio file using whisper-large-v3: [url to mp3]"
- "Translate this foreign language audio to English [url to mp3]"
Batch Processing
- "Process the following batch of prompts: [location of a jsonlines file]" (read more here)
Local Tools
- "Run
git statusin my project folder" — executes shell commands on the local machine viarun_shell_command(PowerShell on Windows, bash on macOS/Linux) - "Read the contents of config.json" — returns a local file's content to the LLM via
read_file - "Save this summary to output.txt" — writes text to a local file path via
write_file - "What Groq chat models do I have access to?" —
list_chat_modelsqueries/v1/modelslive (no hardcoded whitelist)
Quickstart with Claude Desktop
- Get a Groq API key for free at console.groq.com
- Install
uv(Python package manager), install withcurl -LsSf https://astral.sh/uv/install.sh | shor see theuvrepo for additional install methods. - Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
{
"mcpServers": {
"groq": {
"command": "uvx",
"args": ["groq-mcp"],
"env": {
"GROQ_API_KEY": "your_groq_api_key",
"BASE_OUTPUT_PATH": "/path/to/output/directory" # Optional: Where to save generated files (default: ~/Desktop)
}
}
}
}
If you're using Windows, you will have to enable "Developer Mode" in Claude Desktop to use the MCP server. Click "Help" in the hamburger menu in the top left and select "Enable Developer Mode".
If you want to install the MCP from code, scroll down to "Contributing".
Other MCP Clients
For other clients like Cursor and Windsurf:
-
Install the package:
# Using UV (recommended) uvx install groq-mcp # Or using pip pip install groq-mcp -
Generate configuration:
# Print config to screen groq-mcp-config --api-key=your_groq_api_key --print # Or save directly to config file (auto-detects location) groq-mcp-config --api-key=your_groq_api_key # Optional: Specify custom output path groq-mcp-config --api-key=your_groq_api_key --output-path=/path/to/outputs
That's it! Your MCP client can now use these Groq capabilities:
- 🗣️ Text-to-Speech (TTS): Fast, natural-sounding speech synthesis
- 👂 Speech-to-Text (STT): Accurate transcription and translation
- 🖼️ Vision: Advanced image analysis and understanding
- 💬 Chat: Ultra-fast LLM inference with Llama 4 and more (model list fetched live from your account)
- 📦 Batch: Process large workloads efficiently
- 🖥️ Local Shell: Run shell commands on the local machine (PowerShell / bash)
- 📁 File I/O: Read and write local files directly from the LLM
Contributing
If you want to contribute or run from source:
Installation Options
Option 1: Quick Setup (Recommended)
-
Clone the repository:
git clone https://github.com/groq/groq-mcp-server cd groq-mcp -
Run the setup script to initialize the virtual environment and install all dependencies:
- On macOS/Linux:
./scripts/Linux_setup.sh - On Windows:
.\win_setup.bat
(This creates a
.venvdirectory, installs the core and dev dependencies, and configures pre-commit hooks). - On macOS/Linux:
-
Run the Claude install script to register the Groq MCP server with Claude Desktop:
- On macOS/Linux:
./scripts/install.sh - On Windows:
.\install.bat
(On macOS, this writes to
~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, this writes to%APPDATA%\Claude\logs\../claude_desktop_config.json. Make sure to restart or refresh Claude Desktop afterward. The install script also automatically injects the Groq MCP config into the Antigravity CLImcp.jsonif present). - On macOS/Linux:
-
Copy
.env.exampleto.envand add your Groq API key:- On macOS/Linux:
cp .env.example .env - On Windows:
copy .env.example .env
Edit .env and add your API key
- On macOS/Linux:
Option 2: Manual Setup
-
Clone the repository:
git clone https://github.com/groq/groq-mcp-server cd groq-mcp -
Create a virtual environment and install dependencies using uv:
uv venv source .venv/bin/activate uv pip install -e ".[dev]" -
Copy
.env.exampleto.envand add your Groq API key:cp .env.example .env # Edit .env and add your API key
Available Scripts
The scripts directory contains several utility scripts for different Groq API functionalities:
Vision & Image Analysis
./scripts/groq_vision.sh <image_file> [prompt] [temperature] [max_tokens] [output_directory]
# Example:
./scripts/groq_vision.sh "./input/image.jpg" "What is in this image?"
Text-to-Speech (TTS)
./scripts/groq_tts.sh "Your text" [voice_name] [model] [output_directory]
# Example:
./scripts/groq_tts.sh "Hello, world!" "Arista-PlayAI"
Speech-to-Text (STT)
./scripts/groq_stt.sh <audio_file> [model] [output_directory]
Utility Scripts
list_groq_voices.sh: Display available TTS voiceslist_groq_stt_models.sh: Show available STT modelsgroq_batch.sh: Process batch operationsgroq_translate.sh: Translate text or audio
Development Scripts
# Run tests
./scripts/test.sh
# Run with options
./scripts/test.sh --verbose --fail-fast
# Run integration tests
./scripts/test.sh --integration
# Debug and test locally
mcp install server.py
mcp dev server.py
Troubleshooting
Logs when running with Claude Desktop can be found at:
- Windows:
%APPDATA%\Claude\logs\groq-mcp.log - macOS:
~/Library/Logs/Claude/groq-mcp.log
Acknowledgments
This project is inspired by the ElevenLabs MCP Server. Thanks!
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。