Tavily Search MCP
Tavily Search MCP
Tavily Search MCP は、Streamable HTTP ベースの MCP サービスであり、Tavily のウェブ検索とウェブページコンテンツ抽出機能を MCP ツールにカプセル化するためのものです。
機能
web_search:クエリキーワードに基づいてウェブ検索を行います。web_fetch:ウェブページの URL から読み取り可能なテキストコンテンツを抽出します。
Related MCP server: tavily-mcp
環境要件
Python 3.11+
Tavily API Key
streamable_httpをサポートする MCP クライアント
インストール
まず、自分専用の Python 仮想環境を作成して有効にし、その後、依存関係と現在のプロジェクトをインストールします:
python -m pip install -r requirements.txt
python -m pip install -e .環境変数テンプレートをコピーします:
cp .env.example .env.env に設定を記入します:
TAVILY_API_KEY=tvly-your-api-key
MCP_SERVER_HOST=127.0.0.1
MCP_SERVER_PORT=21029
MCP_SERVER_PATH=/mcp
MCP_ALLOWED_HOSTS=127.0.0.1,127.0.0.1:21029,localhost,localhost:21029
MCP_ALLOWED_ORIGINS=*サーバーにデプロイする場合は、MCP_SERVER_HOST を 0.0.0.0 に設定し、あなたのパブリックドメインまたはアクセスホスト名を MCP_ALLOWED_HOSTS に追加してください。
サービスの起動
python -m tavily_search_mcp.serverデフォルトのローカル MCP アドレス:
http://127.0.0.1:21029/mcpヘルスチェック:
curl http://127.0.0.1:21029/healthテストクライアント
MCP ツールを一覧表示します:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp list-toolsウェブ検索を呼び出します:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp web-search "Tavily Python SDK" --max-results 2ウェブページコンテンツ抽出を呼び出します:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp web-fetch "https://docs.tavily.com/"MCP クライアント設定
ローカルサービスの例:
{
"mcpServers": {
"tavily-search": {
"type": "streamable_http",
"url": "http://127.0.0.1:21029/mcp",
"headers": {}
}
}
}リモートサービスの例:
{
"mcpServers": {
"tavily-search": {
"type": "streamable_http",
"url": "https://your-domain.example/mcp",
"headers": {}
}
}
}サーバーへのデプロイ
リポジトリ内のデプロイスクリプトを使用して、自分の SSH キーでサービスをアップロードして起動できます:
.\scripts\deploy_remote.ps1 -HostName "your-server.example" -User "ubuntu" -IdentityFile "<path-to-private-key>"This server cannot be deployed
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Web search and clean-text fetch MCP server (Tavily-powered, SSRF-guarded).
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables web search and document retrieval capabilities through Tavily API and LangConnect vector database, supporting AI agents in gathering information for comprehensive report generation.23-
- AlicenseNot gradedqualityDmaintenanceA web search and extraction MCP server powered by Tavily, providing tools for AI-powered search, content extraction from URLs, and Q\&A with source citations.MIT
- FlicenseAqualityDmaintenanceMCP server that provides web search capabilities using the Tavily API.3-
- AlicenseBqualityDmaintenanceMCP server providing search, extract, map, and crawl tools powered by Tavily for real-time web data access.416 npmMIT