ai
Groq MCP, CLI, and Lua Integration for AI Agents
Groq integration docs for AI agents: MCP gateway setup, Groq CLI commands, Lua API reference, credentials, and function schemas.
7 functions 5 read 2 write API key auth
Groq for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
groq- route_slug
groq- package
groq- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Groq CLIHeadless setup and direct function calls. Groq MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Groq MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Groq.
Claude Code Groq MCP setup for Claude Code. Cursor Groq MCP setup for Cursor. Codex Groq MCP setup for Codex. OpenAI Agents Groq MCP setup for OpenAI Agents SDK. Claude Agent SDK Groq MCP setup for Claude Agent SDK. Vercel AI SDK Groq MCP setup for Vercel AI SDK. LangChain Groq MCP setup for LangChain. LangGraph Groq MCP setup for LangGraph. CrewAI Groq MCP setup for CrewAI. MCP clients Groq MCP setup for Generic MCP Clients.
Groq CLI Matrix
Use these pages for direct Groq CLI workflows in scripts, CI, cron, and agent wrappers.
CI Groq CLI for CI. Cron Jobs Groq CLI for cron jobs. Shell Scripts Groq CLI for shell scripts. Headless Automation Groq CLI for headless automation. Coding Agents Groq CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
groq.groq_list_models | Read read | 0 | List available Groq AI models. Returns model IDs, ownership, and other metadata for models accessible via the Groq API. |
groq.groq_create_completion | Write write | 6 | Create a chat completion using a Groq model. Send a list of messages and receive an AI-generated response with ultra-low latency. Supports configurable parameters like temperature, max_tokens, and top_p. |
groq.groq_list_messages | Read read | 3 | List messages in a Groq Cloud conversation. Returns message content, role, and metadata for each message in the conversation. |
groq.groq_create_message | Write write | 3 | Create a message in a Groq Cloud conversation. Send a message with a specified role and content to a conversation. |
groq.groq_list_files | Read read | 3 | List files uploaded to the Groq Files API. Returns file IDs, filenames, purposes, sizes, and upload timestamps. |
groq.groq_get_file | Read read | 1 | Get metadata for an uploaded file in Groq, including its ID, filename, purpose, size in bytes, and processing status. |
groq.groq_get_current_user | Read read | 0 | Get information about the currently authenticated Groq user, including user ID, email, and organization details. |