tavily-mcp-python
Supports containerization of the SSE server for isolated and portable deployment of the Tavily MCP server.
Enables configuration through environment variables stored in .env files for API keys and server settings.
Required for source code management and downloading the server implementation.
Supported operating system for installing and running the Tavily MCP server.
Supported operating system for installing and running the Tavily MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tavily-mcp-python search for latest AI developments in healthcare"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Tavily MCP Server
Tavily MCP Server implementation that uses fastmcp and supports both sse and stdio transports. To use this server, you need a Tavily account and a Tavily API key, which must be loaded into the TAVILY_API_KEY environment variable.
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
Prerequisites
git installed. (To clone the repo)
uv installed.
docker installed (Optional: If you are planning to use the SSE server inside a docker container).
To install uv in Linux and MacOS type this in your terminal:
curl -LsSf https://astral.sh/uv/install.sh | shEnvironment Variables
Copy the .env.example file and rename that to .env. Then paste your TAVILY_API_KEY inside there
TAVILY_API_KEY=<YOUR-API-KEY>Optional: You can also configure the port if you are planning to use SSE.
TAVILY_MCP_PORT=<PORT>Running the SSE server
While inside the repo run:
uv run --env-file .env tavily-mcp-sseRunning on STDIO
{
"mcpServers": {
"tavily-mcp-server": {
"command": "uv",
"args": [
"run",
"--directory",
"<LOCATION-TO-THE-REPO>",
"tavily-mcp-stdio"
],
"env": {
"TAVILY_API_KEY": "<YOUR-API-KEY>"
}
}
}
}Docker SSE Server
First you need to build the image using the Dockerfile inside this repository. Run this to build the image:
docker build -t tavily-mcp .Then you can run the container using the environment variables inside the env file
docker run --name tavily-mcp \
-p 127.0.0.1:8000:8000 \
--env-file .env \
tavily-mcpOr you can specify the environment variables yourself.
docker run --name tavily-mcp \
-p 127.0.0.1:8000:8000 \
-e TAVILY_API_KEY=<YOUR-API-KEY>
tavily-mcpAvailable Tools
4 toolstavily-crawlC
A powerful web crawler that initiates a structured web crawl starting from a specified base URL. The crawler expands from that point like a tree, following internal links across pages. You can control how deep and wide it goes, and guide it to focus on specific sections of the site.
Inputs: instructions (required), url (required), allow_external, categories, +7 more.
tavily-extractC
A powerful web content extraction tool that retrieves and processes raw content from specified URLs, ideal for data collection, content analysis, and research tasks.
Inputs: urls (required), extract_depth, format, include_images.
tavily-mapC
A powerful web mapping tool that creates a structured map of website URLs, allowing you to discover and analyze site structure, content organization, and navigation paths. Perfect for site audits, content discovery, and understanding website architecture.
Inputs: instructions (required), url (required), allow_external, categories, +5 more.
tavily-searchA
A powerful web search tool that provides comprehensive, real-time results using Tavily's AI search engine. Returns relevant web content with customizable parameters for result count, content type, and domain filtering. Ideal for gathering current information, news, and detailed web content analysis.
Inputs: query (required), auto_parameters, country, days, +10 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: crawling, extracting, mapping, and searching. The descriptions emphasize unique functions—structured crawling, content extraction, site mapping, and AI-powered search—with no overlap that could cause confusion.
All tool names follow a consistent 'tavily-' prefix with a descriptive action suffix (crawl, extract, map, search). This uniform pattern makes the set predictable and easy to navigate for an agent.
Four tools are well-scoped for a web-focused server, covering key operations like crawling, extraction, mapping, and search. Each tool earns its place without feeling excessive or insufficient for the domain.
The tool set provides complete coverage for web content tasks: initiating crawls, extracting content, mapping site structures, and searching the web. There are no obvious gaps, enabling agents to handle end-to-end workflows in this domain.
Maintenance
Related MCP Connectors
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server implementation that integrates the Tavily Search API, providing optimized search capabilities for LLMs.15MIT
- FlicenseBqualityDmaintenanceMCP server using Tavily API for web search, enabling web search queries via stdio transport.5-
- FlicenseAqualityDmaintenanceMCP server that provides web search capabilities using the Tavily API.3-
- FlicenseBqualityDmaintenanceMCP server that provides web search functionality using the Tavily API. It runs in stdio transport mode and can be integrated with Cursor or other MCP clients.3-