Skip to main content
Glama
NightTrek

Serper Search MCP Server

by NightTrek
searchToolSchema.ts1.13 kB
/** * Schema definition for the Serper Google search tool */ /** * Input schema for the Google search tool */ export const searchToolInputSchema = { type: 'object', properties: { query: { type: 'string', description: 'Search query', }, numResults: { type: 'number', description: 'Number of results to return (default: 10)', minimum: 1, maximum: 100, }, gl: { type: 'string', description: 'Country code (e.g., "us", "uk")', pattern: '^[a-z]{2}$', }, hl: { type: 'string', description: 'Language code (e.g., "en", "es")', pattern: '^[a-z]{2}(-[A-Z]{2})?$', }, autocorrect: { type: 'boolean', description: 'Enable query autocorrection', }, }, required: ['query'], }; /** * Tool definition for the Serper Google search */ export const searchToolDefinition = { name: 'serper-google-search', description: 'Perform a Google search using the SERPER API. Returns rich search results including knowledge graph, organic results, related questions, and more.', inputSchema: searchToolInputSchema, };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NightTrek/Serper-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server