Search1API MCP Server
Search1API MCP サーバー
Search1API を使用して検索およびクロール機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。
前提条件
Node.js >= 18.0.0
有効な Search1API API キー (取得および設定方法については、以下のセットアップ ガイドを参照してください)
Related MCP server: WebSearch-MCP
インストール(スタンドアロン / 一般)
リポジトリをクローンします。
git clone https://github.com/fatwang2/search1api-mcp.git cd search1api-mcpAPIキーの設定:ビルド前にSearch1APIキーを指定する必要があります。様々な方法(
.envファイルや環境変数の使用など)については、以下のセットアップガイドのセクションをご覧ください。依存関係をインストールしてビルドします。
npm install npm run build注: API キーにプロジェクトの
.envファイル メソッドを使用する場合は、この手順の前にそれが存在することを確認してください。
使用方法(スタンドアロン / 一般)
API キーが設定されていることを確認します (セットアップ ガイドを参照)。
サーバーを起動します。
npm startこれで、サーバーは MCP クライアントからの接続を受け入れる準備が整います。
セットアップガイド
1. Search1APIキーを取得する
Search1APIに登録する
ダッシュボードから API キーを取得します。
2. APIキーを設定する
APIキーをサーバーで利用できるようにする必要があります。以下のいずれかの方法を選択してください。
方法 A: プロジェクトの.envファイル (スタンドアロンまたは LibreChat に推奨)
このメソッドは、LibreChat の現在のバージョンと統合する場合に必要です (以下の特定のセクションを参照)。
search1api-mcpプロジェクトのルート ディレクトリに、.envという名前のファイルを作成します。# In the search1api-mcp directory echo "SEARCH1API_KEY=your_api_key_here" > .envyour_api_key_here実際のキーに置き換えます。npm install && npm run build実行する**前に、**このファイルが存在することを確認してください。
方法 B: 環境変数 (スタンドアロンのみ)
サーバーを起動する前に、 SEARCH1API_KEY環境変数を設定します。
export SEARCH1API_KEY="your_api_key_here"
npm start方法 C: MCP クライアント構成 (詳細)
一部のMCPクライアントでは、設定内で環境変数を直接指定できます。これは、CursorやVS Code拡張機能などのクライアントで便利です。
{
"mcpServers": {
"search1api": {
"command": "npx",
"args": [
"-y",
"search1api-mcp"
],
"env": {
"SEARCH1API_KEY": "YOUR_SEARCH1API_KEY"
}
}
}
}LibreChatユーザーへの注意: LibreChatの現在の制限により、方法A(プロジェクトの.envファイル)が必須となります。詳細な手順については、以下の統合セクションをご覧ください。
LibreChat (Docker) との統合
このセクションでは、Docker 経由で LibreChat と統合するために必要な手順について詳しく説明します。
概要:
このサーバーのリポジトリを、LibreChat の
docker-compose.ymlからアクセスできる場所に複製します。このサーバーのディレクトリ内のプロジェクト
.envファイル メソッドを使用して、必要な API キーを構成します。このサーバーを構築します。
librechat.yamlを編集して、LibreChat にこのサーバーの実行方法を伝えます。ビルドされたサーバー コードが Docker ボリューム バインドを介して LibreChat コンテナー内で使用できることを確認します。
LibreChatを再起動します。
ステップバイステップ:
リポジトリのクローン作成: LibreChatの外部サービスを管理しているホストマシン上のディレクトリ(通常は
docker-compose.ymlと同じディレクトリ)に移動します。一般的な場所は、専用の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サーバー ディレクトリに移動します。
cd search1api-mcpAPI キーを構成する (プロジェクト
.envファイル メソッド - LibreChat に必須):# Create the .env file echo "SEARCH1API_KEY=your_api_key_here" > .env # IMPORTANT: Replace 'your_api_key_here' with your actual Search1API key**依存関係のインストールとビルド:**この手順では、サーバー コードを
buildディレクトリにコンパイルします。npm install npm run build**
librechat.yamlの設定:**メインのlibrechat.yamlファイルを編集し、LibreChat にこの MCP サーバーの実行方法を指定します。mcp_serversmcp_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.jsargsパス (/app/...) は、構築されたサーバーがアクセスされる LibreChat API コンテナー内の場所です (次の手順のボリューム バインドによります)。
Dockerボリュームバインドの設定:
docker-compose.yml(またはおそらくdocker-compose.override.yml)を編集し、ホストマシンのsearch1api-mcpディレクトリをLibreChat APIコンテナにマッピングします。apiapi:サービスのvolumes:セクションを見つけます。# 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**ホストパス (
./mcp-server/search1api-mcp):**これはdocker-compose.ymlファイルがある場所を基準としたホストマシン上の相対パスです。リポジトリを別の場所にクローンした場合は、この値を調整してください。コンテナパス (
:/app/mcp-server/search1api-mcp):コンテナ内のパスです。librechat.yamllibrechat.yaml``argsパスで使用されているディレクトリ構造と一致する必要があります。
LibreChat を再起動します。 (
docker-compose.yml変更した場合) 再構築して LibreChat スタックを再起動し、変更を適用します。docker compose down && docker compose up -d --build # Or: docker compose restart api (if only librechat.yaml changed)
これで、Search1API サーバーは LibreChat 内でツール プロバイダーとして利用できるようになります。
特徴
ウェブ検索機能
ニュース検索機能
ウェブページコンテンツの抽出
ウェブサイトのサイトマップ抽出
DeepSeek R1による深い思考と複雑な問題解決
Claude Desktop、Cursor、Windsurf、Cline、その他のMCPクライアントとのシームレスな統合
ツール
1. 検索ツール
名前:
search説明: Search1API を使用してウェブを検索する
パラメータ:
query(必須): 自然言語で検索クエリを入力してください。より正確な結果を得るには、具体的かつ簡潔に記述してください。max_results(オプション、デフォルト:10):返される結果の数search_service(オプション、デフォルト: "google"): 使用する検索サービス (google、bing、duckduckgo、yahoo、x、reddit、github、youtube、arxiv、wechat、bilibili、imdb、wikipedia)crawl_results(オプション、デフォルト:0):ウェブページ全体のコンテンツをクロールする結果の数include_sites(オプション): 検索に含めるサイトのリストexclude_sites(オプション): 検索から除外するサイトのリストtime_range(オプション): 検索結果の時間範囲 (「日」、「月」、「年」)
2. ニュースツール
名前:
news説明: Search1API を使用してニュース記事を検索する
パラメータ:
query(必須): 自然言語で検索クエリを入力してください。より正確な結果を得るには、具体的かつ簡潔に記述してください。max_results(オプション、デフォルト:10):返される結果の数search_service(オプション、デフォルト: "bing"): 使用する検索サービス (google、bing、duckduckgo、yahoo、hackernews)crawl_results(オプション、デフォルト:0):ウェブページ全体のコンテンツをクロールする結果の数include_sites(オプション): 検索に含めるサイトのリストexclude_sites(オプション): 検索から除外するサイトのリストtime_range(オプション): 検索結果の時間範囲 (「日」、「月」、「年」)
3. クロールツール
名前:
crawl説明: Search1API を使用して URL からコンテンツを抽出します
パラメータ:
url(必須): クロールするURL
4. サイトマップツール
名前:
sitemap説明: URLからすべての関連リンクを取得します
パラメータ:
url(必須): サイトマップを取得するためのURL
5. 推論ツール
名前:
reasoning説明: 高速な DeepSeek R1 モデルと Web 検索機能を備えた、深い思考と複雑な問題解決のためのツールです (search1api Web サイトで他のモデルに変更できますが、速度は保証されません)
パラメータ:
content(必須): 深く考える必要がある質問または問題
6. トレンドツール
名前:
trending説明: 人気のプラットフォームからトレンドのトピックを取得します
パラメータ:
search_service(必須): トレンドトピックを取得するプラットフォームを指定します (github、hackernews)max_results(オプション、デフォルト:10):返されるトレンドアイテムの最大数
バージョン履歴
v0.2.0: LibreChat 統合のフォールバック
.envサポートが追加され、依存関係が更新されました。v0.1.8: X(Twitter)とRedditの検索サービスを追加
v0.1.7: GitHubとHacker Newsのトレンドツールを追加しました
v0.1.6: Wikipedia検索サービスを追加
v0.1.5: 新しい検索パラメータ(include_sites、exclude_sites、time_range)と新しい検索サービス(arxiv、wechat、bilibili、imdb)を追加しました
v0.1.4: deepseek r1 の推論ツールを追加し、カーソルと Windsurf の設定ガイドを更新しました
v0.1.3: ニュース検索機能を追加
v0.1.2: サイトマップ機能を追加
v0.1.1: ウェブクロール機能を追加
v0.1.0: 検索機能付きの初期リリース
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
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