Groq MCP by usefulapi
Run chat completions, manage batch jobs and files, and list models in Groq.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"groq": {
"url": "https://groq.usefulapi.io/mcp"
}
}
}Remote endpoints
https://groq.usefulapi.io/mcpstreamable-httpWhat it can do
Tool inventory
Tools (10)
🟢groq_list_models
List the models available to this Groq account, with their ids, owners, context window and status. Use the id in groq_create_chat_completion. Groq API: GET /openai/v1/models.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢groq_list_batches
List the batch jobs of this organization, with status and request counts. Groq API: GET /openai/v1/batches.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢groq_get_batch(batch_id)
Get one batch job by id: status, endpoint, input and output file ids, and timestamps. Groq API: GET /openai/v1/batches/{batch_id}.
Input Schema
{
"type": "object",
"properties": {
"batch_id": {
"type": "string",
"description": "The batch id, for example batch_01jh... (from groq_list_batches)."
}
},
"required": [
"batch_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢groq_list_files
List the files uploaded to this organization (batch inputs and batch outputs). Groq API: GET /openai/v1/files.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢groq_get_file(file_id)
Get the metadata of one file by id: name, purpose, size and creation time. Groq API: GET /openai/v1/files/{file_id}.
Input Schema
{
"type": "object",
"properties": {
"file_id": {
"type": "string",
"description": "The file id, for example file_01jh... (from groq_list_files)."
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢groq_get_file_content(file_id)
Read the text of one file, for example a batch output in JSONL. Returns at most 200000 characters and says when it cut the text. Groq API: GET /openai/v1/files/{file_id}/content.
Input Schema
{
"type": "object",
"properties": {
"file_id": {
"type": "string",
"description": "The file id (from groq_list_files)."
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴groq_create_chat_completion(model, messages, temperature, max_completion_tokens, top_p)
Run one chat completion on a Groq model and return the reply with token usage. This call is billed to the Groq account (tokens). Non-streaming only. Groq API: POST /openai/v1/chat/completions.
Input Schema
{
"type": "object",
"properties": {
"model": {
"type": "string",
"description": "Model id from groq_list_models, for example llama-3.3-70b-versatile."
},
"messages": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": "string",
"enum": [
"system",
"user",
"assistant",
"tool"
],
"description": "Who wrote the message."
},
"content": {
"type": "string",
"description": "Message text (the tool result text when role is tool)."
},
"tool_call_id": {
"description": "The id of the tool call this message answers (role tool only).",
"type": "string"
}
},
"required": [
"role",
"content"
]
},
"description": "The conversation so far, oldest first."
},
"temperature": {
"description": "Sampling temperature, 0 to 2.",
"type": "number",
"minimum": 0,
"maximum": 2
},
"max_completion_tokens": {
"description": "Maximum tokens to generate.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"top_p": {
"description": "Nucleus sampling, 0 to 1.",
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"model",
"messages"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴groq_create_batch(input_file_id, endpoint, completion_window)
Start a batch job from a JSONL input file already uploaded with purpose 'batch'. The job runs asynchronously and is billed to the Groq account. Groq API: POST /openai/v1/batches.
Input Schema
{
"type": "object",
"properties": {
"input_file_id": {
"type": "string",
"description": "The id of the uploaded JSONL input file (from groq_list_files)."
},
"endpoint": {
"default": "/v1/chat/completions",
"description": "The endpoint every request in the file calls.",
"type": "string",
"const": "/v1/chat/completions"
},
"completion_window": {
"default": "24h",
"description": "Time window for processing; Groq accepts 24h.",
"type": "string",
"const": "24h"
}
},
"required": [
"input_file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴groq_cancel_batch(batch_id)
Cancel a batch job that has not finished. Requests already completed stay in the output file. Groq API: POST /openai/v1/batches/{batch_id}/cancel.
Input Schema
{
"type": "object",
"properties": {
"batch_id": {
"type": "string",
"description": "The batch id to cancel (from groq_list_batches)."
}
},
"required": [
"batch_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴groq_delete_file(file_id)
Delete one uploaded file permanently. A batch that still needs this input file can fail. Groq API: DELETE /openai/v1/files/{file_id}.
Input Schema
{
"type": "object",
"properties": {
"file_id": {
"type": "string",
"description": "The file id to delete (from groq_list_files)."
}
},
"required": [
"file_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Evidence