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 (like include_images or search_depth) without specifying them in every request.
Example via Shell Export:
export DEFAULT_PARAMETERS='{"include_images": true}'
Example via MCP Client Configuration (e.g., Claude Desktop):
In your client's configuration file, include the DEFAULT_PARAMETERS key within the env object. Note that the JSON string must be properly escaped.
{
"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\"}"
}
}
}
}