Serper Search and Scrape

by tahaswx

Not rated
GitHub

About

Web search and webpage scraping using the Serper API.

Details

Author
tahaswx
Categories
Search, Web Scraping, API

Setup

Install Serper Search and Scrape in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/tahaswx/mcp-server-serper

Follow the installation instructions in the repository README, then restart your MCP client.

Web search and webpage scraping using the Serper API.

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.

-

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)

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

- Node.js >= 18
- Serper API key (set asSERPER_API_KEYenvironment variable)

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

Create a.envfile in the root directory:

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

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

To install Serper Search and Scrape for Claude Desktop automatically viaSmithery:

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

- MacOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%/Claude/claude_desktop_config.json

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

- Open the Cline extension settings
- Open "MCP Servers" tab
- Click on "Configure MCP Servers"
- Add the server config:

{ "mcpServers": { "github.com/marcopesani/mcp-server-serper": { "command": "npx", "args": ["-y", "serper-search-scrape-mcp-server"], "env": { "SERPER_API_KEY": "your_api_key_here" }, "disabled": false, "autoApprove": ["google_search", "scrape"] } } }

- disabled: Set tofalseto enable the server
- autoApprove: List of tools that don't require explicit approval for each use
- Open the Cursor settings
- Open "Features" settings
- In the "MCP Servers" section, click on "Add new MCP Server"
- Choose a name, and select "command" as "Type"
- In the "Command" field, enter the following:

env SERPER_API_KEY=your_api_key_here npx -y serper-search-scrape-mcp-server

You can also run the server using Docker. First, build the image:

Then run the container with your Serper API key:

docker run -e SERPER_API_KEY=your_api_key_here mcp-server-serper

Alternatively, if you have your environment variables in a.envfile:

docker run --env-file .env mcp-server-serper

For development, you might want to mount your source code as a volume:

docker run -v $(pwd):/app --env-file .env mcp-server-serper

Note: Make sure to replaceyour_api_key_herewith your actual Serper API key.

Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.

One API for Search, Crawling, and Sitemaps

Google, Yandex, Baidu, Bing, Duckduckgo, Ecosia Search and URL data Extraction

20+ pay-per-request APIs for AI agents — screenshots, web scraping, PDF, OCR, search, QR codes, translation & more. No API keys needed. Pay with USDC via x402. npm: @pylonapi/mcp

One MCP server for 160+ live web-data APIs (search, social, e-commerce, real estate, jobs, finance) — clean JSON, free tier.

Enables AI agents and tools to access real-time, high-volume search engine data through a unified Model Context Protocol interface.

Get structured search results from Google, Bing, Yandex, DuckDuckGo, and more through one simple API.

Fetch, extract, and process web and API content. Supports resource blocking, authentication, and Google Custom Search.

Search the web using Kagi's search API

Unlock geospatial intelligence through Mapbox APIs like geocoding, POI search, directions, isochrones and more.

Interact & query with Meilisearch (Full-text & semantic search API)

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.