
Tavily Mcp
io.github.tavily-ai由 GitHub 帳號 tavily-ai 發布v0.2.15更新於 Oct 24, 2026
MCP server for advanced web search using Tavily
概覽
Tavily MCP 讓助理進行即時網路搜尋,並提供網頁內容擷取、網站結構對應與網站爬取工具。
- 可以做什麼
- 透過 tavily-search 搜尋即時網路,取得排序結果,可選擇包含圖片,並能設定搜尋深度與結果數量,預設值可用 DEFAULT_PARAMETERS 指定。透過 tavily-extract 從指定網頁擷取可讀內容。透過對應工具產生網站頁面的結構化概覽。透過爬蟲工具有系統地探索並收集網站頁面。
- 適用情境
- 適合助理需要最新網路資訊、從特定連結取得頁面內容,或在深入研究與爬取前先了解網站結構時使用。適用於調查研究、內容收集與網站探索類工作流程。
- 執行需求
- 需要 Tavily API 金鑰:本機 npm 套件透過 TAVILY_API_KEY 環境變數提供(需 Node.js v20 或以上版本,以 npx 執行),遠端端點則放在 URL 或 Authorization 標頭中。需要連線至 Tavily 的網路存取。DEFAULT_PARAMETERS 為選用項目。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Tavily Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Tavily MCP Server
[GitHub Repo stars] [npm] [smithery badge]
The Tavily MCP server provides:
- search, extract, map, crawl tools
- Real-time web search capabilities through the tavily-search tool
- Intelligent data extraction from web pages via the tavily-extract tool
- Powerful web mapping tool that creates a structured map of website
- Web crawler that systematically explores websites
📚 Helpful Resources
- Tutorial on combining Tavily MCP with Neo4j MCP server
- Tutorial on integrating Tavily MCP with Cline in VS Code
Remote MCP Server
Connect directly to Tavily's remote MCP server instead of running it locally. This provides a seamless experience without requiring local installation or configuration.
Simply use the remote MCP server URL with your Tavily API key:
Get your Tavily API key from tavily.com.
Alternatively, you can pass your API key through an Authorization header if the MCP client supports this:
Note: When using the remote MCP, you can specify default parameters for all requests by including a DEFAULT_PARAMETERS header containing a JSON object with your desired defaults. Example:
Connect to Claude Code
Claude Code is Anthropic's official CLI tool for Claude. You can add the Tavily MCP server using the claude mcp add command. There are two ways to authenticate:
Option 1: API Key in URL
Pass your API key directly in the URL. Replace <your-api-key> with your actual Tavily API key:
Option 2: OAuth Authentication Flow
Add the server without an API key in the URL:
After adding, you'll need to complete the authentication flow:
- Run
claudeto start Claude Code - Type
/mcpto open the MCP server management - Select the Tavily server and complete the authentication process
Tip: Add --scope user to either command to make the Tavily MCP server available globally across all your projects:
Once configured, you'll have access to the Tavily search, extract, map, and crawl tools.
Connect to Cursor
Click the ⬆️ Add to Cursor ⬆️ button, this will do most of the work for you but you will still need to edit the configuration to add your API-KEY. You can get a Tavily API key here.
once you click the button you should be redirect to Cursor ...
Step 1
Click the install button
Step 2
You should see the MCP is now installed, if the blue slide is not already turned on, manually turn it on. You also need to edit the configuration to include your own Tavily API key. [圖片]
Step 3
You will then be redirected to your mcp.json file where you have to add your-api-key.
Remote MCP Server OAuth Flow
The Tavily Remote MCP server supports secure OAuth authentication, allowing you to connect and authorize seamlessly with compatible clients.
How to Set Up OAuth Authentication
A. Using MCP Inspector:
- Open the MCP Inspector and click "Open Auth Settings".
- Select the OAuth flow and complete these steps:
- Metadata discovery
- Client registration
- Preparing authorization
- Request authorization and obtain the authorization code
- Token request
- Authentication complete
Once finished, you will receive an access token that lets you securely make authenticated requests to the Tavily Remote MCP server.
B. Using other MCP Clients (Example: Cursor):
You can configure your MCP client to use OAuth without including your Tavily API key in the URL. For example, in your mcp.json:
If you need to clear stored OAuth credentials and reauthenticate, run:
Note:
- OAuth authentication is optional. You can still use API key authentication at any time by including your Tavily API key in the URL query parameter (
?tavilyApiKey=...) or by setting it in theAuthorizationheader, as described above.
Selecting Which API Key Is Used for OAuth
After successful OAuth authentication, you can control which API key is used by naming it mcp_auth_default:
- If you set a key named
mcp_auth_defaultin your personal account, that key will be used for the auth flow. - If you are part of a team that has a key named
mcp_auth_default, that key will be used for the auth flow. - If you have both a personal key and a team key named
mcp_auth_default, the personal key will be prioritized. - If no
mcp_auth_defaultkey is set, thedefaultkey in your personal account will be used. If nodefaultkey is set, the first available key will be used.
Local MCP
Prerequisites 🔧
Before you begin, ensure you have:
- Tavily API key
- If you don't have a Tavily API key, you can sign up for a free account here
- Claude Desktop or Cursor
- Node.js (v20 or higher)
- You can verify your Node.js installation by running:
node --version
- You can verify your Node.js installation by running:
- Git installed (only needed if using Git installation method)
- On macOS:
brew install git - On Linux:
- Debian/Ubuntu:
sudo apt install git - RedHat/CentOS:
sudo yum install git
- Debian/Ubuntu:
- On Windows: Download Git for Windows
- On macOS:
Running with NPX
Default Parameters Configuration ⚙️
You can set default parameter values for the tavily-search tool using the DEFAULT_PARAMETERS environment variable. This allows you to configure default search behavior without specifying these parameters in every request.
Example Configuration
Example usage from Client
Identifying the End User (Optional)
You can optionally identify the end user on whose behalf requests are being made by setting the TAVILY_HUMAN_ID environment variable. When set, Tavily MCP forwards it as the X-Human-Id header on every API call, enabling per-user analytics.
This is entirely optional — leave it unset and behavior is unchanged.
Privacy note: Tavily hashes human_id server-side (SHA-256) before storage, so the raw value is never persisted. Even so, prefer opaque identifiers (e.g. an internal user ID) over raw PII like emails when possible.
Acknowledgments ✨
- Model Context Protocol for the MCP specification
- Anthropic for Claude Desktop
來源:README.md,提交 1c1d54c
工具
0版本歷史
1- v0.2.15最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分