Performs a basic search with customizable options
Performs a context-aware search for better relevance
Performs a question and answer focused search
Extracts content from URLs with configurable options
Tavily Search provides a powerful interface to the Tavily API, enabling advanced web search capabilities and content extraction directly within your AI workflows. With multiple specialized search tools, you can perform general searches, context-aware searches, and question-answer focused searches with customizable parameters. The MCP server offers extensive configuration options for search depth, topic filtering, time ranges, and content inclusion, allowing you to fine-tune your search results. Additionally, the content extraction tool enables you to pull and process content from specific URLs with configurable extraction options.
Tavily Search is a Model Context Protocol (MCP) server that provides access to Tavily's powerful search API. This integration allows AI assistants to perform web searches and extract content from URLs with various configuration options.
Before using Tavily Search, you'll need:
The easiest way to install Tavily Search is via Smithery:
npx -y @smithery/cli install @kshern/mcp-tavily --client claude
You can install the package directly:
npm install @mcptools/mcp-tavily
Or use it with npx without installation:
npx @mcptools/mcp-tavily
To use Tavily Search with your AI assistant, add the following configuration to your MCP setup:
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": ["-y", "@mcptools/mcp-tavily"],
"env": {
"TAVILY_API_KEY": "your-api-key"
}
}
}
}
Replace your-api-key
with your actual Tavily API key. Alternatively, you can set the TAVILY_API_KEY
environment variable before running the server.
All search tools support the following options:
searchDepth
: "basic" or "advanced" - Controls the depth of the searchtopic
: "general", "news", or "finance" - Specifies the search topic categorydays
: Number of days to search backmaxResults
: Maximum number of results to returnincludeImages
: Boolean to include images in resultsincludeImageDescriptions
: Boolean to include image descriptionsincludeAnswer
: Boolean to include an answer in resultsincludeRawContent
: Boolean to include raw contentincludeDomains
: Array of domains to include in searchexcludeDomains
: Array of domains to exclude from searchmaxTokens
: Maximum number of tokens in the responsetimeRange
: "year", "month", "week", "day" (or "y", "m", "w", "d") - Time range for searchThe extract tool supports these options:
extractDepth
: "basic" or "advanced" - Controls the depth of extractionincludeImages
: Boolean to include images in extracted contentAll tools return responses in a standardized format:
{
"content": [
{
"type": "text",
"text": "Result content here"
}
]
}
For search results, each item typically includes:
For extracted content, each item includes:
For development and debugging, you can use the MCP Inspector, which provides a user interface for testing tool calls, viewing server responses, and monitoring server state.