mcp-google-search

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: Apache-2.0

README

mcp-google-search Google Search MCP server implementation in Golang

Go Reference Go goreleaser GitHub go.mod Go version of a Go module GoReportCard GitHub license GitHub release

Installation

go install github.com/bububa/mcp-google-search

Setup

Set environment variable

  • GOOGLE_SEARCH_CX Google custom search ID
  • GOOGLE_SEARCH_KEY Google custom search API key

Usage

Start stdio server
mcp-google-search
Start streamable server
mcp-google-search -port=8080

Schema

  • Function Name: search
  • Input:
{
  "query": "search query",
  "num": "max number of search results"
}
  • Output:
[
  {
    "title": "webpage title",
    "snippet": "webpage snippet",
    "url": "webpage link"
  }
]
  • Function Name: image_search
  • Input:
{
  "query": "search query",
  "num": "max number of search results"
}
  • Output:
[
  {
    "title": "image title",
    "url": "image link",
    "mime": "image mimetype",
    "context_link": "image context_link",
    "width": "image width",
    "height": "image height",
    "byte_size": "image_bytesize"
  }
]

Directories

Path Synopsis
cmd
fc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL