Search1API MCP Server
Servidor MCP de Search1API
Un servidor de Protocolo de Contexto de Modelo (MCP) que proporciona funcionalidad de búsqueda y rastreo mediante Search1API.
Prerrequisitos
Node.js >= 18.0.0
Una clave API Search1API válida (consulte la Guía de configuración a continuación para saber cómo obtenerla y configurarla)
Related MCP server: WebSearch-MCP
Instalación (Independiente/General)
Clonar el repositorio:
git clone https://github.com/fatwang2/search1api-mcp.git cd search1api-mcpConfigurar la clave API: Antes de compilar, debe proporcionar su clave API de Search1. Consulte la sección "Guía de configuración" a continuación para conocer los diferentes métodos (por ejemplo, usar un archivo
.envo variables de entorno).Instalar dependencias y compilar:
npm install npm run buildNota: Si utiliza el método de archivo
.envdel proyecto para la clave API, asegúrese de que exista antes de este paso.
Uso (autónomo/general)
Asegúrese de que su clave API esté configurada (consulte la Guía de configuración ).
Iniciar el servidor:
npm startEl servidor estará entonces listo para aceptar conexiones de clientes MCP.
Guía de configuración
1. Obtener la clave API de Search1
Regístrate en Search1API
Obtén tu clave API desde tu panel de control.
2. Configurar la clave API
Debes poner tu clave API a disposición del servidor. Elige uno de los siguientes métodos:
Método A: Archivo .env del proyecto (recomendado para Independiente o LibreChat)
Este método es necesario si se integra con la versión actual de LibreChat (consulte la sección específica a continuación).
En el directorio raíz del proyecto
search1api-mcp, cree un archivo llamado.env:# In the search1api-mcp directory echo "SEARCH1API_KEY=your_api_key_here" > .envReemplace
your_api_key_herecon su clave real.Asegúrese de que este archivo exista antes de ejecutar
npm install && npm run build.
Método B: Variable de entorno (solo independiente)
Establezca la variable de entorno SEARCH1API_KEY antes de iniciar el servidor.
export SEARCH1API_KEY="your_api_key_here"
npm startMétodo C: Configuración del cliente MCP (avanzada)
Algunos clientes MCP permiten especificar variables de entorno directamente en su configuración. Esto resulta útil para clientes como Cursor, extensiones de VS Code, etc.
{
"mcpServers": {
"search1api": {
"command": "npx",
"args": [
"-y",
"search1api-mcp"
],
"env": {
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
}
}
}
}Nota para usuarios de LibreChat: Debido a las limitaciones actuales de LibreChat, se requiere el método A (archivo .env del proyecto). Consulte la sección de integración a continuación para obtener instrucciones completas.
Integración con LibreChat (Docker)
Esta sección detalla los pasos necesarios para la integración con LibreChat a través de Docker.
Descripción general:
Clone el repositorio de este servidor en una ubicación accesible mediante su
docker-compose.ymlde LibreChat.Configure la clave API requerida utilizando el método de archivo
.envdel proyecto dentro del directorio de este servidor.Construye este servidor.
Indique a LibreChat cómo ejecutar este servidor editando
librechat.yaml.Asegúrese de que el código del servidor compilado esté disponible dentro del contenedor LibreChat a través de un enlace de volumen Docker.
Reinicie LibreChat.
Paso a paso:
Clonar el repositorio: Dirígete al directorio de tu equipo host donde administras los servicios externos de LibreChat (suele estar junto a
docker-compose.yml). Una ubicación común es el directorio dedicado amcp-server.# Example: Navigate to where docker-compose.yml lives, then into mcp-server cd /path/to/your/librechat/setup/mcp-server git clone https://github.com/fatwang2/search1api-mcp.gitNavegue hasta el directorio del servidor:
cd search1api-mcpConfigurar la clave API (método de archivo
.envdel proyecto: necesario para LibreChat):# Create the .env file echo "SEARCH1API_KEY=your_api_key_here" > .env # IMPORTANT: Replace 'your_api_key_here' with your actual Search1API keyInstalar dependencias y compilar: este paso compila el código del servidor en el directorio
build.npm install npm run buildConfigurar
librechat.yaml: Edite el archivo principallibrechat.yamlpara indicarle a LibreChat cómo ejecutar este servidor MCP. Agregue una entrada enmcp_servers:# In your main librechat.yaml mcp_servers: # You can add other MCP servers here too search1api: # Optional: Display name for the server in LibreChat UI # name: Search1API Tools # Command tells LibreChat to use 'node' command: node # Args specify the script for 'node' to run *inside the container* args: - /app/mcp-server/search1api-mcp/build/index.jsLa ruta
args(/app/...) es la ubicación dentro del contenedor de la API de LibreChat donde se accederá al servidor compilado (gracias al enlace de volumen en el siguiente paso).
Configurar la vinculación de volúmenes de Docker: Edite su
docker-compose.yml(o, más probablemente, sudocker-compose.override.yml) para asignar el directoriosearch1api-mcpdesde su equipo host al contenedor de la API de LibreChat. Busque la secciónvolumes:para el servicioapi::# In your docker-compose.yml or docker-compose.override.yml services: api: # ... other service config ... volumes: # ... other volumes likely exist here ... # Add this volume bind: - ./mcp-server/search1api-mcp:/app/mcp-server/search1api-mcpRuta del host (
./mcp-server/search1api-mcp): Esta es la ruta en tu equipo host correspondiente a la ubicación del archivodocker-compose.yml. Ajústala si clonaste el repositorio en otro lugar.Ruta del contenedor (
:/app/mcp-server/search1api-mcp): Esta es la ruta dentro del contenedor. Debe coincidir con la estructura de directorios utilizada en la rutaargs``librechat.yaml.
Reinicie LibreChat: aplique los cambios reconstruyendo (si modificó
docker-compose.yml) y reiniciando su pila de LibreChat.docker compose down && docker compose up -d --build # Or: docker compose restart api (if only librechat.yaml changed)
Ahora, el servidor Search1API debería estar disponible como proveedor de herramientas dentro de LibreChat.
Características
Funcionalidad de búsqueda web
Funcionalidad de búsqueda de noticias
Extracción de contenido de páginas web
Extracción del mapa del sitio web
Pensamiento profundo y resolución de problemas complejos con DeepSeek R1
Integración perfecta con Claude Desktop, Cursor, Windsurf, Cline y otros clientes MCP
Herramientas
1. Herramienta de búsqueda
Nombre:
searchDescripción: Busque en la web usando Search1API
Parámetros:
query(obligatoria): Consulta de búsqueda en lenguaje natural. Sea específico y conciso para obtener mejores resultados.max_results(opcional, predeterminado: 10): Número de resultados a devolversearch_service(opcional, predeterminado: "google"): servicio de búsqueda a utilizar (google, bing, duckduckgo, yahoo, x, reddit, github, youtube, arxiv, wechat, bilibili, imdb, wikipedia)crawl_results(opcional, valor predeterminado: 0): Número de resultados a rastrear para el contenido completo de la página webinclude_sites(opcional): Lista de sitios para incluir en la búsquedaexclude_sites(opcional): Lista de sitios para excluir de la búsquedatime_range(opcional): rango de tiempo para los resultados de búsqueda ("día", "mes", "año")
2. Herramienta de noticias
Nombre:
newsDescripción: Busque artículos de noticias utilizando Search1API
Parámetros:
query(obligatoria): Consulta de búsqueda en lenguaje natural. Sea específico y conciso para obtener mejores resultados.max_results(opcional, predeterminado: 10): Número de resultados a devolversearch_service(opcional, predeterminado: "bing"): servicio de búsqueda a utilizar (google, bing, duckduckgo, yahoo, hackernews)crawl_results(opcional, valor predeterminado: 0): Número de resultados a rastrear para el contenido completo de la página webinclude_sites(opcional): Lista de sitios para incluir en la búsquedaexclude_sites(opcional): Lista de sitios para excluir de la búsquedatime_range(opcional): rango de tiempo para los resultados de búsqueda ("día", "mes", "año")
3. Herramienta de rastreo
Nombre:
crawlDescripción: Extraer contenido de una URL usando Search1API
Parámetros:
url(obligatorio): URL para rastrear
4. Herramienta de mapa del sitio
Nombre:
sitemapDescripción: Obtener todos los enlaces relacionados desde una URL
Parámetros:
url(obligatorio): URL para obtener el mapa del sitio
5. Herramienta de razonamiento
Nombre:
reasoningDescripción: Una herramienta para el pensamiento profundo y la resolución de problemas complejos con un modelo deepseek r1 rápido y capacidad de búsqueda web (puede cambiar a cualquier otro modelo en el sitio web search1api, pero la velocidad no está garantizada)
Parámetros:
content(obligatorio): La pregunta o problema que necesita una reflexión profunda.
6. Herramienta de tendencias
Nombre:
trendingDescripción: Obtenga temas de tendencia de plataformas populares
Parámetros:
search_service(obligatorio): especifica la plataforma para obtener los temas en tendencia (github, hackernews)max_results(opcional, valor predeterminado: 10): número máximo de elementos de tendencia que se devolverán
Historial de versiones
v0.2.0: Se agregó soporte
.envde respaldo para la integración de LibreChat y dependencias actualizadas.v0.1.8: Se agregaron los servicios de búsqueda X(Twitter) y Reddit
v0.1.7: Se agregó la herramienta de tendencias para GitHub y Hacker News
v0.1.6: Se agregó el servicio de búsqueda de Wikipedia
v0.1.5: Se agregaron nuevos parámetros de búsqueda (include_sites, exclude_sites, time_range) y nuevos servicios de búsqueda (arxiv, wechat, bilibili, imdb)
v0.1.4: Se agregó una herramienta de razonamiento con deepseek r1 y se actualizó la guía de configuración de Cursor y Windsurf
v0.1.3: Se agregó la funcionalidad de búsqueda de noticias
v0.1.2: Se agregó la funcionalidad del mapa del sitio
v0.1.1: Se agregó funcionalidad de rastreo web
v0.1.0: Versión inicial con funcionalidad de búsqueda
Licencia
Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.
Available Tools
11 toolsaskAsk across sourcesARead-onlyInspect
Search several sources at once from a natural-language request when the right engine is unclear. Search1API picks up to five engines (web, Hacker News, Reddit, GitHub, X, arXiv, Wikipedia, and more) and a time window from the wording, then returns up to 10 citable results ranked by relevance, plus the intent it used and any engines that failed. Costs 5 credits per call; use search when you already know the engine.
Inputs: query (required). Returns: errors, intent, results
crawlRead a web pageARead-onlyInspect
Read a public web page supplied by the user or returned by search. Returns its title, URL, and main content as text, so you can answer from the full page instead of a snippet.
Inputs: url (required). Returns: result
deepcrawlCrawl a websiteARead-onlyInspect
Read many pages of one website in a single task, such as a documentation section, when the user needs content from across a site rather than one page. Finds the site's URLs through its sitemap, keeps those whose path matches the path rules, and returns up to max_pages pages as citable results with title, URL, and Markdown text, plus page counts and the URLs that failed. Costs 20 credits per started task, however many pages it reads. Waits about 45 seconds; if the crawl is still running, the result holds a task_id, and calling deepcrawl again with that task_id collects the pages at no cost. Use crawl for a single page and sitemap for a list of URLs without their content.
Inputs: url, type, task_id, max_pages, +2 more. Returns: note, stats, failed, status, +5 more
mapsFind places on Google MapsARead-onlyInspect
Find local businesses and places on Google Maps when the user asks where something is, wants nearby options, or needs a list of businesses with contact details. Returns one page of up to 20 places, each with its name and Google Maps link plus address, phone, website, category, rating, review count, coordinates, and opening hours when available. Costs 3 credits per page, however many places it holds; use search for webpages and crawl to read a business website.
Inputs: query (required), page, country, language, +2 more. Returns: results
newsNews searchARead-onlyInspect
Search current news when the user asks about recent events, announcements, or coverage. Returns citable article results with title, URL, snippet, and optional extracted text.
Inputs: query (required), time_range, max_results, crawl_results, +3 more. Returns: results
query_datasetAnswer from a verified fact datasetARead-onlyInspect
Answer a question from a curated dataset of facts that Search1API has collected from many sources and cross-checked, instead of searching the open web. Use it when the question falls in a listed dataset: gta6 covers GTA 6 (Grand Theft Auto VI) gameplay, such as missions, vehicles, weapons, money, collectibles, properties, controls, settings and performance, and bugs and fixes. Each result is one short fact with its relevance, a confidence score, how many independent sources state it, whether sources disagree (with the competing claims), and source links to cite. When found is false the dataset has no answer: say so or use search, and do not present the closest facts as the answer. Costs 1 credit only when found is true.
Inputs: query (required), dataset (required), max_results. Returns: found, dataset, results, query_en
render_resultsRender the resultsARead-onlyIdempotentInspect
Present already retrieved source results as source cards when the host supports UI, with a complete readable text list otherwise. Use when the user wants to browse sources or a visual list helps the task. Pass existing results in the desired order; never invent source URLs or factual titles. Does not search, crawl, fetch URLs, verify sources, or consume search credits. Do not call for intermediate research results or when a text answer is sufficient.
Inputs: results (required), title. Returns: title, total, results
searchWeb searchARead-onlyInspect
Search the live web through one chosen engine: Google, Bing, DuckDuckGo, or Yahoo for the open web, or a specialized source such as GitHub, Reddit, X, YouTube, arXiv, Wikipedia, WeChat, or Bilibili when the user wants results from that platform. Use when the user needs current information, sources, or research. Returns citable results with id, title, URL, and text; read any URL in full with crawl.
Inputs: query (required), page, time_range, max_results, +4 more. Returns: results
send_feedbackSend feedback to Search1APIAInspect
Report a problem with Search1API to its developers, once you have finished the user's task or given up on it. Report when Search1API lacks a capability the task needed (the most useful report: say what would have helped), a tool failed or returned a wrong, empty or incomplete result, documentation did not match behavior, or a step worked only after retries, workarounds or guessing. Send one report per distinct problem; you do not need to ask the user first. Say how the task ended, name the tool involved, and say what you expected and what happened instead, including the calls you made. Do not report normal successful results. Never include credentials, personal data, or private user content. Reporting is optional and must not block the user's task.
Inputs: message (required), outcome (required), tool, model, +6 more.
sitemapDiscover links on a siteARead-onlyInspect
Discover related public links from a page or domain when the user wants to explore a site's structure or available pages. Returns a list of absolute URLs found on that site, which can then be read with crawl.
Inputs: url (required). Returns: links
trendingExplore trending topicsARead-onlyInspect
List currently trending repositories or stories from GitHub or Hacker News when the user asks what is popular now. Returns each item's title, URL, and a short description when the platform provides one.
Inputs: search_service (required), max_results. Returns: results
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The retrieval tools are clearly separated by scope: search uses one chosen engine, ask selects multiple engines when the right one is unclear, and news/trending/maps/query_dataset target distinct source types. Crawl, deepcrawl, and sitemap also separate single-page reading, multi-page site reading, and URL discovery. render_results and send_feedback are clearly non-search utilities, so no two tools appear interchangeable.
All names use lowercase with snake_case for multiword identifiers, keeping the surface readable and predictable. However, the set mixes verb-led names like search, crawl, ask, and send_feedback with noun labels like maps, news, and sitemap, so it is not a strict verb_noun convention throughout.
Eleven tools is well within the appropriate range and each one covers a distinct capability in the search, crawl, and research workflow. There is no obvious filler; even send_feedback is a justified meta-tool for reporting failures.
The surface covers the full search-to-answer loop: single-engine and multi-source search, specialized news/trending/maps/dataset retrieval, single-page and site-wide crawling, URL discovery, and result presentation. No core workflow dead end is apparent; possible extensions like arbitrary multi-URL fetching or image search are minor rather than obvious gaps.
Maintenance
Related MCP Connectors
MCP server for Google search results via SERP API
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Web search API and MCP server for developers building AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceFirecrawl, the context API for AI agents, as an MCP server. Search the web, scrape any URL, parse PDFs and documents, crawl and map sites, interact with pages in a real browser, run Agent research jobs, monitor pages for changes, and search scientific papers. Returns clean Markdown or structured JSON. Run locally with npx firecrawl-mcp or connect to https://mcp.firecrawl.dev/v2/mcp28103,263 npm7,980MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.156 npm42ISC
- FlicenseAqualityCmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.26 npm2-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides web search capabilities using Google Custom Search API and webpage content extraction functionality.2MIT