Logotipo de Groq

Groq

Organización
groq

Groq MCP server

Editorgroq
Repositoriogroq-mcp-server
IdiomaPython
Forks
24
Estrellas
47
Herramientas disponibles
15
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Groq ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 15 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    47 estrellas y 24 forks en el repositorio enlazado.

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-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 with Claude Desktop

  1. Install uv (Python package manager), install with curl -LsSf https://astral.sh/uv/install.sh | sh or see the uv repo for additional install methods.
  2. 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:

  1. Install the package:

    bash
    # Using UV (recommended)
    uvx install groq-mcp
    
    # Or using pip
    pip install groq-mcp
  2. Generate configuration:

    bash
    # 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
  • 📦 Batch: Process large workloads efficiently

Contributing

If you want to contribute or run from source:

Installation Options

Option 1: Quick Setup (Recommended)

  1. Clone the repository:

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

    bash
    ./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:

    bash
    ./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:

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

Option 2: Manual Setup

  1. Clone the repository:

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

    bash
    uv venv
    source .venv/bin/activate
    uv pip install -e ".[dev]"
  3. Copy .env.example to .env and add your Groq API key:

    bash
    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

bash
./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)

bash
./scripts/groq_tts.sh "Your text" [voice_name] [model] [output_directory]
# Example:
./scripts/groq_tts.sh "Hello, world!" "Arista-PlayAI"

Speech-to-Text (STT)

bash
./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

bash
# 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!

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "groq": {
      "command": "npx",
      "args": [
        "-y",
        "groq-mcp"
      ],
      "env": {
        "GROQ_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Herramientas disponibles

  • list_models

    Retrieve available LLM models from Groq's API including Llama, Mixtral, and other supported open-source models

  • create_completion

    Generate text completion using specified Groq model with ultra-fast LPU inference

  • create_chat_completion

    Generate conversational responses using chat-formatted input with Groq's high-speed inference

  • get_model_details

    Fetch detailed information about a specific model including parameters, context length, and capabilities

  • create_streaming_completion

    Generate streaming text completion for real-time response delivery

  • create_streaming_chat

    Generate streaming chat responses with token-by-token delivery

  • get_usage_stats

    Retrieve API usage statistics including tokens consumed, requests made, and rate limit status

  • validate_api_key

    Verify Groq API key validity and check authentication status

  • estimate_tokens

    Calculate estimated token count for input text before making API calls

  • get_rate_limits

    Fetch current rate limit information and remaining quota for the API key

  • list_supported_languages

    Get list of natural languages supported by available models

  • get_model_performance

    Retrieve performance metrics including inference speed and throughput for specific models

  • create_batch_completion

    Process multiple completion requests in a single batch operation

  • get_system_status

    Check Groq service status and LPU infrastructure availability

  • configure_inference_params

    Set inference parameters like temperature, max tokens, and top-p for model requests

Usa el MCP de Groq con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Groq, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Groq como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Groq.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "groq": {
      "command": "npx",
      "args": [
        "-y",
        "groq-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Groq y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Groq.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Groq para ayudarme con esta tarea?
Groq
Claro. Lo he leído.
Esto he encontrado usando Groq.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Groq?

Groq es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Groq con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Groq con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Groq con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Groq conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Groq a TypingMind?

Groq funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Groq en TypingMind?

Groq ofrece 15 herramientas MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Groq?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Groq requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇