google-gsc-mcp MCP Server
Google Search Console MCP server: search analytics, sitemaps and URL inspection.
google-gsc-mcp scores 69 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 16 tools. Filed under Uncategorized. GitHub shows 5 stars. Package registries report about 96 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
69 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 69 comes from
22 + 20 + 3 + 10 + 4 + 10 = 69. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "bilalnaseer-google-search-console-mcp": { "command": "npx", "args": [ "-y", "google-gsc-mcp@0.6.2" ], "env": { "WSP_CLIENT_ID": "", "WSP_CLIENT_SECRET": "YOUR_WSP_CLIENT_SECRET", "WSP_OAUTH_FILE": "", "WSP_SERVICE_ACCOUNT_FILE": "", "WSP_ALLOW_WRITES": "false" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
WSP_CLIENT_ID | Optional | OAuth Client ID from your own Google Cloud project (Desktop app client). |
WSP_CLIENT_SECRETSecret | Optional | OAuth Client secret that belongs to WSP_CLIENT_ID. |
WSP_OAUTH_FILE | Optional | Absolute path to a downloaded OAuth client JSON file (alternative to WSP_CLIENT_ID and WSP_CLIENT_SECRET). |
WSP_SERVICE_ACCOUNT_FILE | Optional | Absolute path to a service account JSON key (for automation and teams). |
WSP_ALLOW_WRITES | Optional | Set to true to enable write tools (add/remove websites and sitemaps). Off by default. |
Tools16Tool docs quality grade D
All capabilitiesSubmits or resubmits a sitemap
Adds a website to Search Console
Is this page indexed? Last crawl, canonical, robots and rich results
The same check for up to 10 pages at once
Compares two date ranges and shows what went up or down most
The search keywords that bring visitors to one page
Lists your Search Console websites and their exact siteurl
Opens the Google login again, e.g. to switch accounts or fix login errors
Removes a sitemap (pages already indexed stay indexed)
Removes a website from Search Console
Custom report with filters, sorting, device, country, search type, up to 25,000 rows
Full details for one sitemap
About
Google Search Console MCP Server
Talk to your Google Search Console data in plain English from Claude, Cursor, Codex, Gemini CLI or any other MCP app.
"Which keywords lost clicks this month?" "Are my top 10 pages indexed?" "Compare January with February and tell me what changed."
Jump to: Setup · Tools · Settings · Example prompts · Troubleshooting · Docker & remote
Setup
You need Node.js 20 or newer (node --version to check). Setup takes about 3 minutes and you only do it once.
1. Create a Client ID and Secret
- Open Google Cloud Console, then create a project (or pick one).
- Enable the Search Console API.
- Open Google Auth Platform and set up the consent screen: enter an app name and your email, and choose External as the audience.
- Under Audience → Test users, click + Add users and add the Google account that has access to your Search Console sites. While the app is in Testing, only these accounts can sign in.
- Go to Clients → Create client, set Application type to Desktop app, and click Create.
- Copy the Client ID and Client secret. The secret can't be shown again after you close the dialog.
This project doesn't ship a login of its own, so your data never goes through anyone else's Google project.
2. Add this to your app's MCP config
{
"mcpServers": {
"search-console": {
"command": "npx",
"args": ["-y", "google-gsc-mcp"],
"env": {
"WSP_CLIENT_ID": "your-client-id.apps.googleusercontent.com",
"WSP_CLIENT_SECRET": "your-client-secret"
}
}
}
}
| App | Config file |
|---|---|
| Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |
| Claude Code | claude mcp add search-console -e WSP_CLIENT_ID=... -e WSP_CLIENT_SECRET=... -- npx -y google-gsc-mcp |
| Cursor | ~/.cursor/mcp.json |
| Gemini CLI, Antigravity, others | Your app's MCP config file |
This server is also listed in the official MCP Registry as io.github.bilalnaseer/google-gsc-mcp, so registry-aware clients can install it directly.
File: ~/.codex/config.toml
[mcp_servers.search-console]
command = "npx"
args = ["-y", "google-gsc-mcp"]
enabled = true
env = { WSP_CLIENT_ID = "your-client-id.apps.googleusercontent.com", WSP_CLIENT_SECRET = "your-client-secret" }
3. Restart and sign in
Fully quit your app and reopen it (on macOS press Cmd+Q; closing the window isn't enough). Then ask: "List my Search Console websites."
The first time, a browser window opens so you can sign in to Google. Pick the account you added as a test user. If Google warns that the app isn't verified, click Advanced → Go to (your app name). After that you stay signed in.
If something goes wrong, ask "Run wsp_show_status_gsc". It shows whether you're signed in and the exact error.
Other ways to sign in
- In Credentials, choose Create Credentials → Service Account.
- Open the Keys tab → Add Key → Create new key → JSON, and download it to a safe place.
- In Search Console, open Settings → Users and permissions → Add user, paste the service account's email and give it Full access.
- Use this
envblock instead:
"env": {
"WSP_SERVICE_ACCOUNT_FILE": "/full/path/to/service_account.json",
"WSP_SERVICE_ACCOUNT_ONLY": "true"
}
With neither a client nor a service account set, the server falls back to Google's default credentials (gcloud auth application-default login, Cloud Run, GKE, Workload Identity Federation).
Click Download JSON when you create the client, save it somewhere safe, and set WSP_OAUTH_FILE to its full path, e.g. "WSP_OAUTH_FILE": "/Users/you/secrets/client_secrets.json". It is ignored if WSP_CLIENT_ID and WSP_CLIENT_SECRET are set.
Add one MCP entry per account, each with its own WSP_TOKEN_DIR, so the saved logins don't overwrite each other. All entries can share the same Client ID and secret. Add every account as a test user.
"search-console-work": {
"command": "npx",
"args": ["-y", "google-gsc-mcp"],
"env": {
"WSP_CLIENT_ID": "...",
"WSP_CLIENT_SECRET": "...",
"WSP_TOKEN_DIR": "/Users/you/.gsc-tokens/work"
}
}
git clone https://github.com/bilalnaseer/google-search-console-mcp.git
cd google-search-console-mcp
npm install
npm run build
Then use "command": "node" and "args": ["/full/path/to/google-search-console-mcp/dist/index.js"] in your config.
Tools
Most tools need a site_url. Get it from wsp_list_websites_gsc and copy it exactly. It looks like https://example.com/ or sc-domain:example.com.
| Tool | What it does |
|---|---|
| Getting started | |
wsp_show_status_gsc | Shows whether you're signed in and lists every tool |
wsp_list_websites_gsc | Lists your Search Console websites and their exact site_url |
wsp_show_website_gsc | Your permission level and verification details for one website |
wsp_login_again_gsc | Opens the Google login again, e.g. to switch accounts or fix login errors |
| Traffic & keywords | |
wsp_show_traffic_gsc | Clicks, impressions, CTR and position: totals plus a daily trend |
wsp_compare_dates_gsc | Compares two date ranges and shows what went up or down most |
wsp_find_page_keywords_gsc | The search keywords that bring visitors to one page |
wsp_run_report_gsc | Custom report with filters, sorting, device, country, search type, up to 25,000 rows |
| Indexing | |
wsp_check_url_gsc | Is this page indexed? Last crawl, canonical, robots and rich results |
wsp_check_urls_gsc | The same check for up to 10 pages at once |
| Sitemaps | |
wsp_show_sitemaps_gsc | All your sitemaps with status, errors and warnings |
wsp_show_sitemap_gsc | Full details for one sitemap |
| Write tools (off by default) | |
wsp_add_sitemap_gsc | Submits or resubmits a sitemap |
wsp_remove_sitemap_gsc | Removes a sitemap (pages already indexed stay indexed) |
wsp_add_website_gsc | Adds a website to Search Console |
wsp_remove_website_gsc | Removes a website from Search Console |
Turning on write tools
By default the server only reads your data. To let it add or remove websites and sitemaps:
- Add
"WSP_ALLOW_WRITES": "true"to yourenvblock. - Restart your app.
- Ask it to run
wsp_login_again_gsconce so Google grants the extra permission.
Settings
Put these in the env block of your config.
| Setting | Default | What it does |
|---|---|---|
WSP_CLIENT_ID | — | OAuth Client ID |
WSP_CLIENT_SECRET | — | OAuth Client secret (use together with WSP_CLIENT_ID) |
WSP_OAUTH_FILE | — | Alternative to the two above: full path to your OAuth client_secrets.json. Ignored if ID and secret are set |
WSP_SERVICE_ACCOUNT_FILE | — | Full path to your service account key |
WSP_SERVICE_ACCOUNT_ONLY | false | true skips the Google login and uses only the service account |
WSP_DATA_MODE | all | all matches the Search Console dashboard. final shows only confirmed data (2–3 days behind) |
WSP_ALLOW_WRITES | false | true turns on the write tools. Run wsp_login_again_gsc after changing it |
WSP_TOKEN_DIR | OS config folder | Where your saved login (token.json) is kept. Rarely needed |
The server tries logins in this order: saved Google login → service account → Google default credentials.
Example prompts
| Goal | Ask |
|---|---|
| See your sites | "List my Search Console websites." |
| Fix low CTR | "Show my top 20 keywords for mysite.com in the last 30 days. Flag any with CTR under 2% and suggest better titles." |
| Spot drops | "Show traffic for mysite.com over the last 28 days and explain any sudden drops or spikes." |
| Month vs month | "Compare January with February. Which keywords improved most?" |
| Check indexing | "Are these pages indexed? mysite.com/product, mysite.com/services, mysite.com/about" |
| Audit one page | "Check mysite.com/landing-page and give me a list of fixes." |
| Quick wins | "Find keywords with lots of impressions but position 11–20, mobile and US only." |
Troubleshooting
Start here: ask your app to "run wsp_show_status_gsc". It shows the exact login status and error.
Your app can't find npx. This is common with nvm or fnm. Find the full path:
which npx # macOS / Linux
where npx # Windows
Then use that path as "command", e.g. "/Users/you/.nvm/versions/node/v22.0.0/bin/npx".
- File paths must be full paths.
~/works, but a bare file name doesn't. - Check
WSP_CLIENT_IDandWSP_CLIENT_SECRETfor typos or extra spaces. - If you set
WSP_OAUTH_FILEorWSP_SERVICE_ACCOUNT_FILE, the file must exist. The server stops and names the setting if it can't find it. - Seeing
invalid_grantor want another Google account? Runwsp_login_again_gsc. - Changed
WSP_ALLOW_WRITES? Runwsp_login_again_gsc.
Your OAuth app is in Testing mode and the Google account you picked isn't a test user. Open Google Auth Platform → Audience → Test users, click + Add users, add that account, then run wsp_login_again_gsc again. Having access to the Cloud project is not enough; the account must be on this list.
You signed in, but that Google account has no Search Console access. Run wsp_login_again_gsc and pick the account that owns or is a user on your sites, and make sure it is also a test user (see above).
- Copy
site_urlexactly fromwsp_list_websites_gsc. - Domain properties look like
sc-domain:example.com, not a full URL. - A service account must be added as a user on that website in Search Console.
The server runs on your computer, so it only works in the Claude Desktop app, not in the browser.
Fully quit the app (Cmd+Q) and reopen it. Also check that your JSON is valid and every path is a full path.
Docker & remote
Skip this unless you want to run the server on another machine or in a container.
| Setting | Default | What it does |
|---|---|---|
WSP_TRANSPORT | stdio | Set to sse to serve over the network |
WSP_HOST | 127.0.0.1 | Address to listen on |
WSP_PORT | 3001 | Port to listen on |
WSP_TRANSPORT=sse WSP_HOST=0.0.0.0 WSP_PORT=3001 node dist/index.js
Apps connect to http://HOST:3001/sse.
The SSE endpoint has no password. Don't expose it to the internet without a reverse proxy or firewall in front.
Docker:
docker build -t google-search-console-mcp .
docker run \
-e WSP_TRANSPORT=sse \
-e WSP_HOST=0.0.0.0 \
-e WSP_PORT=3001 \
-e WSP_SERVICE_ACCOUNT_FILE=/app/credentials.json \
-e WSP_SERVICE_ACCOUNT_ONLY=true \
-v /path/to/credentials.json:/app/credentials.json \
-p 3001:3001 \
google-search-console-mcp
A container can't open a browser, so use a service account, or mount a token.json you already signed in with and point WSP_TOKEN_DIR at its folder.
Development
npm install
npm test # no Google login needed
npm run typecheck
npm run dev # run from source
Bugs and ideas are welcome as GitHub issues or pull requests.
License
MIT, see LICENSE. Maintained by Bilal Naseer.
Frequently asked questions
What is google-gsc-mcp MCP Server?
Google Search Console MCP server: search analytics, sitemaps and URL inspection.
How do I install google-gsc-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. google-gsc-mcp MCP Server runs locally from the npm package google-gsc-mcp with the command npx -y google-gsc-mcp@0.6.2.
Is google-gsc-mcp MCP Server free and open source?
Yes. google-gsc-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does google-gsc-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for google-gsc-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does google-gsc-mcp MCP Server provide?
google-gsc-mcp MCP Server provides 16 tools, including wsp_add_sitemap_gsc, wsp_add_website_gsc, wsp_check_url_gsc, and wsp_check_urls_gsc. See the full tool list for descriptions and parameters.
How is google-gsc-mcp MCP Server's trust score calculated?
google-gsc-mcp MCP Server scores 69 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.