Skip to main content
Glama
yanjin734-ltsm

tavily-pool-mcp

tavily-pool-mcp

一个本地模型上下文协议 (MCP) 服务器,它公开了一个 Tavily 搜索工具,并可在多个 Tavily API 密钥之间进行轮换。

功能

  • 将 tavily_search 公开为 MCP 工具

  • 在多个 Tavily API 密钥之间轮换

  • 在遇到 401、403 或 429 错误时使用其他密钥重试

  • 适用于 OpenCode 和其他兼容 MCP 的客户端

Related MCP server: AIE7-MCP

要求

  • Node.js 18+

  • Tavily API 密钥

安装

npm install

配置

将 TAVILY_API_KEYS 设置为以空格、逗号或分号分隔的列表:

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

在 Windows PowerShell 上:

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

运行

npm start

npm start 会启动一个 stdio MCP 服务器,因此终端将等待 MCP 输入。这是预期行为。

OpenCode 配置

将其添加到你的 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}"
      }
    }
  }
}

工具

参数:

  • query: 搜索查询

  • max_results: 1-20,默认为 5

  • search_depth: basic 或 advanced,默认为 basic

  • include_answer: 布尔值,默认为 false

  • include_raw_content: 布尔值,默认为 false

安全性

请勿提交真实的 API 密钥。请使用环境变量或密钥管理器。

许可证

MIT

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedtavily_search

TDQS

B3.4/5.0

Scored across 1 tool

Disambiguation5/5

Only one tool exists, so there is no possibility of confusion or overlap.

Naming Consistency5/5

The single tool follows a clear verb_noun pattern (tavily_search), which is consistent and predictable.

Tool Count3/5

One tool is on the low end but reasonable for a focused search service; it is borderline but not inappropriate.

Completeness5/5

The search tool fully covers the server's purpose of web search; no obvious missing operations.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    A proxy MCP server for Tavily search and extract APIs with support for multiple API keys, random rotation, and bearer token authentication.
    MIT