tavily-mcp

v0.2.15
io.github.tavily-ai/tavily-mcp Checked 1 hour ago Published 10 months ago

MCP server for advanced web search using Tavily

Values you need

VariableWhat it is
TAVILY_API_KEYrequired secret Your Tavily API key from tavily.com
DEFAULT_PARAMETERSoptional JSON string with default search parameters (e.g., {"include_images": true, "max_results": 15})

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add tavily-mcp -e 'TAVILY_API_KEY=<TAVILY_API_KEY>' -- npx -y tavily-mcp@0.2.15
Add to claude_desktop_config.json
{
  "mcpServers": {
    "tavily-mcp": {
      "args": [
        "-y",
        "tavily-mcp@0.2.15"
      ],
      "command": "npx",
      "env": {
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tavily-mcp": {
      "args": [
        "-y",
        "tavily-mcp@0.2.15"
      ],
      "command": "npx",
      "env": {
        "TAVILY_API_KEY": "<TAVILY_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "TAVILY_API_KEY",
      "id": "tavily-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "tavily-mcp": {
      "args": [
        "-y",
        "tavily-mcp@0.2.15"
      ],
      "command": "npx",
      "env": {
        "TAVILY_API_KEY": "${input:tavily-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tavily-mcp]
command = "npx"
args = ["-y", "tavily-mcp@0.2.15"]
env = { "TAVILY_API_KEY" = "<TAVILY_API_KEY>" }

For AI agents

  1. Ask the user for: TAVILY_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: tavily_search, tavily_extract, tavily_crawl, tavily_map.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json