groq-docs-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@groq-docs-mcpHow do I use the Groq API?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Groq Documentation MCP Server
An MCP (Model Context Protocol) server that provides semantic search over Groq's documentation using Cloudflare AI Search (AutoRAG) with R2 as the data source.
Features
search_documentationTool: Query Groq's API documentation using natural languageAI-Powered RAG: Uses Cloudflare AI Search for semantic search and retrieval
Fast & Scalable: Built on Cloudflare Workers for global edge deployment
MCP Compatible: Works with Claude Desktop and other MCP clients
Related MCP server: Markdown RAG MCP
Setup Instructions
Prerequisites
Cloudflare account with Workers enabled
Wrangler CLI installed:
npm install -g wranglerAuthenticated with Wrangler:
wrangler login
1. Install Dependencies
npm install2. Install and Configure Rclone
Install rclone for fast bulk uploads:
brew install rclone # macOS
# Or: curl https://rclone.org/install.sh | sudo bash # LinuxConfigure rclone for R2:
rclone config
# Choose 'n', name: 'r2', storage: 5, provider: 24
# Enter your Account ID and R2 API Token3. Create R2 Bucket
wrangler r2 bucket create groq-docs4. Scrape Documentation
Set up Browser Rendering API credentials:
export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export CLOUDFLARE_API_TOKEN="your-api-token"Run the scraper:
npm run scrapeThis will:
Use Browser Rendering API for clean content extraction
Scrape all pages from https://console.groq.com/docs
Save locally to
./scraped-docs/Bulk upload to R2 using rclone
Note: Takes several minutes depending on page count.
5. Configure AI Search (Manual)
In the Cloudflare Dashboard:
Go to AI > AI Search
Create a new AI Search instance named
groq-docs-ai-searchConfigure the data source:
Select R2 as the data source
Choose the
groq-docsbucket
Select embedding and generation models (use defaults)
Set up AI Gateway for monitoring
Assign a Service API token
Wait for indexing to complete (monitor in the AI Search dashboard)
6. Deploy the Worker
Deploy the MCP server to Cloudflare Workers:
npm run deployYour server will be available at: groq-docs-mcp.<your-account>.workers.dev/mcp or groq-docs-mcp.<your-account>.workers.dev/sse
Usage
Connect to Claude Desktop
To use this MCP server with Claude Desktop:
Open Claude Desktop settings
Go to Settings > Developer > Edit Config
Add this configuration:
{
"mcpServers": {
"groq-docs": {
"command": "npx",
"args": [
"mcp-remote",
"https://groq-docs-mcp.<your-account>.workers.dev/sse"
]
}
}
}Restart Claude Desktop
Connect to Cloudflare AI Playground
Enter your deployed MCP server URL:
groq-docs-mcp.<your-account>.workers.dev/sseStart using the
search_documentationtool!
Example Queries
Try asking:
"How do I use the Groq API?"
"What models are available on Groq?"
"How do I implement streaming with Groq?"
"What are the rate limits for Groq API?"
"How do I use OpenAI compatibility with Groq?"
Development
Local Development
Run the server locally:
npm run devThe server will be available at http://localhost:8787
Type Checking
Generate types for Cloudflare bindings:
npm run cf-typegenCheck types:
npm run type-checkCode Formatting
Format code with Biome:
npm run format
npm run lint:fixProject Structure
groq-docs-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── scripts/
│ └── scrape-groq-docs.js # Documentation scraper script
├── scraped-docs/ # Local cache of scraped docs (git-ignored)
├── package.json # Dependencies and scripts
├── wrangler.jsonc # Cloudflare Worker configuration
└── README.md # This fileHow It Works
Scraping: Uses Cloudflare Browser Rendering API to extract clean markdown from Groq's documentation
Storage: Documentation is stored as markdown files in R2 (uploaded via rclone)
Indexing: Cloudflare AI Search indexes the R2 content using embeddings
Query: The MCP tool queries the AI Search index and returns relevant documentation snippets
Results: Formatted results include URLs, titles, content, and relevance scores
Troubleshooting
Scraper Issues
If the scraper fails:
Check your internet connection
Verify Groq's documentation site is accessible
Ensure Wrangler is authenticated:
wrangler whoami
AI Search Not Working
If searches return no results:
Verify the AI Search instance is created and named
groq-docs-ai-searchCheck that indexing is complete in the AI Search dashboard
Ensure the R2 bucket contains the scraped files:
wrangler r2 object list groq-docs
Worker Deployment Issues
If deployment fails:
Verify Wrangler is up to date:
npm install -g wrangler@latestCheck your Cloudflare account has Workers enabled
Ensure the R2 bucket exists:
wrangler r2 bucket list
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dhannusch/groq-docs-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server