yanjin734-ltsm

tavily-pool-mcp

Community yanjin734-ltsm
Updated

TAVILY_POOL_MCP

tavily-pool-mcp

A local Model Context Protocol server that exposes a Tavily search tool and rotates across multiple Tavily API keys.

Features

  • Exposes tavily_search as an MCP tool
  • Rotates across multiple Tavily API keys
  • Retries with another key on 401, 403, or 429
  • Works with OpenCode and other MCP-compatible clients

Requirements

  • Node.js 18+
  • Tavily API keys

Install

npm install

Configuration

Set TAVILY_API_KEYS as a space, comma, or semicolon separated list:

export TAVILY_API_KEYS="tvly-dev-key-1 tvly-dev-key-2 tvly-dev-key-3"

On Windows PowerShell:

$env:TAVILY_API_KEYS="tvly-dev-key-1 tvly-dev-key-2 tvly-dev-key-3"

Run

npm start

npm start starts a stdio MCP server, so the terminal will wait for MCP input. This is expected.

OpenCode Config

Add this to your OpenCode opencode.json:

{
  "mcp": {
    "tavily-pool": {
      "type": "local",
      "enabled": true,
      "command": ["node", "C:/path/to/tavily-pool-mcp/src/index.mjs"],
      "environment": {
        "TAVILY_API_KEYS": "{env:TAVILY_API_KEYS}"
      }
    }
  }
}

Tool

tavily_search

Arguments:

  • query: search query
  • max_results: 1-20, default 5
  • search_depth: basic or advanced, default basic
  • include_answer: boolean, default false
  • include_raw_content: boolean, default false

Security

Do not commit real API keys. Use environment variables or a secret manager.

License

MIT

MCP Server · Populars

MCP Server · New

    mcparmory

    MCP Armory Registry

    Production-ready MCP servers for 70+ APIs — GitHub, Google, Notion, Jira & more. Generated from OpenAPI specs, tested against live APIs. Works with Claude Desktop, Cursor, Codex & Claude Code.

    Community mcparmory
    666ghj

    mirofish

    A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

    Community 666ghj
    luminarylane

    🎨 Fal.ai MCP Server

    MCP server for Fal.ai - Generate images, videos, music and audio with Claude

    Community luminarylane
    childrentime

    reactuse

    115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by VueUse.

    Community childrentime
    agenticmail

    🎀 AgenticMail

    Email & SMS infrastructure for AI agents — send and receive real email and text messages programmatically

    Community agenticmail