Purpose: gsc-readonly-mcp is a read-only MCP (Model Context Protocol) server that wraps the Google Search Console API for querying Search Console data in MCP clients. The project explicitly covers only search analytics, sitemap status, URL inspection, and property listing, and provides no other functionality.
Main capabilities: According to the information, the toolset includes search analytics query (search_analytics_query), sitemap list (list_sitemaps), site list (list_sites), and URL inspection. The project does not request any write scopes and uses only the webmasters.readonly read-only permission; there is no submit_sitemap, delete_sitemap, nor any way to modify Search Console content.
Usage:
- In Google Cloud Console, create or select a project and enable the Search Console API; create a service account and generate a JSON key, and record the client_email in it.
- In Search Console, open the corresponding property, go to Settings → Users and permissions → Add user, and paste the service account's client_email. If you need to use search_analytics_query, grant "Full" permission; restricted users calling that endpoint will get a permission error. When using only list_sites / list_sitemaps, restricted permission is sufficient.
- Store the key file outside any git repository.
- Configure the MCP client, or configure it in .mcp.json. The GSC_SITE_URL environment variable is optional; each tool also accepts a site_url parameter and can override it, making it convenient for the same server to cover multiple properties.
- Property URLs must exactly match those shown in Search Console: domain properties are in the form sc-domain:example.de, and URL-prefix properties are in the form https://example.de/。形式错误可能导致静默失败或权限错误。
Use cases: SEO workflows that need to query Search Console search analytics, sitemap status, URL inspection, and property listings in a read-only manner within an MCP client.
Limitations and security design: The project does not request any write permissions; there is no telemetry, and there are no network calls other than the aforementioned Google API. Runtime dependencies are @modelcontextprotocol/sdk, google-auth-library, and zod. The project is scanned with SkillSpector before each release; results are in SECURITY.md. The project is positioned to remain small and easy to audit completely in one pass, so its feature scope is intentionally smaller than a full Search Console management tool; if write operations are needed, another project must be sought.