Back to MCP Catalog

Search1API MCP Server

SearchTypeScript
A search and web crawling service that provides access to web search, news, content extraction, and sitemap functionality
Available Tools

web_search

Search the web for information on a given query

querynum_resultsinclude_sitesexclude_sitestime_range

news_search

Search for news articles on a given query

querynum_resultsinclude_sitesexclude_sitestime_range

extract_content

Extract the content from a specific URL

url

sitemap

Extract the sitemap from a website

url

Search1API provides powerful search and web crawling capabilities through a Model Context Protocol (MCP) server. It enables AI assistants to perform web searches, news searches, extract content from web pages, and retrieve website sitemaps to enhance their knowledge and capabilities. With Search1API, AI models can access up-to-date information from the web, helping them provide more accurate and relevant responses. The service supports various search parameters including site filtering and time range options, making it a versatile tool for information retrieval tasks.

Overview

Search1API MCP Server provides search and web crawling functionality for AI assistants through the Model Context Protocol. This integration allows AI models to search the web, find news, extract content from web pages, and retrieve website sitemaps.

Prerequisites

  • Node.js >= 18.0.0
  • A valid Search1API API key

Getting Started

Obtaining a Search1API Key

  1. Register at Search1API
  2. Get your API key from your dashboard

Installation Options

Standalone Installation

  1. Clone the repository:
git clone https://github.com/fatwang2/search1api-mcp.git
cd search1api-mcp
  1. Configure your API key using one of these methods:

    Method A: Project .env File (Recommended)

    echo "SEARCH1API_KEY=your_api_key_here" > .env
    

    Method B: Environment Variable

    export SEARCH1API_KEY="your_api_key_here"
    
  2. Install dependencies and build:

npm install
npm run build
  1. Start the server:
npm start

LibreChat Docker Integration

  1. Clone the repository into your LibreChat setup directory:
cd /path/to/your/librechat/setup/mcp-server
git clone https://github.com/fatwang2/search1api-mcp.git
  1. Configure API key in the project directory:
cd search1api-mcp
echo "SEARCH1API_KEY=your_api_key_here" > .env
  1. Build the server:
npm install
npm run build
  1. Edit your librechat.yaml to add the MCP server:
mcp_servers:
  search1api:
    command: node
    args:
      - /app/mcp-server/search1api-mcp/build/index.js
  1. Configure Docker volume bind in your docker-compose.yml or docker-compose.override.yml:
services:
  api:
    volumes:
      - ./mcp-server/search1api-mcp:/app/mcp-server/search1api-mcp
  1. Restart LibreChat:
docker compose down && docker compose up -d --build

Usage

Once installed and configured, the Search1API MCP server will be available to your AI assistant. You can use the various tools to search the web, find news, extract content from web pages, and retrieve website sitemaps.

The server supports various search parameters including:

  • Site inclusion/exclusion filters
  • Time range options
  • Multiple search services (web, news, arxiv, wechat, bilibili, imdb)

Troubleshooting

  • If you encounter connection issues, ensure your API key is correctly configured
  • For LibreChat integration, verify that the volume paths in your Docker configuration match the paths in your librechat.yaml
  • Check that the server is running before attempting to use the tools

Related MCPs

SearXNG
SearchTypeScript

Web search capabilities through SearXNG API integration

Hacker News
SearchPython

Access and search Hacker News content programmatically

Web Search
SearchJavaScript

Free Google search integration with no API keys required

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.