Skip to main content
Glama
Web Search MCP Server

Web Search MCP Server

by urtworkmail

Web Search MCP Server

Apify Actor MCP Compatible License

AIアシスタントにリアルタイムのウェブ検索機能を提供する、永続的なModel Context Protocol (MCP) サーバーを実行するApify Actorです。Claude Desktop、Cursor、またはその他のMCP互換AIクライアントを接続して、ワークフローを離れることなくウェブ検索が可能です。

機能

  • 🔍 search_web — DuckDuckGo(無料、キー不要)またはBrave Search(高品質)を介したウェブ検索

  • 📰 search_news — 最新のニュース記事の検索

  • 📄 fetch_page — あらゆるURLからクリーンなテキストコンテンツを取得・抽出

  • 🔐 ドメインホワイトリスト — fetch_pageを承認済みドメインのみに制限

  • 📊 監査ログ — すべての検索をApifyデータセットにオプションで記録

  • ⚡ 常時稼働 — Apifyスタンバイモードで24時間365日の永続的な可用性を実現

Related MCP server: Local Research MCP Server

クイックスタート

1. Apifyで実行する

  1. Apify Consoleにアクセスし、このActorを見つけます

  2. Try for freeをクリック → 入力を設定 → Start

  3. Actorの実行ログからStandby URLをコピーします(https://web-search-mcp.username.apify.actorのような形式)

2. Claude Desktopに接続する

Claude Desktopのclaude_desktop_config.jsonに以下を追加します:

{
  "mcpServers": {
    "web-search": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://YOUR-STANDBY-URL/sse"]
    }
  }
}

Claude Desktopを再起動すると、インターフェースにツールが表示されます。

3. Cursorやその他のMCPクライアントに接続する

SSE URLを以下のように設定します:https://YOUR-STANDBY-URL/sse

入力設定

パラメータ

型

デフォルト

説明

defaultMaxResults

integer

10

検索ごとに返される結果のデフォルト数

braveApiKey

string

—

より良い結果を得るためのオプションのBrave Search APIキー

enableFetchTool

boolean

true

fetch_pageツールを有効にする

enableNewsTool

boolean

true

search_newsツールを有効にする

allowedDomains

string[]

[]

fetch_page用のドメインホワイトリスト(空の場合はすべて許可)

logSearches

boolean

false

すべてのクエリをApifyデータセットに記録する

MCPツールリファレンス

search_web

ウェブを検索し、ランク付けされた結果を取得します。

パラメータ:

  • query (string, 必須) — 検索クエリ

  • maxResults (integer, オプション, デフォルト: 10) — 結果の数 (1–50)

  • safeSearch (enum, オプション) — strict、moderate、またはoff

戻り値: タイトル、URL、スニペットを含むランク付けされた結果リスト。


search_news

最新のニュース記事を検索します。

パラメータ:

  • query (string, 必須) — ニュース検索クエリ

  • maxResults (integer, オプション) — 記事の数 (1–20)

戻り値: 公開日時が利用可能な場合はそれを含むニュース記事のリスト。


fetch_page

ウェブページを取得し、クリーンなテキストコンテンツを返します。

パラメータ:

  • url (string, 必須) — 取得する完全なURL

  • maxLength (integer, オプション, デフォルト: 8000) — 最大文字数 (500–50000)

戻り値: ページタイトル、メタディスクリプション、抽出された本文テキスト。

APIエンドポイント

エンドポイント

メソッド

説明

/sse

GET

MCP SSE接続エンドポイント

/messages?sessionId=X

POST

MCPメッセージハンドラー

/health

GET

ヘルスチェック + アクティブセッション

/

GET

サーバー情報と手順

アーキテクチャ

AI Client (Claude, Cursor, etc.)
        │ SSE connection
        ▼
  Express HTTP Server (:3000)
        │
  MCP Server (McpServer)
        │
  ┌─────┴──────────┐
  │   Search Tools  │
  └─────┬──────────┘
        │
  ┌─────┴─────────────────────┐
  │ DuckDuckGo HTML API        │ (default, no key needed)
  │ Brave Search REST API      │ (optional, with API key)
  └────────────────────────────┘

ローカル開発

git clone https://github.com/your-org/web-search-mcp
cd web-search-mcp
npm install
npm start

サーバーはhttp://localhost:3000で起動します。任意のMCPクライアントをhttp://localhost:3000/sseに接続してください。

使用例 (Claudeでの場合)

接続後、Claudeに以下のように尋ねることができます:

"ヨーロッパにおけるAI規制に関する最新ニュースを検索して"

"2025年の主要なPythonウェブフレームワークは何ですか?ウェブ検索して要約してください。"

"https://example.com/blog/post のコンテンツを取得して、重要なポイントを要約して。"

ライセンス

Apache 2.0 — LICENSEを参照

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers