Installation guide
How to install mcp-server-gsc (Google Search Console)
In Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Cursor and Claude Code, with what to check before you start and the first prompts to run.
This is a community-maintained local server, not an official Google product. You run it on your own machine with `npx -y mcp-server-gsc`, and it authenticates to Google Search Console with a Google Cloud service account JSON key referenced by `GOOGLE_APPLICATION_CREDENTIALS`. The documentation exposes one tool, `search_analytics`, which reads data only.
Have an SEO lead or agency developer do this, using a Google account that can create a Google Cloud project and service account, and that is an owner of each Search Console property. Store the JSON key privately. The service account must be added as a property administrator, so treat the key like a password. The project is maintained by one individual, so review it before relying on it for client work.

Before you start
Node.js18 or later on the computer that will run the server- A Google Cloud project with the Search Console API enabled (
APIs & Services > Library) - A service account with a
JSONkey downloaded (APIs & Services > Credentials), and the absolute path to that file - Owner-level access in Search Console to add the service account email (
name@project.iam.gserviceaccount.com) as a property administrator on each property - An MCP client that can launch local commands, such as Claude Desktop, Cursor, Gemini CLI, VS Code or Claude Code
- How it runs
- Local, runs on your machine
- Access
- Read-only
- Server address
- Copy it from the vendor documentation
mcp-server-gsc (Google Search Console) in Claude
- Complete the Google setup first: enable the Search Console API, create a service account, download its
JSONkey, and add the service account email to each Search Console property as a property administrator. - Open the Claude Desktop config file (
claude_desktop_config.json) via the app's developer settings. The documentation does not give the file location, so use the path shown there. - Add the
gscentry undermcpServersas shown in the snippet, replacing/path/to/credentials.jsonwith the absolute path to your key file. - Save the file and fully restart Claude Desktop.
- Check that the
gscserver and itssearch_analyticstool are listed, then run a verification prompt. Claude.ai on the web cannot launch local commands, so use the desktop app.
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-server-gsc"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
mcp-server-gsc (Google Search Console) in ChatGPT
- The documentation does not cover ChatGPT. This server runs locally over a command, and ChatGPT custom MCP connectors (Developer mode) expect a remote server URL.
- The documentation gives no hosted URL for this server, so there is nothing to paste into ChatGPT as written.
- If you need ChatGPT access, you would have to host the server yourself behind a URL that you secure. The repository mentions a Cloudflare Workers option, but the documentation text gives no setup steps, so follow the repository instructions and do not guess.
- For a supported path, use Claude Desktop, Cursor, Gemini CLI, VS Code or Claude Code with the local config instead.
mcp-server-gsc (Google Search Console) in Gemini
- Complete the Google service account and Search Console property setup first.
- Open the Gemini CLI settings file and find the
mcpServersobject. The documentation does not cover Gemini, so take the file location from the Gemini CLI documentation. - Add the
gscentry from the snippet, with your absolute key path inGOOGLE_APPLICATION_CREDENTIALS. - Save the file and restart Gemini CLI.
- Run a verification prompt. The Gemini app extensions are not covered by the documentation for this server.
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-server-gsc"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
mcp-server-gsc (Google Search Console) in Microsoft Copilot
- The documentation does not cover Copilot. For GitHub Copilot in VS Code, use a local server entry in
.vscode/mcp.json. Microsoft Copilot Studio expects a remote MCP endpoint, which this local server does not provide. - Complete the Google service account and Search Console property setup first.
- Create or open
.vscode/mcp.jsonin your workspace and add thegscentry underserversas shown in the snippet. - Replace
/path/to/credentials.jsonwith the absolute path to your key file. Keep the key out of the repository. - Start the server from the editor's MCP controls, open Copilot Chat in agent mode, and confirm
search_analyticsis available.
{
"servers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-server-gsc"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
mcp-server-gsc (Google Search Console) in Perplexity
- The documentation does not cover Perplexity. Its desktop app connectors are added through the app's settings, and support for local commands depends on your app version.
- Open the Perplexity desktop app connectors settings and check whether it accepts a local command-based MCP server.
- If it does, enter
npxwith arguments-y mcp-server-gscand set the environment variableGOOGLE_APPLICATION_CREDENTIALSto the absolute path of yourJSONkey. Confirm the exact fields in Perplexity's own documentation. - If it only accepts a remote URL, this server cannot be added directly, because the documentation gives no hosted URL.
- Run a verification prompt once the connector shows as active.
mcp-server-gsc (Google Search Console) in Cursor
- Complete the Google service account and Search Console property setup first.
- Open Cursor's MCP settings, or edit the MCP config
JSONfile directly. The documentation does not cover Cursor, so use Cursor's standardmcpServersformat. - Add the
gscentry from the snippet with your absolute key path. - Save, then confirm the server shows as enabled in the MCP settings list. Reload the window if it does not appear.
- Run a verification prompt in chat.
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": [
"-y",
"mcp-server-gsc"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
}
}
}
}
mcp-server-gsc (Google Search Console) in Claude Code
- Complete the Google service account and Search Console property setup first.
- Run the command in the snippet in your terminal, replacing
/path/to/credentials.jsonwith the absolute path to your key file. The-eflag passes the environment variable to the server. - The documentation shows only the Claude Desktop config, so this command is the standard Claude Code equivalent of that entry.
- Run
claude mcp listto confirmgscis registered. - Start a session and run a verification prompt.
claude mcp add gsc -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json -- npx -y mcp-server-gscCheck that it works
Start with questions that only read data. If these answer from your real account, the connection is good.
- Using search_analytics, show the top 10 queries by clicks for https://example.com from 2024-01-01 to 2024-01-07. Use a small row limit.
- For sc-domain:example.com, list the top 10 pages by impressions over the last 7 days of final data, with device set to MOBILE.
- Run a quick-wins check on https://example.com for one month with a row limit of 500, and list the queries it flags.
Troubleshooting
+Why do I get a permission or 403 error for a site?
The service account probably has not been added to that property. In Search Console, add the service account email (`name@project.iam.gserviceaccount.com`) as a property administrator, as the documentation says. Repeat for each property. Also confirm the Search Console API is enabled in the same Google Cloud project as the key.
+Why does the server not appear in my client, or fail to start?
Check that Node.js 18 or later is installed and that `npx` is on the PATH your client uses. Confirm the JSON is valid and that `GOOGLE_APPLICATION_CREDENTIALS` is an absolute path to an existing key file. Then fully restart the client. Desktop apps often need a complete quit, not just closing the window.
+Why does a query return no data or an invalid site error?
Use the `siteUrl` format from the documentation: a full URL such as `https://example.com` (matching the property type exactly, including the trailing slash form in the docs example `http://www.example.com/`) or `sc-domain:example.com` for domain properties. Dates must be `YYYY-MM-DD`. Start with a short date range and a small `rowLimit`.
Written Nov 10, 2026 from the vendor documentation. Exact menus, addresses and commands change; the official documentation is the source of truth.
Questions and answers (1)
Questions readers and searchers ask about installing mcp-server-gsc (Google Search Console), answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.
- MCP Ecommerce editorSite editor
People search for: “how to connect google search console to claude”
Google has no official Search Console MCP server, so you connect Claude through a community one such as mcp-server-gsc, which runs locally on your machine. First, in Google Cloud, enable the Search Console API, create a service account and download its JSON key. Then in Search Console, add the service account email as a property administrator on each site you want to query. In Claude Desktop, open the Settings developer section, edit claude_desktop_config.json, and add a `gsc` entry under `mcpServers`. It runs `npx` with args `-y` and `mcp-server-gsc`, and sets `GOOGLE_APPLICATION_CREDENTIALS` to the absolute path of your key file. Fully restart Claude Desktop, check that `gsc` and its `search_analytics` tool are listed, then run a small test query. Claude Code users can run `claude mcp add` instead, then `claude mcp list` to confirm. The catch: it's read-only, needs Node.js 18+, and the project is maintained by one person. The docs don't give the config file location, so use the standard path for your OS.