TM

tomatio13/mcp-server-tavily

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

50 stars 9 forks 质量 65 趋势 13MIT

tomatio13/mcp-server-tavily 是从 https://github.com/tomatio13/mcp-server-tavily. 导入的 MCP 服务器候选

概览

tomatio13/mcp-server-tavily 是从 https://github.com/tomatio13/mcp-server-tavily. 导入的 MCP 服务器候选

概述(AI 翻译)

一个MCP服务器项目

组成部分

该服务器使用 Tavily API 根据指定查询进行搜索。

  • 搜索结果以文本格式返回。
  • 搜索结果包括AI回复、URI和搜索结果标题。

工具

该服务器实现了以下工具:

  • 搜索:基于指定的查询进行搜索
  • 必填参数:“查询”
  • 可选参数:“search_depth”(基础或高级)

通过Smithery安装

要通过Smithery自动安装Tavily Search for Claude Desktop:

安装

  1. 下载仓库。

  2. 打开 Claude Desktop 配置文件。

  3. 编辑配置文件如下:

  4. 重启 Claude Desktop。

用途

在 Claude Desktop 中,当你问“请搜索某物”时,你会看到搜索结果。

搜索示例:

回答示例:

日志存储位置

日志存储在以下位置:

Windows版:

用光标执行

  1. 创建一个壳脚本(例如 script.sh),如下所示:

  2. 配置光标的MCP服务器设置如下:

  3. 保存设置。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

tavily-search MCP server

A MCP server project

Components

This server uses the Tavily API to perform searches based on specified queries.

  • Search results are returned in text format.
  • Search results include AI responses, URIs, and titles of the search results.

Tools

This server implements the following tools:

  • search: Performs searches based on specified queries
    • Required argument: “query”
    • Optional argument: “search_depth” (basic or advanced)

Installing via Smithery

To install Tavily Search for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install tavily-search --client claude

Install

  1. Download the repository.
git clone https://github.com/Tomatio13/mcp-server-tavily.git
  1. Open the Claude Desktop configuration file.
On MacOS: `~/Library/Application\ Support/Claude/claude_desktop_config.json`
On Windows: `C:\Users\[username]\AppData\Roaming\Claude\claude_desktop_config.json`
  1. Edit the configuration file as follows:
"mcpServers": {
  "tavily-search": {
    "command": "uv",
    "args": [
      "--directory",
      "C:\\your_path\\mcp-server-tavily",
      "run",
      "tavily-search"
    ],
    "env": {
      "TAVILY_API_KEY": "YOUR_TAVILY_API_KEY",
      "PYTHONIOENCODING": "utf-8"
    }
  }
}
  1. Restart Claude Desktop.

Usage

In Claude Desktop, when you ask “Please search for something”, you will receive search results.

Search example:

Please search in detail for today's events in Kamakura

Response example:

According to the search results, the following events start today, December 1st:
"Kamakura Promotion Photo Contest 2025"
Period: December 1, 2024 - January 31, 2025
A photo contest for those who love Kamakura
Applications start accepting from today
Also, as a related upcoming event:
On December 7th, an exhibition by 12 Kamakura artists will be held at the Seibu Press Inn Kamakura Ofuna Station East Exit Lounge.

Log Storage Location

Logs are stored in the following location:

For Windows:

C:\Users\[username]\AppData\Roaming\Claude\logs\mcp-server-tavily-search

Execution with Cursor

  1. Create a shell script (e.g., script.sh) as shown below:
#!/bin/bash
TARGET_DIR=/path/to/mcp-server-tavily
cd "${TARGET_DIR}"
export TAVILY_API_KEY="your-api-key"
export PYTHONIOENCODING=utf-8
uv --directory $PWD run tavily-search
  1. Configure Cursor’s MCP Server settings as follows:
Name: tavily-search
Type: command
Command: /path/to/your/script.sh
  1. Save the settings.
在 GitHub 查看完整 README

安装

npx -y @smithery/cli install tavily-search --client claude
新手?先看 mcpskill.org 教程 →

配置

"mcpServers": { "tavily-search": { "command": "uv", "args": [ "--directory", "C:\\your_path\\mcp-server-tavily", "run", "tavily-search" ], "env": { "TAVILY_API_KEY": "YOUR_TAVILY_API_KEY", "PYTHONIOENCODING": "utf-8" } } }