Tavily Search MCP
Tavily Search MCP
Tavily Search MCP es un servicio MCP basado en Streamable HTTP que encapsula las capacidades de búsqueda en línea y extracción de contenido web de Tavily como herramientas MCP.
Funciones
web_search: Realiza búsquedas en línea según palabras clave de consulta.web_fetch: Extrae contenido de texto legible según la URL de una página web.
Related MCP server: tavily-mcp
Requisitos del entorno
Python 3.11+
Tavily API Key
Cliente MCP compatible con
streamable_http
Instalación
Primero, crea y activa tu propio entorno virtual de Python, luego instala las dependencias y el proyecto actual:
python -m pip install -r requirements.txt
python -m pip install -e .Copia la plantilla de variables de entorno:
cp .env.example .envRellena la configuración en .env:
TAVILY_API_KEY=tvly-your-api-key
MCP_SERVER_HOST=127.0.0.1
MCP_SERVER_PORT=21029
MCP_SERVER_PATH=/mcp
MCP_ALLOWED_HOSTS=127.0.0.1,127.0.0.1:21029,localhost,localhost:21029
MCP_ALLOWED_ORIGINS=*Si se implementa en un servidor, establece MCP_SERVER_HOST en 0.0.0.0 y añade tu dominio público o nombre de host de acceso a MCP_ALLOWED_HOSTS.
Iniciar el servicio
python -m tavily_search_mcp.serverDirección MCP local predeterminada:
http://127.0.0.1:21029/mcpVerificación de salud:
curl http://127.0.0.1:21029/healthCliente de prueba
Listar las herramientas MCP:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp list-toolsLlamar a la búsqueda en línea:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp web-search "Tavily Python SDK" --max-results 2Llamar a la extracción de contenido web:
python -m tavily_search_mcp.client --url http://127.0.0.1:21029/mcp web-fetch "https://docs.tavily.com/"Configuración del cliente MCP
Ejemplo de servicio local:
{
"mcpServers": {
"tavily-search": {
"type": "streamable_http",
"url": "http://127.0.0.1:21029/mcp",
"headers": {}
}
}
}Ejemplo de servicio remoto:
{
"mcpServers": {
"tavily-search": {
"type": "streamable_http",
"url": "https://your-domain.example/mcp",
"headers": {}
}
}
}Implementación en servidor
Puedes usar el script de implementación del repositorio para cargar e iniciar el servicio mediante tu propia clave SSH:
.\scripts\deploy_remote.ps1 -HostName "your-server.example" -User "ubuntu" -IdentityFile "<path-to-private-key>"This server cannot be deployed
Maintenance
Related MCP Connectors
Docs: https://docs.keenable.ai/mcp-server Keenable is a free, remote MCP server that gives agents access to the web index. Search the web with ranked results and date/site filters, then fetch any indexed page as clean markdown. Works out of the box with no account or API key.
Web search and clean-text fetch MCP server (Tavily-powered, SSRF-guarded).
Free web search for AI agents. No API key required. Hosted MCP in active development.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables web search and document retrieval capabilities through Tavily API and LangConnect vector database, supporting AI agents in gathering information for comprehensive report generation.23-
- AlicenseNot gradedqualityDmaintenanceA web search and extraction MCP server powered by Tavily, providing tools for AI-powered search, content extraction from URLs, and Q\&A with source citations.MIT
- FlicenseAqualityDmaintenanceMCP server that provides web search capabilities using the Tavily API.3-
- AlicenseBqualityDmaintenanceMCP server providing search, extract, map, and crawl tools powered by Tavily for real-time web data access.416 npmMIT