# Serper-search-mcp

> MCP Server

This repository provides a Model Context Protocol server integrating Google search via the Serper API, featuring an AI-powered Deep Research tool for comprehensive information synthesis and configurable search parameters.

## Overview

- **Category:** Search & Knowledge
- **Language:** TypeScript
- **Stars:** 48
- **Forks:** 6
- **Owner:** NightTrek
- **GitHub:** https://github.com/NightTrek/Serper-search-mcp
- **Created:** 2025-02-18T09:34:36+00:00
- **Updated:** 2025-03-25T18:30:29+00:00
- **Source:** https://model-context-protocol.com/servers/serper-google-search-mcp-server

## Setup

## Setup

1. Clone the repository:
```bash
git clone https://github.com/yourusername/serper-search-server.git
cd serper-search-server
```

2. Install dependencies:
```bash
pnpm install
```

3. Build the server:
```bash
pnpm run build
```

4. Get your Serper API key from [Serper.dev](https://serper.de

5. Create a `.env` file in the root directory:
```env
# Required
SERPER_API_KEY=your_api_key_here

# 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=false                         # Not recommended
```

## Tools

## Available Tools

1.  Powerful Google search integration through Serper API (provides rich search response data).
2.  AI-powered Deep Research tool (performs multi-step, iterative research and synthesizes information).
3.  Configurable search parameters (allows country targeting, language selection, result count customization, and autocorrect options).
4.  Secure API key handling (ensures secure management of the Serper API key).
5.  Rate limiting and caching support (improves performance and reduces API usage).
6.  TypeScript support with full type definitions (offers type safety and improved development experience).
7.  Integrated performance metrics for result optimization (provides insights for optimizing search results).
