Skip to main content
Glama

Google Search MCP Server Streamable HTTP

by Maimikuru
type.tsโ€ข950 B
import { z } from 'zod' // Cloud Run configuration export interface Config { googleSearchApiKey: string googleCseId: string port: number } // Google Search API response type definition export const responseSchema = z.object({ items: z .array( z.object({ title: z.string(), link: z.string(), snippet: z.string().optional(), pagemap: z .object({ metatags: z .array( z.object({ 'og:title': z.string().optional(), 'og:description': z.string().optional(), 'og:image': z.string().optional(), }), ) .optional(), }) .optional(), }), ) .optional(), }) // Search result type definitions (inferred) export type SearchResponse = z.infer<typeof responseSchema> export type SearchItem = NonNullable<SearchResponse['items']>[0]

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/Maimikuru/google-search-mcp'

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