google-search-console-mcp

MCP server for Google Search Console. Query search
analytics, inspect how Google sees your URLs, and manage sitemaps from any MCP client (Claude
Code, Claude Desktop, Cursor, and others) — plus a companion agent skill that turns the data
into SEO diagnosis and fixes.
Built on the stateless MCP specification 2026-07-28: five condensed tools instead of a
mirror of API endpoints, output shaped for model context, and error messages that tell the
model what to do next.
Quick start
Claude Code — install the gsc plugin, which bundles the server and the companion seo
skill. Add the marketplace once per machine, then enable the plugin in each website repo:
claude plugin marketplace add LukeRenton/google-search-console-mcp
claude plugin install gsc@google-search-console-mcp --scope local
--scope local enables it for the current repo only, for you only, with nothing committed.
Use --scope project to share it with the repo's collaborators, or --scope user to load it
in every project. Restart Claude Code after installing. Run /gsc:seo, or just ask
"how's the SEO?".
Without the plugin (server only):
claude mcp add gsc -- npx -y @lukerent/google-search-console-mcp
Any other MCP client, in its server config:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "@lukerent/google-search-console-mcp"]
}
}
}
Then complete the one-time Google authorization below.
Or let your agent set it up
Paste this into Claude Code, Cursor, or another coding agent. It walks you through the Google
Cloud steps (those need you in a browser), then handles installation, authorization, and
verification itself.
Set up the Google Search Console MCP server (@lukerent/google-search-console-mcp) for me.
README: https://github.com/LukeRenton/google-search-console-mcp#readme
1. Identify which MCP client you are running in. For Claude Code, install the `gsc` plugin
(server plus the companion `seo` skill): run
`claude plugin marketplace add LukeRenton/google-search-console-mcp`, then ask me which
scope I want (local: this repo, just me; project: shared with collaborators; user: every
project) and run `claude plugin install gsc@google-search-console-mcp --scope <scope>`.
For any other client, add a "gsc" entry with command "npx" and args
["-y", "@lukerent/google-search-console-mcp"] to its MCP config file, asking me before
editing it.
2. Ask whether I already have a Desktop-app OAuth client JSON for the Search Console API. If
not, walk me through creating one, one step at a time, waiting for me after each:
enable the "Google Search Console API" in a Google Cloud project; configure the OAuth
consent screen (Internal for a Workspace account, otherwise External and then publish it,
because apps left in Testing mode get tokens that expire after 7 days); create an OAuth
client ID of type "Desktop app" and download the JSON. Then ask me for the file's path.
3. Authorize: run `npx -y @lukerent/google-search-console-mcp auth <path-to-json>`. It opens a
browser for Google sign-in and waits until I finish, so run it with a timeout of several
minutes, or ask me to run it myself if you can't wait that long. Confirm it prints
"Saved credentials to ...".
4. Tell me to restart the client (or reload MCP servers) so the new server loads. Once it has,
call the list_properties tool and show me the result to confirm everything works.
Tools
| Tool | Purpose |
|---|
list_properties | List the Search Console properties your account can access |
query_search_analytics | Clicks, impressions, CTR, and position by query, page, date, device, or country, with filters and period-over-period comparison |
inspect_url | Index status, chosen canonical, last crawl, sitemap membership, and rich-result issues for a single URL |
list_sitemaps | Submitted sitemaps with processing status, URL counts, errors, and warnings |
submit_sitemap | Submit or resubmit a sitemap to Google (the only write operation) |
Setup
- In Google Cloud Console, create or pick a project and enable the Google Search Console API (APIs & Services > Library).
- Configure the OAuth consent screen (Google Auth Platform). Pick Internal if your account is in a Google Workspace org; otherwise External, then publish the app — apps left in Testing mode get refresh tokens that expire after 7 days.
- Create an OAuth client ID (APIs & Services > Credentials) with application type Desktop app, and download its JSON file.
- Authorize once from a terminal: