Tavily MCP Server

tavily-ai/tavily-mcp · MCP server

Поиск в интернете в реальном времени для агента: выдача с выдержками, извлечение содержимого страниц, построение карты сайта и обход сайта для сбора данных.

Обзор

Авторtavily-aiОрганизация
Репозиторийtavily-ai/tavily-mcp ↗
РазделПоиск и документация
Как подключаетсяУдалённый сервер (URL) · https://mcp.tavily.com/mcp
Звёзды2 452
ЛицензияMIT
Обновлён22 октября 2026 г.
Что понадобитсяаккаунт или API-ключ Tavily
Переменные и ключи
  • TAVILY_API_KEY — Tavily API key

Подключение

Выберите своё приложение и скопируйте готовую настройку. Значения в угловых скобках замените своими ключами.

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

При первом подключении откроется окно входа в сервис (OAuth) — ключ вставлять не нужно.

Другой вариант · Node.js — npx

claude mcp add tavily -e TAVILY_API_KEY=<TAVILY_API_KEY> -- npx -y tavily-mcp@latest

README

оригинальный текст автора · только чтение

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:

  • Run claude to start Claude Code
  • Type /mcp to open the MCP server management
  • 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

[](https://cursor.com/en/install-mcp?name=tavily-remote-mcp&config=eyJjb21tYW5kIjoibnB4IC15IG1jcC1yZW1vdGUgaHR0cHM6Ly9tY3AudGF2aWx5LmNvbS9tY3AvP3RhdmlseUFwaUtleT08eW91ci1hcGkta2V5PiIsImVudiI6e319)

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 here ↗.

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:
  • Metadata discovery
  • Client registration
  • Preparing authorization
  • Request authorization and obtain the authorization code
  • Token request
  • 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.

Selecting Which API Key Is Used for OAuth

After successful OAuth authentication, you can control which API key is used by naming it mcp_auth_default:

  • If you set a key named mcp_auth_default in your personal account, that key will be used for the auth flow.
  • If you are part of a team that has a key named mcp_auth_default, that key will be used for the auth flow.
  • If you have both a personal key and a team key named mcp_auth_default, the personal key will be prioritized.
  • If no mcp_auth_default key is set, the default key in your personal account will be used. If no default key is set, the first available key will be used.

Local MCP

Prerequisites 🔧

Before you begin, ensure you have:

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 ✨

Вопросы и ответы

Что делает MCP-сервер Tavily MCP Server?

Поиск в интернете в реальном времени для агента: выдача с выдержками, извлечение содержимого страниц, построение карты сайта и обход сайта для сбора данных.

Как подключить Tavily MCP Server к Claude, Cursor или VS Code?

Tavily MCP Server работает как удалённый сервер: достаточно добавить его адрес в настройки приложения. Готовые настройки для Claude Code, Claude Desktop, Cursor, VS Code и Codex — в блоке «Подключение» на этой странице.

Что нужно для работы Tavily MCP Server?

аккаунт или API-ключ Tavily.

Tavily MCP Server бесплатный?

Код сервера открыт на GitHub под лицензией MIT. Сам сервис, к которому он подключается, может быть платным — смотрите тарифы автора.

Что такое MCP-сервер?

MCP (Model Context Protocol) — открытый стандарт, по которому ИИ-агенты подключаются к внешним программам и данным. MCP-сервер даёт модели новые инструменты: открыть страницу, прочитать файл, сделать запрос к базе или сервису.

Безопасно ли подключать MCP-серверы?

MCP-сервер выполняет действия от вашего имени, поэтому ставьте серверы из проверенных источников, давайте ключам минимальные права и проверяйте, что агент делает с файлами и сервисами. Не публикуйте ключи в открытых файлах настроек.

Похожие MCP-серверы

Все MCP-серверы →
Context7Подтягивает в контекст агента актуальную документацию и примеры кода нужной версии библиотеки, чтобы он не выдумывал устаревшие или несуществующие API.upstash63.5kGitMCPПревращает любой репозиторий GitHub в источник документации: агент получает свежие доки и код проекта, ищет по ним и реже выдумывает несуществующие API.idosal8.5kExa MCP ServerВеб-поиск через Exa: агент ищет по любой теме, получает очищенный текст страниц в markdown, а с дополнительными инструментами — фильтры по доменам и датам и многошаговые исследования.exa-labs5.2kFliИщет авиабилеты в Google Flights: рейсы на конкретную дату с фильтрами по классу, пересадкам, авиакомпаниям и альянсам, а также самые дешёвые даты в диапазоне.punitarani3.2karxiv-mcp-serverРабота со статьями arXiv: поиск по теме и категориям, загрузка и чтение по разделам, исходный LaTeX, BibTeX, граф цитирований и отслеживание новых публикаций по темам.blazickjp3.2kPerplexity MCP ServerВеб-поиск и исследования через API Perplexity: ранжированная выдача с датами, быстрые ответы со ссылками на источники, глубокие исследования и пошаговые рассуждения.perplexityai2.6k