Skip to main content
Glama
ahonn

Google Search Console MCP Server

by ahonn

list_sites

Retrieve all websites and properties registered in your Google Search Console account to manage and analyze search performance data.

Instructions

List all sites in Google Search Console

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core implementation of the list_sites tool. Calls Google Webmasters API's sites.list() method via authenticated client to retrieve list of verified sites.
    async listSites() { const webmasters = await this.getWebmasters(); return webmasters.sites.list(); }
  • src/index.ts:44-47 (registration)
    Registration of the list_sites tool in the MCP list_tools response handler, including name, description, and JSON schema for empty input (no parameters).
    name: 'list_sites', description: 'List all sites in Google Search Console', inputSchema: zodToJsonSchema(z.object({})), },
  • MCP call_tool dispatch case for list_sites that instantiates the SearchConsoleService, calls its listSites method, and returns the response as formatted text content.
    case 'list_sites': { const response = await searchConsole.listSites(); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; }
  • Input schema definition for list_sites tool: empty object schema indicating no input parameters are required.
    inputSchema: zodToJsonSchema(z.object({})),

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/ahonn/mcp-server-gsc'

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