Tavily MCP server

Web search and scraping

MCP server for advanced web search using Tavily.

Your AI app calls the Tavily MCP server, which does the web search and scraping work and sends the result back to the chat.

About Tavily

Tavily is the official MCP server from tavily-ai, filed in our directory under web search and scraping. MCP server for advanced web search using Tavily.

Tavily runs on your own machine: your AI app starts it with the command npx -y tavily-mcp@0.2.15 and talks to it over standard input and output. It needs TAVILY_API_KEY set before Tavily starts.

Tavily is listed in the official MCP registry as io.github.tavily-ai/tavily-mcp, version 0.2.15.

At a glance

Publisher
tavily-ai, the company behind the product
Runs
Locally on your machine
Install from
Node.js package on npm: tavily-mcp
Written in
TypeScript
License
MIT
GitHub stars
2,509
Official MCP registry
io.github.tavily-ai/tavily-mcp

How to set up Tavily

  1. Install Node.js on the machine that runs your AI app, because Tavily starts with npx and downloads its package on first run.
  2. Create TAVILY_API_KEY for Tavily in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Tavily to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Tavily tools to confirm the connection.
  5. Run one read-only task with Tavily first, and keep your app asking before each tool call until the results look right.

Tavily compared with similar servers

  • webclaw by 0xMassi has fewer GitHub stars than Tavily (2.5k against 2.5k); Tavily is official while webclaw is a community server, and webclaw runs as a remote server and Tavily runs on your own machine.
  • MCP by perplexityai has more GitHub stars than Tavily (2.7k against 2.5k); both are official servers, and both run locally.
  • Crawl4ai RAG by coleam00 has fewer GitHub stars than Tavily (2.3k against 2.5k); Tavily is official while Crawl4ai RAG is a community server, and both run locally.

Before you connect Tavily

  • Give Tavily its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Tavily tool call until you trust what it does with them.
  • Treat text that Tavily fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Tavily on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Tavily

How marketing and sales teams put Tavily to work, by company size. Pick the size closest to yours and start Tavily on one use case.

Small business

  • A founder can use Tavily to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Tavily what competitors launched this month and get the pages, not just a summary.
  • Tavily runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Tavily to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Tavily to research accounts from public pages and add one specific line to each first email.
  • Start Tavily on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise research and competitive intel teams can schedule Tavily to monitor many sources, with results stored and cited for review.
  • Large orgs can route Tavily through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Because Tavily comes from tavily-ai, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Tavily README

From tavily-ai/tavily-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Tavily MCP Server

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:

https://mcp.tavily.com/mcp/?tavilyApiKey=<your-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:

Authorization: Bearer <your-api-key>

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:

{"include_images":true, "search_depth": "basic", "max_results": 10}

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:

claude mcp add --transport http tavily https://mcp.tavily.com/mcp/?tavilyApiKey=<your-api-key>
Option 2: OAuth Authentication Flow

Add the server without an API key in the URL:

claude mcp add --transport http tavily https://mcp.tavily.com/mcp

After adding, you'll need to complete the authentication flow:

  1. Run claude to start Claude Code
  2. Type /mcp to open the MCP server management
  3. 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:

claude mcp add --transport http --scope user tavily https://mcp.tavily.com/mcp/?tavilyApiKey=<your-api-key>

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 tavily.com.

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.

{
  "mcpServers": {
    "tavily-remote-mcp": {
      "command": "npx -y mcp-remote https://mcp.tavily.com/mcp/?tavilyApiKey=<your-api-key>",
      "env": {}
    }
  }
}
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:
    1. Metadata discovery
    2. Client registration
    3. Preparing authorization
    4. Request authorization and obtain the authorization code
    5. Token request
    6. 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:

{
  "mcpServers": {
    "tavily-remote-mcp": {
      "command": "npx mcp-remote https://mcp.tavily.com/mcp",
      "env": {}
    }
  }
}

If you need to clear stored OAuth credentials and reauthenticate, run:

rm -rf ~/.mcp-auth

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 the Authorization header, as described above.
Choosing an Account for OAuth

Each time you connect, Tavily asks whether to use your personal account or one of your organizations. To switch Tavily logins, choose Use a different account.

  • Key used: the account's mcp_auth_default key. Tavily creates it if it doesn't exist.
  • Organization keys: used even if another member created the key or your organization restricts key access.
  • Personal accounts off: if an organization you belong to disables personal accounts, Personal isn't offered.
  • Lost access: if you lose access to the account or its key is deleted, requests fail and ask you to reconnect. Tavily never switches accounts on its own.

Local MCP

Prerequisites 🔧

Before you begin, ensure you have:

  • Tavily API key
  • Claude Desktop or Cursor
  • Node.js (v20 or higher)
    • You can verify your Node.js installation by running:
      • node --version
  • 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
    • On Windows: Download Git for Windows
Running with NPX
npx -y tavily-mcp@latest 

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
export DEFAULT_PARAMETERS='{"include_images": true}'
Example usage from Client
{
  "mcpServers": {
    "tavily-mcp": {
      "command": "npx",
      "args": ["-y", "tavily-mcp@latest"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here",
        "DEFAULT_PARAMETERS": "{\"include_images\": true, \"max_results\": 15, \"search_depth\": \"advanced\"}"
      }
    }
  }
}

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.

{
  "mcpServers": {
    "tavily-mcp": {
      "command": "npx",
      "args": ["-y", "tavily-mcp@latest"],
      "env": {
        "TAVILY_API_KEY": "your-api-key-here",
        "TAVILY_HUMAN_ID": "your-user-id"
      }
    }
  }
}

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 ✨

Questions about Tavily

What is the Tavily MCP server?

MCP server for advanced web search using Tavily. Tavily is published by tavily-ai, the company behind the product, on GitHub at tavily-ai/tavily-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Tavily MCP server?

Add Tavily to your AI app's MCP config with the command npx -y tavily-mcp@0.2.15. In Claude Code, run claude mcp add --transport stdio tavily -- npx -y tavily-mcp@0.2.15. To run Tavily this way you need Node.js installed.

Does Tavily need an API key?

Yes. Tavily expects TAVILY_API_KEY to be set. Create the key for Tavily in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Tavily an official MCP server?

Yes. Tavily is published by tavily-ai, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is Tavily under?

Tavily is released under the MIT license, according to its GitHub repository. The license covers the code of Tavily; the service it connects to has its own terms.