drio
Open app

SerpApi MCP Server - Python

Source

Catalog onlyCatalog onlySTDIO

Overview

SerpApi MCP Server is a collection of Model Context Protocol (MCP) servers that integrate with SerpAPI and YouTube to provide search capabilities and data retrieval for AI assistants.

To use the SerpApi MCP Server, clone the repository, set up your environment, and run the server code for the desired search functionality. You can then integrate it with AI assistants like Claude for Desktop.

  • Supports multiple search types including Google Search, Google News, Google Scholar, Google Trends, Google Finance, Google Maps, Google Images, YouTube Search, and YouTube Transcripts. - Easy integration with AI assistants using the Model Context Protocol (MCP). - Customizable API parameters for fine-tuning search results.
  1. Performing complex searches across various Google services.
  2. Retrieving academic papers and news articles for research.
  3. Accessing YouTube video transcripts for content analysis.

Add to your AI client

Use these steps to connect SerpApi MCP Server - Python in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "serpapi-mcp-server-urdjmk": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "serpapi-mcp-server-urdjmk": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "serpapi-mcp-server-urdjmk": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "serpapi-mcp-server-urdjmk": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "serpapi-mcp-server-urdjmk": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "serpapi-mcp-server-urdjmk": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-serpapi-mcp-server-urdjmk"
      ]
    }
  }
}

FAQ

What is required to run the SerpApi MCP Server?

You need Python 3.8 or higher and a valid SerpAPI API key.

Can I use this server with any AI assistant?

Yes, it is designed to work with any AI assistant that supports the Model Context Protocol (MCP).

Is there any cost associated with using SerpApi?

You need to check the pricing on the SerpAPI website for API usage.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3059,"uuid":"10613957-059b-49ab-9d9c-132677002bd0","name":"serpapi-mcp-server","title":"SerpApi MCP Server - Python","description":"","avatar_url":"https://avatars.githubusercontent.com/u/99112721?v=4","created_at":"2025-03-17T02:42:49.503Z","updated_at":"2025-03-17T04:16:01.482Z","status":"created","author_name":"URDJMK","author_avatar_url":"https://avatars.githubusercontent.com/u/99112721?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/URDJMK/serpapi-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/6cd0120cc4c5ac11d28b2c60f76033b52db98dac641de3b2644bb054b449d60c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667","type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-09 13:38:54\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]