scra

scra

Enables web search via DuckDuckGo and content extraction from URLs using Readability.js.

Category
Visit Server

README

scra

DuckDuckGoによるWeb検索とReadability.jsによるWebフェッチを行うミニマムなMCPサーバー

Usage

git clone https://github.com/dncwolf/scra.git
cd scra && bun install

LMStudioなどでの設定:

{
  "mcpServers": {
    "scra": {
      "command": "bun",
      "args": ["run", "/path/to/scra/index.ts"]
    }
  }
}

Tools

ツール 説明
search キーワードでDuckDuckGoを検索し、タイトル・URL・スニペットを番号付きで返す
fetch URLを指定してページ本文をMarkdown形式(# タイトル + 本文)で返す。SPA対応

挙動の詳細は後述の Spec を参照。

Spec

search

項目 仕様
入力 query: string, limit: int(1〜20、デフォルト5。範囲外はスキーマ違反エラー)
出力 1件ごとに N. {title}\n URL: {url}\n {snippet}(スニペットなしは省略)を空行区切り。0件時は「検索結果が見つかりませんでした。」
取得先 https://duckduckgo.com/?q={query}(JSレンダリング版。HTMLエンドポイントはheadlessをbot遮断するため不可)
解析 結果セレクタ [data-testid="result"] の描画を最大12秒(全体30秒予算の残りでクランプ)待機し、短いnetwork idleの後に各要素から [data-testid="result-title-a"] のリンクと [data-result="snippet"] を抽出。http(s)以外のリンクは除外。duckduckgo.comへのリンクは uddg パラメータの復元のみ許可(/y.js スポンサー枠・内部リンクはここで除外)
エラー HTTP非2xx(レート制限など)・ナビゲーション失敗、SERP自体が描画されない場合(bot対策ブロックの可能性)は isError: true + search エラー: {理由}。SERPは描画されたが結果セレクタが現れない場合は正当な0件として扱う

fetch

項目 仕様
入力 url: string(URL形式。違反はスキーマ違反エラー)
出力 # {title}\n\n{本文}。本文は各行trim → 3連以上の改行を2連へ圧縮 → 50,000文字超過分を切り捨て注記を付加(ページからの転送自体も200,000文字で上限)
描画 domcontentloaded 後、network idle(500ms静止)を最大2秒ベストエフォート待機。Readabilityをページ内へ注入して抽出(CSPはバイパス)。画像・フォント・メディアは取得しない(search も同様)
エラー スキーマ違反 / SSRF拒否 / HTTPエラー / Readability抽出失敗 / リダイレクト遮断による到達失敗 / 20秒タイムアウト

License

WTFPL

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured