Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Model Context Protocol (MCP) server providing access to Google Search Console
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Search & browse the web.
MCP server for browser use access
Same catalog task: Search & browse the web.
MCP (Model Context Protocol) server for browser tools integration
Same catalog task: Search & browse the web.
MCP server for AI Mentora, compatible with ModelContextProtocol. Provides es-fulltext-retrieve tool for Canadian case law search.
Fetched from the repository for this visit.
A Model Context Protocol (MCP) server for querying, comparing, and diagnosing Google Search Console data.
GSC_ALLOW_WRITE=true.
macuse.app is a native macOS application that gives your AI superpowers by integrating AI assistants with macOS apps like Calendar, Mail, and Notes, plus universal UI control for any application. Supports Claude Desktop, Cursor, and Raycast with one-click setup. Privacy-first, runs locally.
npm install mcp-server-gsc
Select one method. If you set GOOGLE_APPLICATION_CREDENTIALS, the server uses that file. If you do not set it, the server uses the saved OAuth login.
First, enable the API:
Use this method to access the properties of your own Google account.
Create an OAuth client ID of type Desktop app.
Download the client JSON file.
Run the login command:
npx mcp-server-gsc auth login --client-secret /path/to/client_secret.json
Approve the access in the browser.
The server saves the login to ~/.config/mcp-server-gsc/oauth-token.json with file mode 600.
To use write tools, add --write to the login command. To see the login state, run npx mcp-server-gsc auth status. To remove the saved login, run npx mcp-server-gsc auth logout.
Use this method for automation, shared use, and remote deployment.
name@project.iam.gserviceaccount.com) as a user of the property.Select Restricted for read-only use. Select Full to use write tools.
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
If you use OAuth login, remove the env block.
.mcpb)To build a one-click bundle for clients that support MCPB, run:
pnpm run pack:mcpb
The command writes release/mcp-server-gsc-<version>.mcpb. The client asks for the credentials file during installation.
Add the server to ~/.codex/config.toml, or to .codex/config.toml in a trusted project. Use an absolute path for the credentials file.
[mcp_servers.gsc]
command = "npx"
args = ["-y", "mcp-server-gsc"]
[mcp_servers.gsc.env]
GOOGLE_APPLICATION_CREDENTIALS = "/path/to/credentials.json"
By default the server asks Google for the read-only scope (webmasters.readonly), so it cannot change anything in Search Console. To let it submit sitemaps and manage sites, set GSC_ALLOW_WRITE=true:
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-server-gsc"],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
"GSC_ALLOW_WRITE": "true"
}
}
}
}
The server then requests the webmasters scope. The account needs Full or Owner permission on the property. For the remote server, set GSC_ALLOW_WRITE to true as a Worker variable.
Without the flag, the server does not list submit_sitemap, delete_sitemap, add_site, and delete_site. A direct call returns an error that says how to turn them on.
"Request indexing" from the URL Inspection page is not part of the Search Console API, so no tool here can do it. The URL Inspection API only reads.
The remote server uses OAuth. MCP clients sign in with Google, and only email addresses in ALLOWED_EMAILS can connect. All allowed users share the Search Console access of one service account. If OAuth is not fully configured, /mcp returns HTTP 500 and does not serve Search Console data.
In Google Cloud, create an OAuth client ID of type Web application.
Add https://<your-domain>/callback as an authorized redirect URI.
Set the Worker secrets:
wrangler secret put GOOGLE_CREDENTIALS # Service account JSON
wrangler secret put GOOGLE_OAUTH_CLIENT_ID
wrangler secret put GOOGLE_OAUTH_CLIENT_SECRET
wrangler secret put ALLOWED_EMAILS # alice@example.com,bob@example.com
wrangler secret put PUBLIC_URL # https://<your-domain>
Deploy the Worker. Wrangler creates the OAUTH_KV namespace on the first deployment:
pnpm run deploy
Add https://<your-domain>/mcp to your MCP client and complete the sign-in.
Example for Claude Code:
claude mcp add --scope user --transport http gsc https://<your-domain>/mcp
Then run /mcp in Claude Code and select the server to sign in.
Example for Codex:
[mcp_servers.gsc]
url = "https://<your-domain>/mcp"
Then run codex mcp login gsc.
To end a user's access at once, remove the email address from ALLOWED_EMAILS.
The Worker also serves a public home page at / and a privacy policy at /privacy. These pages contain no Search Console data.
| Tool | What it does |
|---|---|
search_analytics | Queries performance data with filters and pagination |
compare_periods | Compares two date ranges and lists the top gainers and losers |
multi_site_overview | Compares totals across all or selected properties |
search_analytics parametersRequired:
siteUrl: A property (sc-domain:example.com, https://example.com/), a bare domain, or a page URL. The response shows the resolved property in meta.siteUrl.Optional:
startDate: Start date (YYYY-MM-DD, Pacific Time)
endDate: End date. Defaults to the latest day with final data
days: Range length when startDate is omitted (default: 28)
dimensions: Comma-separated list of query, page, country, device, date, hour, searchAppearance, brandedClassification
type: web, image, video, news, discover, googleNews, webMultimodal
aggregationType: auto, byNewsShowcasePanel, byProperty, byPage
dataState: final, all, hourly_all
rowLimit: Rows in this response (default: 100, max: 25000)
startRow: Zero-based row offset (default: 0)
responseFormat: tsv (default) or json
Filters:
pageFilter: Page URL expressionqueryFilter: Query expressionfilterOperator: Operator for pageFilter and queryFilter: equals, contains, notEquals, notContains, includingRegex, excludingRegexregexFilter: RE2 expression that queries must matchcountryFilter: ISO 3166-1 alpha-3 country code, such as USAdeviceFilter: DESKTOP, MOBILE, TABLETsearchAppearanceFilter: A value from the searchAppearance dimensionbrandedClassificationFilter: BRANDED or NON_BRANDED. You cannot combine it with a query filterLimits from Google:
hour dimension uses hourly_all. The server selects it for you.webMultimodal cannot be grouped by query.Example: Filter with a regular expression
{
"siteUrl": "https://example.com/",
"startDate": "2026-01-01",
"endDate": "2026-01-31",
"dimensions": "page,query",
"regexFilter": "(AI|machine learning|ML)",
"deviceFilter": "MOBILE",
"rowLimit": 10000
}
Example: Read the next page
If hasMore in the # meta line is true, send nextStartRow as startRow:
{
"siteUrl": "https://example.com/",
"startDate": "2026-01-01",
"endDate": "2026-01-31",
"dimensions": "query",
"rowLimit": 25000,
"startRow": 25000
}
These tools run fixed calculations on your Search Console data. They do not use a model or third-party benchmarks. The analysis tools and batch_url_inspect also return structuredContent that matches their outputSchema.
| Tool | What it finds |
|---|---|
diagnose_site | One-call diagnosis of traffic changes, drops, decay, top-page indexing, and sitemap errors |
detect_quick_wins | Query and page pairs in positions 4 to 10 with a low CTR. maxCtr and targetCtr are fractions, so 0.02 means 2% |
detect_traffic_drops | Pages that lost clicks, with a likely cause |
detect_content_decay | Pages whose clicks fell in each consecutive window |
find_cannibalization | Queries where several pages compete for impressions |
find_ctr_opportunities | Query and page pairs below the site's median CTR at the same position |
brand_split | Branded and non-branded traffic, using your brand terms |
Google does not report anonymized queries in query rows, so query-level totals can be lower than property totals. brand_split reports the difference as unattributed.
If a tool reads maxRows rows, it sets dataTruncated to true. A page or query that is missing from truncated data is counted in unknownDueToTruncation. It is not reported as lost. To include more rows, increase maxRows.
Tools use the property that siteUrl resolves to and report it in meta.siteUrl. A failed tool call returns isError: true with a message that says how to fix it. multi_site_overview does not add metrics across properties, because a domain property and its URL-prefix properties can overlap.
Example: Find traffic drops
{
"siteUrl": "sc-domain:example.com",
"startDate": "2026-02-01",
"endDate": "2026-02-28",
"minDropPct": 25,
"limit": 20
}
| Tool | What it does |
|---|---|
index_inspect | Inspects one URL |
batch_url_inspect | Inspects up to 100 URLs and sends MCP progress notifications. It stops and returns partial results if Google reports a quota error |
Google allows 2,000 inspections per site per day and 600 per minute.
| Tool | What it does | Needs write access |
|---|---|---|
list_sitemaps | Lists the sitemaps of a property, with last submit and download time | No |
get_sitemap | Shows one sitemap | No |
submit_sitemap | Submits a sitemap. Google fetches it again within seconds | Yes |
delete_sitemap | Removes a sitemap from the property. Its URLs stay indexed | Yes |
list_sites | Lists the properties the account can see, with its permission level | No |
add_site | Adds a property. It still has to be verified | Yes |
delete_site | Removes a property from the account | Yes |
| Prompt | Arguments | Result |
|---|---|---|
weekly_seo_report | siteUrl, optional brandTerms | A weekly report with changes, risks, and actions |
diagnose_traffic_drop | siteUrl, optional days | Likely causes of a traffic change, with evidence |
indexing_audit | siteUrl, optional urls | Index status, canonical, robots, and sitemap issues |
pnpm install
pnpm run build
pnpm test
Releases use npm trusted publishing, so the repository stores no npm token.
package.json, package-lock.json, manifest.json, and src/server.ts.CHANGELOG.md.v0.4.0.The Release workflow tests the package, publishes it to npm with provenance, and creates a GitHub release with the .mcpb bundle.
MIT
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
Loading reviews...
GitHub checked 64h ago - refresh overdue. Recently viewed repositories target hourly refresh. Last refresh failed: GitHub network error or request timeout. Saved data may be stale.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.