Tavily MCP Server is a production-grade MCP server for AI agents, with the core goal of providing real-time web search and web data processing capabilities for AI applications. It integrates with various MCP clients through the Model Context Protocol, enabling AI assistants to directly call search, extract, map, and crawl tools.
Main capabilities The server provides four types of tools:
- tavily-search: real-time web search capability, allowing AI agents to obtain the latest web information.
- tavily-extract: intelligently extract data from web pages.
- tavily-map: create a structured map of a website to help understand the site structure.
- tavily-crawl: systematically explore and crawl website content.
Usage Tavily MCP supports two access modes:
- Remote MCP server: no local installation or configuration is required; simply use the remote MCP server URL together with a Tavily API Key to connect. The API Key can also be passed through the Authorization request header (provided the MCP client supports it). When using the remote MCP, a JSON object can be passed through the DEFAULT_PARAMETERS request header to specify default parameters for all requests.
- Local run: run via NPX.
Client integration
- Claude Code: use the claude mcp add command to add the server, supporting two authentication methods: pass the API Key directly in the URL, or first add the server without an API Key and then complete the authentication flow (run claude to start, enter /mcp to open MCP server management, select the Tavily server and complete authentication). Adding the --scope user parameter makes the server globally available across all projects.
- Cursor: install via the "Add to Cursor" button; after installation, edit the configuration to add your own Tavily API Key (add your-api-key in mcp.json).
OAuth authentication The remote MCP server supports secure OAuth authentication. Metadata discovery, client registration, authorization preparation, authorization request and authorization code retrieval, token request, authentication completion, and other steps can be completed through MCP Inspector.Finally, obtain an access token. Other MCP clients (such as Cursor) can also be configured to use OAuth without including an API Key in the URL. If you need to clear stored OAuth credentials and reauthenticate, you can run the corresponding command. OAuth authentication is optional, and API Key authentication can still be used at any time via the URL query parameter (?tavilyApiKey=...) or the Authorization request header.
After successful OAuth authentication, you can control which key is used by naming the API Key mcp_auth_default: a key with that name set in a personal account will be used; if the team it belongs to also has a key with that name, it will also be used; if both the individual and the team have one, the personal key takes precedence; if no key with that name is set, the default key in the personal account is used, and if there is no default key either, the first available key is used.
Prerequisites
- Tavily API Key (available by registering for a free account at tavily.com)
- Claude Desktop or Cursor
- Node.js (v20 or higher), verifiable with node --version
- Git (only required when using the Git installation method): on macOS use brew install git; on Linux for Debian/Ubuntu use sudo apt install git, for RedHat/CentOS use sudo yum install git; on Windows download Git for Windows
Default parameter configuration Default parameter values for the tavily-search tool can be set via the DEFAULT_PARAMETERS environment variable, so that these parameters do not need to be specified repeatedly in each request.
End-user identification (optional) The end user represented by the request can be identified by setting the TAVILY_HUMAN_ID environment variable. Once set, Tavily MCP will forward it as the X-Human-Id request header on each API call to support per-user analytics. This feature is entirely optional, and behavior is unchanged if it is not set. Privacy note: Tavily hashes human_id with SHA-256 on the server side before storing it, and the original value is not persisted; even so, it is still recommended to prefer opaque identifiers (such as an internaluser ID) rather than raw personally identifiable information such as an email address.
Use cases Suitable for scenarios where AI agents need access to real-time web information, extract structured data from web pages, analyze website structure, or systematically collect website content, for example when used with the Neo4j MCP server, or integrated with Cline in VS Code.
Limitations Use requires a Tavily API Key; running locally requires Node.js v20 or higher; Git is only required when using the Git installation method.