About
Serper Search and Scrape is an MCP server that enables AI assistants to perform web searches and extract content from webpages using the Serper API. Key capabilities: - Google search with rich results including organic listings, knowledge graphs, "people also ask" questions, and related searches - Advanced search operators including site-specific searches, filetype filtering (PDF, DOC, etc.), URL and title keyword matching, date range filters, and exact phrase matching - Region and language targeting with pagination and autocorrection support - Webpage content extraction delivering plain text or markdown output while preserving document structure - JSON-LD and HTML head metadata retrieval for structured data parsing
README
Serper Search and Scrape MCP Server
[](https://smithery.ai/server/@marcopesani/mcp-server-serper)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 APIsite: 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 pagesRequirements
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:
~/Library/Application Support/Claude/claude_desktop_config.json%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
1. Open the Cline extension settings 2. Open "MCP Servers" tab 3. Click on "Configure MCP Servers" 4. 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 to false to enable the serverautoApprove: List of tools that don't require explicit approval for each useCursor
1. Open the Cursor settings 2. Open "Features" settings 3. In the "MCP Servers" section, click on "Add new MCP Server" 4. Choose a name, and select "command" as "Type" 5. In the "Command" field, enter the following:
env SERPER_API_KEY=your_api_key_here npx -y serper-search-scrape-mcp-server
Docker
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-serper
Alternatively, if you have your environment variables in a .env file:
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 replace your_api_key_here with your actual Serper API key.
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support