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 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 pages- Get plain text and optional markdown content
- Includes JSON-LD and head metadata
- Preserves document structure
- Node.js >= 18
- Serper API key (set as
SERPER_API_KEYenvironment variable)
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchRun tests: