Serper Search MCP Server
The Serper Search MCP Server allows you to:
Perform Google searches via the Serper API with configurable parameters (country, language, result count, autocorrect)
Retrieve rich search results including knowledge graph information, organic results, related questions, and "People Also Ask" data
Conduct AI-powered deep research with adjustable depth levels (basic, standard, deep)
Generate synthesized research reports with citations from multiple sources
Leverage multi-step, iterative research capabilities with AI synthesis and sub-queries
Integrate easily into MCP-enabled applications with full TypeScript support
Provides Google search capabilities through the Serper API, including knowledge graph information, organic search results, related questions, and the ability to perform deep multi-step research with customizable parameters.
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 MCP Server find recent news about AI advancements"
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 MCP Server
A Model Context Protocol server that provides Google search capabilities through the Serper API, along with an AI-powered Deep Research tool. This server enables easy integration of search and research functionality into your MCP-enabled applications.
โจ Features
๐ Powerful Google search integration through Serper API
๐ Rich search response data including:
Knowledge Graph information
Organic search results
"People Also Ask" questions
Related searches
๐ง AI-powered Deep Research tool:
Performs multi-step, iterative research
Generates sub-queries to explore topics thoroughly
Synthesizes information from multiple sources
Provides citations for all information
Adjustable research depth levels
Built-in quality metrics for continuous improvement
๐ Configurable search parameters:
Country targeting
Language selection
Result count customization
Autocorrect options
๐ Secure API key handling
โก๏ธ Rate limiting and caching support
๐ TypeScript support with full type definitions
๐ Integrated performance metrics for result optimization
Related MCP server: google-search-mcp
๐ Installation
Requires Node.js 20.6 or newer. Node.js 24 LTS is recommended and tested in CI.
Clone the repository:
git clone https://github.com/NightTrek/Serper-search-mcp.git
cd Serper-search-mcpInstall dependencies:
pnpm install --frozen-lockfileBuild the server:
pnpm run buildโ๏ธ Configuration
Get your Serper API key from Serper.dev.
Create a
.envfile in the root directory:
# Required
SERPER_API_KEY=your_api_key_here
# Optional: enables the deep-research tool (not needed for Google search)
# OPENROUTER_API_KEY=your_openrouter_api_key
# OPENROUTER_MODEL=your_preferred_model
# Optional - Advanced Quality Metrics Configuration (pre-configured by default)
USAGE_METRICS_KEY=your-custom-metrics-key # Optional
USAGE_PROJECT_ID=your-custom-project-id # Optional
METRICS_ENDPOINT=https://your-custom-host.com # Optional
DISABLE_METRICS=true # Disable research metricsSee TELEMETRY.md for detailed information about:
Quality metrics collection
Performance monitoring
Usage analytics
Dashboard setup
Continuous improvement
๐ Integration
Claude Desktop
Add the server config to your Claude Desktop configuration:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"serper-search-server": {
"command": "/path/to/Serper-search-mcp/build/index.js",
"env": {
"SERPER_API_KEY": "your_api_key_here"
}
}
}
}๐ Usage
Search Tool
The server provides a powerful search tool with the following parameters:
{
"query": string, // Search query
"numResults"?: number, // Number of results (default: 10, max: 100)
"gl"?: string, // Country code (e.g., "us", "uk")
"hl"?: string, // Language code (e.g., "en", "es")
"autocorrect"?: boolean, // Enable autocorrect (default: true)
"type"?: "search" // Search type (more types coming soon)
}Deep Research Tool
Deep Research is optional. With only SERPER_API_KEY, the server starts and advertises only serper-google-search. Set a non-empty OPENROUTER_API_KEY and restart to enable deep-research. Calling it without that key returns a configuration error and leaves search available. Research uses OpenRouter in addition to Serper and may incur charges from both providers.
For more comprehensive research needs, the server provides a deep research tool that performs multi-step research with the following parameters:
{
"query": string, // Research query or question
"depth"?: "basic" | "standard" | "deep", // Research depth (default: "standard")
"maxSources"?: number // Maximum sources to include (default: 10)
}The deep research tool:
Breaks down complex queries into focused sub-queries
Executes multiple searches to gather comprehensive information
Uses AI to synthesize information from multiple sources
Formats results with proper citations and references
Adapts its research strategy based on intermediate results
Collects research content and quality metrics unless disabled (see TELEMETRY.md)
Depth Levels:
basic: Quick overview (3-5 sources, ~5 min) Good for: Simple facts, quick definitions, straightforward questions
standard: Comprehensive analysis (5-10 sources, ~10 min) Good for: Most research needs, balanced depth and speed
deep: Exhaustive research (10+ sources, ~15-20 min) Good for: Complex topics, academic research, thorough analysis
Search Tool Example Response
The search results include rich data:
{
"searchParameters": {
"q": "apple inc",
"gl": "us",
"hl": "en",
"autocorrect": true,
"type": "search"
},
"knowledgeGraph": {
"title": "Apple",
"type": "Technology company",
"website": "http://www.apple.com/",
"description": "Apple Inc. is an American multinational technology company...",
"attributes": {
"Headquarters": "Cupertino, CA",
"CEO": "Tim Cook (Aug 24, 2011โ)",
"Founded": "April 1, 1976, Los Altos, CA"
}
},
"organic": [
{
"title": "Apple",
"link": "https://www.apple.com/",
"snippet": "Discover the innovative world of Apple...",
"position": 1
}
],
"peopleAlsoAsk": [
{
"question": "What does Apple Inc mean?",
"snippet": "Apple Inc., formerly Apple Computer, Inc....",
"link": "https://www.britannica.com/topic/Apple-Inc"
}
],
"relatedSearches": [
{
"query": "Who invented the iPhone"
}
]
}๐ Response Types
Knowledge Graph
Contains entity information when available:
Title and type
Website URL
Description
Key attributes
Organic Results
List of search results including:
Title and URL
Snippet (description)
Position in results
Sitelinks when available
People Also Ask
Common questions related to the search:
Question text
Answer snippet
Source link
Related Searches
List of related search queries users often make.
๐ Quality Metrics
The Deep Research tool includes integrated quality metrics:
Research process metrics
Performance monitoring
Issue tracking
Usage patterns
Result quality indicators
See TELEMETRY.md for detailed information about the metrics collected to improve search quality.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
This project is described as MIT-licensed. A standalone LICENSE file is not currently included in this repository.
๐ Acknowledgments
Serper API for providing the Google search capabilities
Model Context Protocol for the MCP framework
PostHog for analytics capabilities
Development checks
Run pnpm test (Node.js 20.6+). Tests build the server, exercise MCP initialize/list/call over stdio, and mock all HTTP calls with dummy credentials. No paid API access is needed. Stdout is reserved for MCP JSON-RPC; diagnostics belong on stderr and must never contain API keys or key prefixes.
OpenRouter failures
Deep Research reports malformed or empty completion responses as structured MCP errors, rather than passing missing text into later research steps. HTTP failures include the status (for example, 401 for authentication, 429 for rate limiting, or 500 for a provider failure); timeouts are identified separately. Provider response bodies and transport messages are omitted because they may echo prompts or credentials. Basic Serper search remains available after a research failure. These checks do not guarantee availability or model compatibility at the provider.
Available Tools
1 toolserper-google-searchB
Perform a Google search using the SERPER API. Returns rich search results including knowledge graph, organic results, related questions, and more.
Inputs: query (required), gl, hl, numResults, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong one. Its purpose (run a Google search via Serper) is clearly stated.
The single name 'serper-google-search' is descriptive and uses a consistent kebab-case style, but it is a compound noun rather than a verb_noun action pattern. With only one tool there is no broader convention to judge against.
One tool is thin for a server whose stated purpose is exposing the Serper search API, which supports multiple result types. It is functional but leaves the surface minimal.
A general web search covers the core use case and returns rich payloads, but the Serper API's other endpoints (news, images, places/maps, scholar, webpage scraping) are absent. Agents needing those result types have no path forward with this server.
Maintenance
Related MCP Connectors
Unofficial Serper MCP โ wraps the Serper Google Search API (serper.dev)
MCP server for Google search results via SERP API
Unofficial SerpApi MCP โ wraps SerpApi (serpapi.com) search engines
Google SERP API MCP: live Google, Bing, AI Overview and Google Maps results as JSON. Pay per call.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Google Search, News, and Places queries via the Serper API, integrated with the Pipeworx MCP gateway.324 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to perform real-time Google searches and retrieve web results via the MCP protocol.-
- FlicenseNot gradedqualityBmaintenanceProvides Google search and web page fetching tools to MCP clients via the Serper API, enabling models to search and read pages during conversations.-
- AlicenseAqualityCmaintenanceEnables AI agents to run live Google searches and retrieve organic results, snippets, sitelinks, People Also Ask, related searches, and Google's AI Overview with citations via a zero-dependency MCP server.2MIT