MM

marcopesani/mcp-server-serper

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

171 stars 25 forks 品質 70 トレンド 17MIT

marcopesani/mcp-server-serper は、https://github.com/marcopesani/mcp-server-serper. からインポートされたMCPサーバー候補です。

概要

marcopesani/mcp-server-serper は、https://github.com/marcopesani/mcp-server-serper. からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

Serper APIを用いたWeb検索およびウェブページのスクレイピング機能を提供するTypeScriptベースのMCPサーバーです。このサーバーはClaude Desktopと連携し、強力なウェブ検索およびコンテンツ抽出機能を実現します。

特徴

道具

  • google_search - Serper APIを使ったウェブ検索の実行

  • オーガニック検索結果、ナレッジグラフ、「人々も質問する」などの豊富な検索結果

  • 地域および言語のターゲティングをサポートする

  • 位置、ページ、時間フィルター、自動修正などのオプションパラメータ

  • 高度な検索オペレーターのサポート:

  • site:結果を特定のドメインに限定

  • filetype:特定のファイル形式(例:‘pdf’、‘doc’)に制限

  • inurl:URL内の単語を含むページを検索

  • intitle:タイトルに単語が入ったページを検索

  • related:類似のウェブサイトを探す

  • cache:特定のURLのGoogleキャッシュ版を見る

  • before:YYYY-MM-DD 形式の日付より前

  • after:YYYY-MM-DD 形式での日付後

  • exact:完全一致のフレーズ

  • exclude:検索結果から除外すべき用語

  • or:代替用語(OR演算子)

  • scrape - ウェブページからコンテンツの抽出

  • プレーンテキストとオプションのマークダウンコンテンツの取得

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Serper Search and Scrape MCP Server

A TypeScript-based MCP server that provides web search and webpage scraping capabilities using the Serper API. This server integrates with Claude Desktop to enable powerful web search and content extraction features.

Features

Tools

  • google_search - Perform web searches via Serper API

    • Rich search results including organic results, knowledge graph, “people also ask”, and related searches
    • Supports region and language targeting
    • Optional parameters for location, pagination, time filters, and autocorrection
    • Supports advanced search operators:
      • site: Limit results to specific domain
      • filetype: Limit to specific file types (e.g., ‘pdf’, ‘doc’)
      • inurl: Search for pages with word in URL
      • intitle: Search for pages with word in title
      • related: Find similar websites
      • cache: View Google’s cached version of a specific URL
      • before: Date before in YYYY-MM-DD format
      • after: Date after in YYYY-MM-DD format
      • exact: Exact phrase match
      • exclude: Terms to exclude from search results
      • or: Alternative terms (OR operator)
  • scrape - Extract content from web pages

    • Get plain text and optional markdown content
    • Includes JSON-LD and head metadata
    • Preserves document structure

Requirements

  • Node.js >= 18
  • Serper API key (set as SERPER_API_KEY environment variable)

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Run tests:

npm test                  # Run all tests
npm run test:watch       # Run tests in watch mode
npm run test:coverage    # Run tests with coverage
npm run test:integration # Run integration tests

Environment Variables

Create a .env file in the root directory:

SERPER_API_KEY=your_api_key_here

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Installation

Installing via Smithery

To install Serper Search and Scrape for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @marcopesani/mcp-server-serper --client claude

Claude Desktop

Add the server config at:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
GitHub で README 全文を見る

インストール

npx -y serper-search-scrape-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "serper-search": { "command": "npx", "args": ["-y", "serper-search-scrape-mcp-server"], "env": { "SERPER_API_KEY": "your_api_key_here" } } } }