Skip to main content
Glama

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:

  • 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-beta agentic 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)

Quickstart

This server is installed from source only.

  1. Get a Groq API key at console.groq.com.

  2. Install uv (see the uv repo for install methods).

  3. Clone this repository and set it up:

    git clone https://github.com/groq/groq-mcp-server
    cd groq-mcp-server
    ./scripts/setup.sh
    cp .env.example .env
    # Edit .env and add your API key
  4. Register the server with your MCP client:

    • Claude Desktop (macOS): run ./scripts/install.sh, then restart Claude Desktop.

    • Other clients (Cursor, Windsurf, etc.): run uv run python config.py --print and paste the printed mcpServers entry into your client's MCP config. It points the client at this checkout's Python and server.py, not at a package index.

If you're using Windows, 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".

Your MCP client can then 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

  • 📦 Batch: Process large workloads efficiently

Related MCP server: Taskade MCP Server

Contributing

If you want to contribute or run from source:

Installation Options

  1. Clone the repository:

    git clone https://github.com/groq/groq-mcp-server
    cd groq-mcp-server
  2. Run the setup script:

    ./scripts/setup.sh

    This will:

    • Create a Python virtual environment using uv

    • Install all dependencies

    • Set up pre-commit hooks

    • Activate the virtual environment

  3. Run the Claude install script:

    ./scripts/install.sh

    On Macs, this will install the Groq MCP server in Claude Desktop, at ~/Library/Application Support/Claude/claude_desktop_config.json. Make sure to refresh or restart Claude Desktop.

  4. Copy .env.example to .env and add your Groq API key:

    cp .env.example .env
    # Edit .env and add your API key

Option 2: Manual Setup

  1. Clone the repository:

    git clone https://github.com/groq/groq-mcp-server
    cd groq-mcp-server
  2. Create a virtual environment and install dependencies using uv:

    uv venv
    source .venv/bin/activate
    uv pip install -e ".[dev]"
  3. Copy .env.example to .env and 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 voices

  • list_groq_stt_models.sh: Show available STT models

  • groq_batch.sh: Process batch operations

  • groq_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!

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients such as Claude and Cursor to control an isolated cloud machine with a real browser, shell, filesystem, and web access, so agents can navigate pages, click and type, run commands, manage files, and search or fetch web content.
      26
      13 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude to query client and document data in plain English with cited answers, enforce per-client access, safely file incoming documents, and record audited actions through MCP tools.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients such as Claude Code to list, read, create, and update notebooks, tasks, comments, questions, and memos through natural-language workflows.
      5 npm
      MIT