KM

kshern/mcp-tavily

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

12 stars 6 forks 品質 75 トレンド 12MIT

mcp サーバー の tavily

概要

Tavily API 用のモデルコンテキストプロトコル(MCP)サーバーの実装で、高度な検索とコンテンツ抽出機能を提供します。 - : - 検索: カスタマイズ可能なオプションを備えた基本的な検索機能 - searchContext: より良い関連のためのコンテキスト - ウェア検索 - SearchQNA: 質問と回答に焦点を当てた検索 - : 設定可能なオプションでURLからコンテンツを抽出する - : 検索深さ、フィルタリング、コンテンツを含めるための広範なオプション Tavily MCP サーバーを MCP 設定に追加します。 注意: 実際のTavily APIキーでAPIキーを交換してください。 サーバを実行する前に環境変数 TAVILY API KEY として設定することもできます。 サーバは、MCP を通して呼び出せる 3 つの検索ツールを提供します。 すべてのツールは、次の形式の応答を返します。 検索結果は、各項目に: - タイトル - コンテンツ - URL 抽出されたコンテンツについては、各項目に: - URL - 生のコンテンツ - 失敗したURLリスト(もしあれば)が含まれます

概要(AI 翻訳)

2018年11月11日

Tavily API 用のモデルコンテキストプロトコル(MCP)サーバーの実装で、高度な検索とコンテンツ抽出機能を提供します。

##特徴

  • 複数の検索ツール:
  • [searchQNA: 質問と回答 集中した検索
  • コンテンツ抽出: 設定可能なオプションでURLからコンテンツを抽出 -リッチ設定オプション: 検索深さ、フィルタリング、コンテンツの包含のための広範なオプション

MCP の使用

Tavily MCP サーバーを MCP 設定に追加します。

注記:実際のTavily APIキーでyour-api-keyを交換してください。 サーバの実行前に環境変数[TAVILY_API_KEY]として設定することもできます。

API リファレンス

検索ツール

サーバは、MCP を通して呼び出せる 3 つの検索ツールを提供します。

###1. 基本検索

###2. コンテキスト検索

###3。 Q&A検索

抽出ツール

検索オプション

すべての検索ツールは、これらのオプションを共有します。

抽出オプション

応答形式

すべてのツールは、次の形式の応答を返します。

検索結果は、各項目に以下が含まれます。

  • タイトル
  • コンテンツ ・URL

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Tavily

中文文档

A Model Context Protocol (MCP) server implementation for Tavily API, providing advanced search and content extraction capabilities.

Features

  • Multiple Search Tools:
    • search: Basic search functionality with customizable options
    • searchContext: Context-aware search for better relevance
    • searchQNA: Question and answer focused search
  • Content Extraction: Extract content from URLs with configurable options
  • Rich Configuration Options: Extensive options for search depth, filtering, and content inclusion

Usage with MCP

Add the Tavily MCP server to your MCP configuration:

{
  "mcpServers": {
    "tavily": {
      "command": "npx",
      "args": ["-y", "@mcptools/mcp-tavily"],
      "env": {
        "TAVILY_API_KEY": "your-api-key"
      }
    }
  }
}

Note: Make sure to replace your-api-key with your actual Tavily API key. You can also set it as an environment variable TAVILY_API_KEY before running the server.

API Reference

Search Tools

The server provides three search tools that can be called through MCP:

// Tool name: search
{
  query: "artificial intelligence",
  options: {
    searchDepth: "advanced",
    topic: "news",
    maxResults: 10
  }
}
// Tool name: searchContext
{
  query: "latest developments in AI",
  options: {
    topic: "news",
    timeRange: "week"
  }
}
// Tool name: searchQNA
{
  query: "What is quantum computing?",
  options: {
    includeAnswer: true,
    maxResults: 5
  }
}

Extract Tool

// Tool name: extract
{
  urls: ["https://example.com/article1", "https://example.com/article2"],
  options: {
    extractDepth: "advanced",
    includeImages: true
  }
}

Search Options

All search tools share these options:

interface SearchOptions {
  searchDepth?: "basic" | "advanced";    // Search depth level
  topic?: "general" | "news" | "finance"; // Search topic category
  days?: number;                         // Number of days to search
  maxResults?: number;                   // Maximum number of results
  includeImages?: boolean;               // Include images in results
  includeImageDescriptions?: boolean;    // Include image descriptions
  includeAnswer?: boolean;               // Include answer in results
  includeRawContent?: boolean;           // Include raw content
  includeDomains?: string[];            // List of domains to include
  excludeDomains?: string[];            // List of domains to exclude
  maxTokens?: number;                    // Maximum number of tokens
  timeRange?: "year" | "month" | "week" | "day" | "y" | "m" | "w" | "d"; // Time range for search
}

Extract Options

interface ExtractOptions {
GitHub で README 全文を見る

インストール

npx -y @mcptools/mcp-tavily
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "tavily": { "command": "npx", "args": ["-y", "@mcptools/mcp-tavily"], "env": { "TAVILY_API_KEY": "your-api-key" } } } }