serper-search-scrape-mcp-server
The serper-search-scrape-mcp-server enables web search and webpage scraping via Serper API, integrating with Claude Desktop and other clients.
Web Search Capabilities:
Rich Google search results including organic listings, knowledge graph, and "people also ask" sections
Region (
gl), language (hl), and location targetingAdvanced search operators:
site,filetype,inurl,intitle,related,cache,before,afterTime filtering (
tbs) and result paginationSupport for exact phrase matching, term exclusion, and OR operators
Scraping Features:
Extract text content from webpages
Optional markdown output format
Retrieve JSON-LD and head metadata
Preserve document structure
Integration & Deployment:
Compatible with Claude Desktop, Smithery, Cline, and Cursor
Docker support for containerized deployment
MCP Inspector for debugging
Provides web search capabilities via Serper API with rich search results, including organic results, knowledge graph, 'people also ask', and related searches from Google.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@serper-search-scrape-mcp-server search for recent AI advancements in healthcare"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 APIRich 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 domainfiletype: Limit to specific file types (e.g., 'pdf', 'doc')inurl: Search for pages with word in URLintitle: Search for pages with word in titlerelated: Find similar websitescache: View Google's cached version of a specific URLbefore: Date before in YYYY-MM-DD formatafter: Date after in YYYY-MM-DD formatexact: Exact phrase matchexclude: Terms to exclude from search resultsor: Alternative terms (OR operator)
scrape- Extract content from web pagesGet plain text and optional markdown content
Includes JSON-LD and head metadata
Preserves document structure
Related MCP server: go_serper_mcp_server
Requirements
Node.js >= 18
Serper API key (set as
SERPER_API_KEYenvironment variable)
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchRun 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 testsEnvironment Variables
Create a .env file in the root directory:
SERPER_API_KEY=your_api_key_hereDebugging
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 inspectorThe 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 claudeClaude Desktop
Add the server config at:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%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"
}
}
}
}Cline
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"]
}
}
}Additional Cline configuration options:
disabled: Set tofalseto enable the serverautoApprove: List of tools that don't require explicit approval for each use
Cursor
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-serverDocker
You can also run the server using Docker. First, build the image:
docker build -t mcp-server-serper .Then run the container with your Serper API key:
docker run -e SERPER_API_KEY=your_api_key_here mcp-server-serperAlternatively, if you have your environment variables in a .env file:
docker run --env-file .env mcp-server-serperFor development, you might want to mount your source code as a volume:
docker run -v $(pwd):/app --env-file .env mcp-server-serperNote: Make sure to replace your_api_key_here with your actual Serper API key.
Available Tools
2 toolsgoogle_searchC
Tool to perform web searches via Serper API and retrieve rich results. It is able to retrieve organic search results, people also ask, related searches, and knowledge graph.
Inputs: q (required), gl (required), hl (required), location, +15 more.
scrapeC
Tool to scrape a webpage and retrieve the text and, optionally, the markdown content. It will retrieve also the JSON-LD metadata and the head metadata.
Inputs: url (required), includeMarkdown.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: google_search is for performing web searches and retrieving search results, while scrape is for extracting content from a specific webpage. There is no overlap in functionality, making it easy for an agent to choose the right tool for each task.
Both tools follow a consistent naming pattern using snake_case with descriptive, action-oriented names (google_search and scrape). The naming is straightforward and predictable, with no deviations or mixed conventions.
With only 2 tools, the server feels thin for a search-and-scrape domain, as it might lack additional utilities like batch processing, advanced filtering, or result summarization. However, the core functions are covered, making it borderline but functional.
The tools cover the essential workflows for search and scraping: performing searches and extracting webpage content. Minor gaps exist, such as no tool for managing search history or handling pagination, but agents can work around these with the provided tools.
Maintenance
Related MCP Connectors
Unofficial Serper MCP — wraps the Serper Google Search API (serper.dev)
Official SerpApi MCP server for Google, Bing, and other search engines.
Remote MCP server for Google SERP, SEO research and web scraping. Free plan, no card.
Web search API and MCP server for developers building AI agents.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that integrates with SerpApi to retrieve search results from multiple search engines including Google, Bing, Yahoo, and others, enabling fast access to both live and archived search data.4188MIT
- AlicenseNot gradedqualityDmaintenanceA Go-based MCP server that provides comprehensive access to the Serper Google Search API, including tools for images, news, maps, and scholar results. It also features a dedicated endpoint for scraping webpage content directly.MIT
- AlicenseAqualityDmaintenanceAn MCP server that integrates the SearXNG API for web search and URL content extraction with advanced features like pagination, caching, and proxy support.417,815 npm2MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that integrates the SearXNG API to provide web search with pagination, filtering, and URL content extraction.7 npmMIT