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

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
Webpage Search
- Function Name:
search
- Input:
{
"query": "search query",
"num": "max number of search results"
}
[
{
"title": "webpage title",
"snippet": "webpage snippet",
"url": "webpage link"
}
]
Image Search
- Function Name:
image_search
- Input:
{
"query": "search query",
"num": "max number of search results"
}
[
{
"title": "image title",
"url": "image link",
"mime": "image mimetype",
"context_link": "image context_link",
"width": "image width",
"height": "image height",
"byte_size": "image_bytesize"
}
]