Tavily搜索服务

一个基于Tavily的搜索服务,提供新闻搜索功能,支持关键词搜索、时间范围限定和搜索深度设置。

  • by y7ut
  • Go
  • 本地部署
  • 更新于
在 GitHub 查看 y7ut/mcp-tavily-search

使用说明

MCP TAVILY搜索

一种模型上下文协议(MCP)服务器,通过数据提供搜索。

快速启动

安装

go install github.com/y7ut/mcp-tavily-search@latest

将config添加到mcp配置文件中。

{
  "mcpServers": {
    "tavily": {
      "command": "mcp-tavily-search",
      "args": [
        "run",
        "tvly-*******************"
      ]
    }
  }
}
{
  "mcpServers": {
    "tavily": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "docker.ijiwei.com/mcp/mcp-tavily-search:latest",
        "run",
        "tvly-*******************"
      ]
    }
  }
}

或调试

npx @modelcontextprotocol/inspector mcp-tavily-search run tvly-xxxxxxxxxx

npx --no-cache @modelcontextprotocol/inspector docker run --rm -i mcp-tavily-search:latest run tvly-xxxxx

工具

搜索_新闻

参数 类型 默认值 描述 必需
keyword string N/A 要搜索的关键字。 是
days number 7 搜索的天数。默认值为7天。 没有
limit number 5 要返回的新闻文章数。默认值为5。 没有
search_depth string "basic" 搜索的深度。这可能是 "basic" 或 "advanced"默认值为 "basic"。 没有
topic string "news" 搜索的主题。选项包括 "general" (未处理的页面)或 "news" (高质量新闻)。默认值为 "news"。 没有