tavily-proxy
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., "@tavily-proxysearch for today's top tech news"
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.
Tavily-Proxy
A Cloudflare Worker that acts as an MCP (Model Context Protocol) proxy for the Tavily API. It provides the same tools as the official Tavily MCP server, but with an API key pool — automatically rotating through multiple Tavily keys and selecting the one with the most remaining credit.
Features
MCP Server — Streamable HTTP transport at
POST /mcp, compatible with any MCP client4 Tavily Tools —
tavily-search,tavily-extract,tavily-crawl,tavily-mapAPI Key Pool — Multiple Tavily API keys stored in Cloudflare KV; each request picks the least-recently-used healthy key
Health-aware routing — Tavily 432 (quota exhausted) keys are skipped until the next UTC month; 429 rate limits apply a transient cooldown; 401/403 keys are invalidated
Key Management API + Admin Panel — HTTP endpoints plus an embedded web panel (
GET /admin) to add/delete keys and monitor usageAuth Protected — All endpoints except
GET /andGET /adminrequire anx-api-keyheader
Related MCP server: MCP Nexus
Usage
Connect MCP Clients
With mcp-remote (for clients like Cursor, Claude Desktop, etc.):
{
"mcpServers": {
"tavily-proxy": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://your-worker.workers.dev/mcp",
"--header", "x-api-key:${AUTH_KEY}"
],
"env": {
"AUTH_KEY": "your-auth-key"
}
}
}
}Admin Panel
Open https://your-worker.workers.dev/admin in a browser. The panel asks for your AUTH_KEY (kept in the browser's sessionStorage), then lets you:
List all keys — masked key, status (
active/exhausted/ cooling), credit availability, last-used and last-synced timesAdd and delete keys
Force a usage sync via the Sync usage now button
Key Management
# Add a key (auto-queries remaining credit from Tavily)
curl -X POST https://your-worker.workers.dev/api/keys \
-H "Content-Type: application/json" \
-H "x-api-key: your-auth-key" \
-d '{"apiKey": "tvly-xxx"}'
# List all keys and credits
curl https://your-worker.workers.dev/api/keys \
-H "x-api-key: your-auth-key"
# Force a usage sync for all keys
curl -X POST https://your-worker.workers.dev/api/keys/sync \
-H "x-api-key: your-auth-key"
# Delete a key
curl -X DELETE https://your-worker.workers.dev/api/keys \
-H "Content-Type: application/json" \
-H "x-api-key: your-auth-key" \
-d '{"apiKey": "tvly-xxx"}'Setup
Web
Click the button below to deploy your own instance of tavily-proxy directly to Cloudflare Workers:
Configure KV Namespace: The API key pool is stored in Cloudflare KV. You need create a namespace (
Workers & Pages→KV→ Create a namespace(name don't important).Configure KV Binding: After creating the namespace, you need to bind it to your Worker. Go to your Cloudflare Worker dashboard → Settings → Bindings → Add binding and select the KV namespace you created.
Configure Secrets: Once deployed successfully, go to your Cloudflare Worker dashboard → Settings → Variables. Add
AUTH_KEYas an encrypted secret — it is thex-api-keyheader that protects the admin panel and management API.Redeploy: Trigger a redeploy for the secret to take effect.
Add Keys: Visit your Worker URL at
/admin, log in with yourAUTH_KEY, and add your Tavily API key(s). The pool is ready — requests are served throughPOST /mcp.(Optional) If you need custom domain, go to your Cloudflare Worker dashboard → Settings → Custom domains → Add a custom domain.
How the Key Pool Works
The design follows tavily-hikari: the request hot path does not estimate or deduct credits locally. Key health is driven by real upstream signals:
Each request picks the least-recently-used healthy key (LRU).
HTTP 432 (Tavily quota exhausted) → the key is marked
exhaustedand skipped for the rest of the current UTC month; it is restored automatically at the next monthly reset.HTTP 429 (rate limited) → the key is cooled down for the
Retry-Afterwindow (fallback 60s) and the next key is tried.HTTP 401/403 → the key is marked
exhaustedand retried against the next key.Remaining credit is only a display field, synced from Tavily's
/usageendpoint in the background:POST /api/keysqueries usage when adding a key.GET /api/keysreturns cached values and kicks off a background sync when they are stale (>30 min).POST /api/keys/syncforces a full sync.
Workers Free Plan Note
Cron triggers do not fire on the Workers Free plan. The scheduled handler is still included, but on Free you should rely on the lazy sync built into GET /api/keys and the admin panel's Sync usage now button. Uncomment the [triggers] block in wrangler.toml to enable hourly cron syncs after upgrading to a paid plan.
Endpoints
Method | Path | Description |
|
| MCP Streamable HTTP endpoint (tool calls) |
|
| Add a Tavily API key to the pool |
|
| Remove a Tavily API key from the pool |
|
| List all keys and their status (auto-triggers lazy sync) |
|
| Force a |
|
| Admin panel (opens without auth; prompts for AUTH_KEY) |
|
| Health check (no auth required) |
All endpoints except GET / and GET /admin require the x-api-key header matching your configured AUTH_KEY.
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.
Related MCP Servers
- Flicense-quality-maintenanceA unified MCP server for Tavily and Brave Search APIs that features automatic API key rotation and zero-cost hosting on Cloudflare Workers. It provides tools for web searching, data extraction, and research with secure, encrypted key management.Last updated
- Alicense-qualityCmaintenanceA unified search and extraction MCP server hosted on Cloudflare Workers that integrates Tavily and Brave Search APIs with automatic API key rotation. It features secure, encrypted storage for keys using Cloudflare D1 and provides an admin interface for managing client tokens and search configurations.Last updated25ISC
- AlicenseBqualityCmaintenanceA local MCP server that exposes Tavily search as a tool and rotates across multiple API keys for reliability.Last updated1MIT
- Alicense-qualityBmaintenanceA proxy MCP server for Tavily search and extract APIs with support for multiple API keys, random rotation, and bearer token authentication.Last updatedMIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Tokisaki-Galaxy/tavily-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server