Serper MCP server

Web search and scrapingMarketing and SEO

Serper MCP Server supporting search and webpage scraping.

Your AI app calls the Serper MCP server, which does the web search and scraping and marketing and SEO work and sends the result back to the chat.

About Serper

Serper is a community MCP server from marcopesani, filed in our directory under web search and scraping and marketing and seo. Serper MCP Server supporting search and webpage scraping.

Serper runs on your own machine: your AI app starts it with the command npx -y @smithery/cli and talks to it over standard input and output.

The README for Serper lists tools such as google_search and scrape, which your AI app can call once the server is connected.

At a glance

Publisher
marcopesani (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @smithery/cli
Written in
TypeScript
License
MIT
GitHub stars
171

Tools Serper gives your AI app

  • google_searchPerform web searches via Serper API.
  • scrapeExtract content from web pages.

Tool names as the Serper README lists them. Your AI app shows the live list once Serper is connected.

How to set up Serper

  1. Install Node.js on the machine that runs your AI app, because Serper starts with npx and downloads its package on first run.
  2. Check the Serper README for keys or settings; the registry lists none that Serper requires.
  3. Add Serper to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Serper tools to confirm the connection.
  5. Run one read-only task with Serper first, such as a call to google_search, before you allow anything that writes or sends.

Serper compared with similar servers

  • Scrapeless by scrapeless-ai has fewer GitHub stars than Serper (170 against 171); both are community servers, and Scrapeless runs as a remote server and Serper runs on your own machine.
  • Pubmed by cyanheads has more GitHub stars than Serper (173 against 171); both are community servers, and Pubmed runs as a remote server and Serper runs on your own machine. The Pubmed README lists 6 tools to Serper's 2.
  • sharp-search by Belluxx has fewer GitHub stars than Serper (168 against 171); both are community servers, and both run locally.

Before you connect Serper

  • Give Serper its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Serper tool call until you trust what it does with them.
  • Treat text that Serper fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Serper on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Serper

How marketing and sales teams put Serper to work, by company size. Pick the size closest to yours and start Serper on one use case.

Small business

  • A founder can use Serper to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Serper what competitors launched this month and get the pages, not just a summary.
  • A small business can ask Serper which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Serper runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Serper to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Serper to research accounts from public pages and add one specific line to each first email.
  • Content teams can connect Serper to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Start with google_search and scrape, the tools Serper lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise research and competitive intel teams can schedule Serper to monitor many sources, with results stored and cited for review.
  • Large orgs can route Serper through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Enterprise SEO teams can run Serper across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Serper is a community server, so have security review the code and pin a version before Serper touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Serper README

From marcopesani/mcp-server-serper on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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 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 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 pages

    • Get plain text and optional markdown content
    • Includes JSON-LD and head metadata
    • Preserves document structure

Requirements

  • Node.js >= 18
  • Serper API key (set as 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:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %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 server
  • autoApprove: List of tools that don't require explicit approval for each use
Cursor
  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.

Questions about Serper

What is the Serper MCP server?

Serper MCP Server supporting search and webpage scraping. Serper is maintained by marcopesani on GitHub at marcopesani/mcp-server-serper, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Serper MCP server?

Add Serper to your AI app's MCP config with the command npx -y @smithery/cli. In Claude Code, run claude mcp add --transport stdio serper -- npx -y @smithery/cli. To run Serper this way you need Node.js installed.

Does Serper need an API key?

The registry lists no required keys for Serper. Check the Serper README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Serper an official MCP server?

No. Serper is a community server maintained by marcopesani. Community servers can be excellent; read the code and the open issues before you give Serper access to company data.

What license is Serper under?

Serper is released under the MIT license, according to its GitHub repository. The license covers the code of Serper; the service it connects to has its own terms.