Skip to main content
Glama
Search1API MCP Server

Search1API MCP Server

Servidor MCP de Search1API

Lengua china

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)

  1. Clonar el repositorio:

    git clone https://github.com/fatwang2/search1api-mcp.git
    cd search1api-mcp
  2. Configurar 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 .env o variables de entorno).

  3. Instalar dependencias y compilar:

    npm install
    npm run build

    Nota: Si utiliza el método de archivo .env del 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 start

El servidor estará entonces listo para aceptar conexiones de clientes MCP.

Guía de configuración

1. Obtener la clave API de Search1

  1. Regístrate en Search1API

  2. 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).

  1. 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" > .env
  2. Reemplace your_api_key_here con su clave real.

  3. 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 start

Mé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:

  1. Clone el repositorio de este servidor en una ubicación accesible mediante su docker-compose.yml de LibreChat.

  2. Configure la clave API requerida utilizando el método de archivo .env del proyecto dentro del directorio de este servidor.

  3. Construye este servidor.

  4. Indique a LibreChat cómo ejecutar este servidor editando librechat.yaml .

  5. 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.

  6. Reinicie LibreChat.

Paso a paso:

  1. 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 a mcp-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.git
  2. Navegue hasta el directorio del servidor:

    cd search1api-mcp
  3. Configurar la clave API (método de archivo .env del 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 key
  4. Instalar dependencias y compilar: este paso compila el código del servidor en el directorio build .

    npm install
    npm run build
  5. Configurar librechat.yaml : Edite el archivo principal librechat.yaml para indicarle a LibreChat cómo ejecutar este servidor MCP. Agregue una entrada en mcp_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.js
    • La 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).

  6. Configurar la vinculación de volúmenes de Docker: Edite su docker-compose.yml (o, más probablemente, su docker-compose.override.yml ) para asignar el directorio search1api-mcp desde su equipo host al contenedor de la API de LibreChat. Busque la sección volumes: para el servicio api: :

    # 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-mcp
    • Ruta del host ( ./mcp-server/search1api-mcp ): Esta es la ruta en tu equipo host correspondiente a la ubicación del archivo docker-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 ruta args``librechat.yaml .

  7. 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: search

  • Descripció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 devolver

    • search_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 web

    • include_sites (opcional): Lista de sitios para incluir en la búsqueda

    • exclude_sites (opcional): Lista de sitios para excluir de la búsqueda

    • time_range (opcional): rango de tiempo para los resultados de búsqueda ("día", "mes", "año")

2. Herramienta de noticias

  • Nombre: news

  • Descripció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 devolver

    • search_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 web

    • include_sites (opcional): Lista de sitios para incluir en la búsqueda

    • exclude_sites (opcional): Lista de sitios para excluir de la búsqueda

    • time_range (opcional): rango de tiempo para los resultados de búsqueda ("día", "mes", "año")

3. Herramienta de rastreo

  • Nombre: crawl

  • Descripción: Extraer contenido de una URL usando Search1API

  • Parámetros:

    • url (obligatorio): URL para rastrear

4. Herramienta de mapa del sitio

  • Nombre: sitemap

  • Descripció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: reasoning

  • Descripció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: trending

  • Descripció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 .env de 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 tools
askAsk across sourcesA
Read-only
Inspect

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 pageA
Read-only
Inspect

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 websiteA
Read-only
Inspect

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 MapsA
Read-only
Inspect

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 searchA
Read-only
Inspect

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 datasetA
Read-only
Inspect

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 resultsA
Read-onlyIdempotent
Inspect

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

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 siteA
Read-only
Inspect

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 11 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness5/5

    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

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Firecrawl, 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/mcp
      28
      103,263 npm
      7,980
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      1
      56 npm
      42
      ISC