Gsc
Google Search Console and Indexing API access for AI assistants over stdio
Gsc is an open-source MCP server for marketing and seo. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- Self-hosted, API, CLI
- Runs
- Locally
- What it can do
- Can delete data (2 tools)
- Version
- 1.3.6
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"@mikusnuz/gsc-mcp"
],
"env": {
"GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
"GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
"GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"@mikusnuz/gsc-mcp"
],
"env": {
"GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
"GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
"GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"@mikusnuz/gsc-mcp"
],
"env": {
"GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
"GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
"GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"gsc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mikusnuz/gsc-mcp"
],
"env": {
"GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
"GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
"GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.gsc]
command = "npx"
args = ["-y", "@mikusnuz/gsc-mcp"]
env = { GSC_CLIENT_ID = "<GSC_CLIENT_ID>", GSC_CLIENT_SECRET = "<GSC_CLIENT_SECRET>", GSC_REFRESH_TOKEN = "<GSC_REFRESH_TOKEN>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"@mikusnuz/gsc-mcp"
],
"env": {
"GSC_CLIENT_ID": "<GSC_CLIENT_ID>",
"GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>",
"GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Or run: gemini mcp add -s user -e GSC_CLIENT_ID='<GSC_CLIENT_ID>' -e GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' -e GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' gsc npx -- -y @mikusnuz/gsc-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "gsc": { "command": "npx", "args": [ "-y", "@mikusnuz/gsc-mcp" ], "env": { "GSC_CLIENT_ID": "<GSC_CLIENT_ID>", "GSC_CLIENT_SECRET": "<GSC_CLIENT_SECRET>", "GSC_REFRESH_TOKEN": "<GSC_REFRESH_TOKEN>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
GSC_CLIENT_IDGoogle OAuth2 Client IDGSC_CLIENT_SECRETGoogle OAuth2 Client SecretGSC_REFRESH_TOKENGoogle OAuth2 Refresh TokenGSC_SERVICE_ACCOUNT_KEY_PATHPath to Google service account JSON key file
About Gsc
Where other Search Console wrappers stop at the search analytics query, this server maps the whole of both Google APIs into 13 tools. They cover sites, sitemaps, search analytics, URL inspection and the Indexing API, so an assistant can manage a property as well as read from it.
Authentication is either an OAuth2 refresh token (client ID, secret and token) or a service account key file. The README lists the two OAuth scopes needed, webmasters and indexing, and walks through the Google Cloud setup. For the Indexing API tools a service account must be a delegated owner of the property.
The README is careful about the Indexing API: Google supports it only for pages with JobPosting data or livestream pages with BroadcastEvent markup, and a successful response means the notification was received, not that the URL was indexed. It also quotes Google's default quota of 200 publish requests per day, and notes that a batch of 100 URLs still uses 100 requests. It requires Node.js 20 or newer and is MIT licensed.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 13 tools delete data and 3 change data; 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- sites_listName suggests: reads
- List all sites (properties) in your Search Console
- sites_getName suggests: reads
- Get details of a specific site
- sites_addName suggests: changes
- Add a new site (property)
- sites_deleteName suggests: deletes
- Remove a site
- sitemaps_listName suggests: reads
- List all submitted sitemaps for a site
- sitemaps_getName suggests: reads
- Get details of a specific sitemap
- sitemaps_submit
- Submit a sitemap
- sitemaps_deleteName suggests: deletes
- Delete a sitemap
- search_analytics_queryName suggests: reads
- Query search performance data with filtering and grouping
- url_inspection_inspectName suggests: reads
- Inspect a URL's index status, crawl info, rich results and AMP
- indexing_publishName suggests: changes
- Notify Google about an eligible JobPosting or BroadcastEvent URL update or removal
- indexing_get_metadataName suggests: reads
- Get latest notification metadata for an eligible URL
- indexing_batch_publishName suggests: changes
- Batch notify up to 100 eligible URLs
What it does
- Full Search Console coverage
- Exposes the site, sitemap, search analytics and URL inspection endpoints rather than only the analytics query.
- Search analytics queries
- Returns clicks, impressions, CTR and position with filtering and grouping, including an hourly dimension.
- Sitemap management
- Lists, fetches, submits and deletes sitemaps for a property.
- URL inspection
- Reports a URL's index status, crawl info, rich results and AMP data.
- Indexing API tools
- Publishes, batch-publishes (up to 100 URLs) and fetches metadata for eligible job posting or livestream URLs.
- Two auth methods
- Works with an OAuth2 refresh token or a service account JSON key.
Good for
- Pull search performance for the last 30 days and compare mobile with desktop
- Submit or remove a sitemap without opening Search Console
- Find pages with indexing errors through URL inspection
- Notify Google of updated job posting or livestream pages
Pricing
Open source
MIT licensed
More servers for the same service
Gsc FAQ
Which pages can use the Indexing API tools?
Google supports the API only for pages with JobPosting structured data or livestream pages with BroadcastEvent inside a VideoObject.
What are the Indexing API limits?
The README cites Google's default of 200 publish requests per day, 180 metadata requests per minute and 380 requests per minute overall.
How do I authenticate?
Set an OAuth2 client ID, secret and refresh token, or point GSC_SERVICE_ACCOUNT_KEY_PATH at a service account key file.
Does a successful publish mean the URL is indexed?
No. It confirms Google received the notification; use the URL inspection tool to check index status.
Is Gsc free?
Yes. Gsc is open source, so you can use and self-host it for free.
How do I add Gsc to Claude Code?
Run this command in your terminal: claude mcp add gsc --env GSC_CLIENT_ID='<GSC_CLIENT_ID>' --env GSC_CLIENT_SECRET='<GSC_CLIENT_SECRET>' --env GSC_REFRESH_TOKEN='<GSC_REFRESH_TOKEN>' -- npx -y @mikusnuz/gsc-mcp
What are the best alternatives to Gsc?
The closest alternatives to Gsc are Agent-Native Analytics, dashboard-icons, Google Ads + Meta Ads + SEO/GEO MCP, TryPost and Tapetide - Indian Stock Market MCP.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

