Google Search MCP Server

Provide Google search functionality: it queries the SerpAPI, retrieves organic search results, and returns them (title, snippet, link, position) in JSON format.

Web Search SearchWebGoogle

Configuration

MCP Settings Configuration

{
"google-search": {
    "stdio": {
        "command": "python3",
            "args": [
            "-m", "mcpworld.mcp.servers.google_search"
        ]
    },
    "sse": {
        "command": "python3",
        "args": [
            "-m", "mcpworld.mcp.servers.google_search",
            "--transport", "sse",
            "--port", "{{PORT}}"
        ]
    },
    "env": {
            "SERP_API_KEY": "{{SERP_API_KEY}}"
        }
    }
}

Available Tools & Methods

search(query)
A tool to execute the Google search and return the top results.
Parameters: query (string)

Authorization Guide

# Installation ## Get Your SerpAPI Key 1. Visit https://serpapi.com/ and sign up for an account 2. Choose a plan that fits your needs 3. Get your API key from your dashboard 4. Set the environment variable: ```bash export SERP_API_KEY="your_serp_api_key" ```