SerpApi MCP Server logo

SerpApi MCP Server

by URDJMK

A collection of Model Context Protocol (MCP) servers that integrate with SerpAPI and YouTube to provide search capabilities and data retrieval for AI assistants. These servers enable AI assistants like Claude to perform various search operations.

View on GitHub

Last updated: N/A

What is SerpApi MCP Server?

This project provides several MCP servers that enable AI assistants to perform various search operations and retrieve data from Google Search, Google News, Google Scholar, Google Trends, Google Finance, Google Maps, Google Images, and YouTube.

How to use SerpApi MCP Server?

  1. Clone the repository. 2. Create a virtual environment and install dependencies. 3. Create a .env file and add your SerpAPI API key. 4. Run the desired server file (e.g., python src/serpapi_google_search.py). 5. Configure your MCP client (e.g., Claude for Desktop) to use the server by adding it to the configuration file.

Key features of SerpApi MCP Server

  • Integration with SerpAPI for various search engines

  • Integration with YouTube for search and transcript retrieval

  • Compatibility with the Model Context Protocol (MCP)

  • Easy integration with AI assistants like Claude for Desktop and Grok

  • Support for Google Search, News, Scholar, Trends, Finance, Maps, and Images

Use cases of SerpApi MCP Server

  • Enabling AI assistants to perform web searches

  • Retrieving news articles for AI assistants

  • Finding academic papers for AI assistants

  • Providing financial data to AI assistants

  • Searching for images and maps for AI assistants

FAQ from SerpApi MCP Server

How do I get a SerpAPI API key?

You can get a SerpAPI API key by signing up at serpapi.com.

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a protocol that enables AI assistants to interact with external services.

How do I configure Claude for Desktop to use these servers?

You can configure Claude for Desktop by adding the server configurations to your claude_desktop_config.json file.

What parameters are supported by each server?

Each server supports various parameters for fine-tuning your searches. See the API Parameters section in the README for details.

What do I do if I get an 'Invalid API Key' error?

Verify your API key configuration in the .env file, confirm the API key is active in the SerpAPI dashboard, and check for any quotation marks or whitespace in the API key.