Overview
The SearchMCP MCP server exposes Google web search via Model Context Protocol. Connect agents over /mcp
(StreamableHTTP) or /sse
(legacy Server-Sent Events).
The SearchMCP MCP server exposes Google web search via Model Context Protocol. Connect agents over /mcp
(StreamableHTTP) or /sse
(legacy Server-Sent Events).
The SearchMCP server can be consumed by any client or framework that speaks the Model Context Protocol. This makes it highly flexible and broadly compatible across today’s LLM ecosystem:
- Claude Desktop — add it in your
claude_desktop_config.json
for direct integration. - ChatGPT — connect via custom MCP server configuration for ChatGPT’s MCP client support.
- AI SDKs in Node.js & Python — libraries like
@ai-sdk/mcp
(Node.js) can talk to the server out-of-the-box. - Agent toolchains — LangChain, Semantic Kernel, AutoGen, and other frameworks can consume MCP tools to enrich agents with live search capabilities.
- Custom apps — any backend, script, or service can connect to the
/mcp
endpoint and use SearchMCP as a tool provider.
In practice, anywhere that supports MCP transports (StreamableHTTP or SSE) can use SearchMCP as a drop-in search capability for agents, copilots, or orchestration frameworks.
POST https://api.searchmcp.io/mcp
— StreamableHTTP (modern)GET https://api.searchmcp.io/sse
— SSE stream (legacy)POST https://api.searchmcp.io/message
— SSE message endpoint
Authenticate with your X-API-Key
. The modern /mcp
endpoint is recommended for Claude Desktop and other MCP clients.
Parameters accepted by the Search endpoint.
- querystring required
The search query text. Example: 'apple inc'.
- locationenum | nullAllowed:
UK
USA
MEXICO
JAPAN
CALIFORNIA_USA
SFO_USA
NY_USA
MUMBAI_INDIA
LONDON_UK
PARIS_FRANCE
DUBAI
BANGKOK
SOHO_NYC_USA
Physical/geographic location context for the search. Default: "UK".
- countrystring(ISO-3166-1 alpha-2)
Two-letter country code (e.g., 'US', 'GB', 'IN'). Used for search regionalization.
- numberOfResultsinteger
Maximum number of results to return. Default: 10.
- dateRangeenum | nullAllowed:
ANYTIME
PAST_YEAR
PAST_MONTH
PAST_WEEK
PAST_24_HOURS
PAST_HOUR
Time filter for results.
npx mcp-remote https://api.searchmcp.io/mcp --header "x-api-key: smcp_<YOUR_API_KEY>"
Parameters returned by the Search endpoint.
- statusenum requiredAllowed:
UNAUTHORIZED
INSUFFICIENT_CREDITS
ERROR
SUCCESS
Execution status of the request.
- searchParametersobject required
Echo of normalized parameters used by the engine.
- querystring required
The search query string.
- typestring
Search mode/type selected by backend.
- enginestring
Engine/provider used for this search.
- knowledgeGraphobject|null
Entity panel if Google returns one for the query.
- titlestring
Entity title.
- imageUrlstring(url)
Entity image URL (if available).
- descriptionstring
Short summary text.
- descriptionSourcestring
Source label for description (e.g., Wikipedia).
- descriptionLinkstring(url)
Source URL for the description.
- attributesmap<string, string>
Key–value facts about the entity (e.g., Headquarters, CEO).
- organicarray<object> required
List of organic results in rank order.
- titlestring required
Result title.
- linkstring(url) required
Canonical result URL.
- snippetstring
Short summary/excerpt from the page.
- positioninteger
1-based result rank for this page.
- datestring(ISO-8601)
Published/seen date when available.
- relatedSearchesarray<object>|null
Suggested related queries.
- querystring required
Suggested query text.
- creditsinteger
Credits billed for this request (typically 1 per search unless otherwise documented).