Skip to main content
Glama

FetchSERP MCP Server

Official
by fetchSERP

get_serp_ai_mode

Retrieve SERP AI Overview and AI Mode responses for a query in under 30 seconds. Use this tool to analyze search results, SEO data, and keyword insights efficiently.

Instructions

Get SERP with AI Overview and AI Mode response. Returns AI overview and AI mode response for the query. Less reliable than the 2-step process but returns results in under 30 seconds.

Input Schema

NameRequiredDescriptionDefault
countryNoThe country to search from. Default: usus
queryYesThe query to search

Input Schema (JSON Schema)

{ "properties": { "country": { "default": "us", "description": "The country to search from. Default: us", "type": "string" }, "query": { "description": "The query to search", "type": "string" } }, "required": [ "query" ], "type": "object" }

Implementation Reference

  • Handler implementation for 'get_serp_ai_mode' tool. It proxies the tool call to the FetchSERP API endpoint '/api/v1/serp_ai_mode' using the shared makeRequest method with GET method and tool arguments.
    case 'get_serp_ai_mode': return await this.makeRequest('/api/v1/serp_ai_mode', 'GET', args, null, token);
  • index.js:386-404 (registration)
    Tool registration in the ListTools response, including name, description, and input schema definition for 'get_serp_ai_mode'.
    { name: 'get_serp_ai_mode', description: 'Get SERP with AI Overview and AI Mode response. Returns AI overview and AI mode response for the query. Less reliable than the 2-step process but returns results in under 30 seconds.', inputSchema: { type: 'object', properties: { query: { type: 'string', description: 'The query to search', }, country: { type: 'string', description: 'The country to search from. Default: us', default: 'us', }, }, required: ['query'], }, },

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/fetchSERP/fetchserp-mcp-server-node'

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