Purpose
mcp-tavily is a Model Context Protocol (MCP) server implementation of the Tavily API, used to provide advanced search and content extraction capabilities for MCP-enabled clients.
Main Capabilities
- Multiple search tools:
- search: basic search functionality with support for custom options.
- searchContext: context-aware search, used to improve relevance.
- searchQNA: question-and-answer-focused search.
- Content extraction: can extract content from URLs, with support for configurable options.
- Rich configuration options: provides extensive options for search depth, filtering, and content inclusion, among others.
- Response format: all tools return responses in a unified format. Each search result item contains the corresponding fields; each extracted content item contains the corresponding fields, and failed URLs are listed if any.
- Error handling: all tools include appropriate error handling, and descriptive error messages are thrown when errors occur.
Usage
Add the Tavily MCP server to the MCP configuration. Note: your-api-key must be replaced with the actual Tavily API key, or it can be set as the environment variable TAVILY_API_KEY before running the server.
Installation methods:
- Automatic installation to Claude Desktop via Smithery.
- Manual installation.
- Run directly with npx.
Environment requirements:
- Node.js 16 or later.
- Tavily API key (available from Tavily).
Manual installation steps:
- Clone the repository.
- Install dependencies.
- Set the Tavily API key.
Debugging: MCP Inspector is recommended for development and debugging; it provides a user interface for testing tool calls, viewing server responses, debugging tool execution, and monitoring server status.
Applicable Scenarios
Suitable for scenarios that require integrating Tavily search and content extraction capabilities in clients through the MCP protocol, including basic search, context-aware search, Q&A search, and content extraction from URLs.
Limitations
The materials do not provide specific pricing, cost, performance metrics, or platform compatibility details. Usage requires preparing a Tavily API key yourself and meeting the Node.js 16 or later requirement.