Runs web searches and content extraction through the Tavily search API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tavily --env TAVILY_API_KEY='<TAVILY_API_KEY>' -- npx -y @mcptools/mcp-tavily~/.codex/config.toml
[mcp_servers.tavily]
command = "npx"
args = ["-y", "@mcptools/mcp-tavily"]
env = { TAVILY_API_KEY = "<TAVILY_API_KEY>" }
# codex mcp add tavily --env TAVILY_API_KEY='<TAVILY_API_KEY>' -- npx -y @mcptools/mcp-tavily~/.cursor/mcp.json
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": [
"-y",
"@mcptools/mcp-tavily"
],
"env": {
"TAVILY_API_KEY": "<TAVILY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tavily": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mcptools/mcp-tavily"
],
"env": {
"TAVILY_API_KEY": "<TAVILY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": [
"-y",
"@mcptools/mcp-tavily"
],
"env": {
"TAVILY_API_KEY": "<TAVILY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": [
"-y",
"@mcptools/mcp-tavily"
],
"env": {
"TAVILY_API_KEY": "<TAVILY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tavily": {
"command": "npx",
"args": [
"-y",
"@mcptools/mcp-tavily"
],
"env": {
"TAVILY_API_KEY": "<TAVILY_API_KEY>"
}
}
}
}Environment variables
TAVILY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.