All integrations

Integration · GitHub Copilot CLI

Connect GitHub Copilot CLI to Google Search Console

5 steps · about 5 minutes

By the GSC PAP team · Updated

GitHub Copilot CLI is Copilot as a terminal agent, and it reads Model Context Protocol servers from its own config rather than from VS Code's. If you already connected GSC PAP to Copilot in the editor, this is a separate setup with a different file.

GSC PAP is hosted, so it goes in as an HTTP server: a URL and an Authorization header. No Google Cloud project, no local process, and read-only Google scopes throughout.

There are two routes, one command or one JSON entry, and both land in the same place.

How to connect Google Search Console to Copilot CLI

  1. 1

    Sign in to GSC PAP and copy your token

    Go to gscpap.com, click "Sign in with Google" and approve the read-only access. Choose which properties to authorize, then copy the bearer token the connect page shows once. Additional tokens, each scoped to a subset of your sites, are at app.gscpap.com/account/tokens.

  2. 2

    Add it with one command

    The default transport is stdio, so --transport http is required for a remote server. --header can be repeated if a server needs more than one.

    shell
    copilot mcp add --transport http \
      --header "Authorization: Bearer YOUR_TOKEN" \
      gsc-pap https://mcp.gscpap.com/mcp
  3. 3

    Or write the entry yourself

    User-level servers live in ~/.copilot/mcp-config.json. A project can define its own in .mcp.json or .github/mcp.json. Set type to http, which is the Streamable HTTP transport; sse is the legacy one and is deprecated.

    json
    {
      "mcpServers": {
        "gsc-pap": {
          "type": "http",
          "url": "https://mcp.gscpap.com/mcp",
          "headers": {
            "Authorization": "Bearer YOUR_TOKEN"
          },
          "tools": ["*"]
        }
      }
    }
  4. 4

    Decide which tools to expose

    tools accepts * for everything, or a comma-separated list of names. GSC PAP has 36 tools, and a terminal session rarely needs all of them, so naming five keeps the model's context lean.

    json
          "tools": [
            "list_sites",
            "search_analytics_query",
            "compare_periods",
            "find_quick_wins",
            "batch_inspect_urls"
          ]
  5. 5

    Ask a Search Console question

    Start Copilot CLI and ask: "List my Search Console sites, then show the top 10 queries by clicks for the last 28 days." If you deploy from this terminal, the natural follow-up is whether the URLs you shipped are indexed, which batch_inspect_urls answers for up to 2,000 at a time.

Copilot CLI MCP setup: common issues

  • ·--transport http is not optional. The default is stdio, and a remote server added without it will not connect.
  • ·This is a different config from Copilot in VS Code. Connecting one does not connect the other.
  • ·When a project file and the user file both define gsc-pap, the higher-priority source wins. For a one-off session, --additional-mcp-config adds servers without touching either.
  • ·Keep the token out of .mcp.json and .github/mcp.json if the repository is shared. The user-level ~/.copilot/mcp-config.json is the safer home for it.
  • ·"Missing or invalid bearer token" means the token is wrong or was revoked, not that the transport is wrong. Mint a new one at app.gscpap.com/account/tokens.

Frequently asked questions

Does GitHub Copilot CLI support remote MCP servers?

Yes, with "type": "http" for the Streamable HTTP transport and a url. Custom headers are supported as key-value pairs, which is how a bearer token is sent. The legacy sse transport still works but is deprecated.

Where is Copilot CLI's MCP config file?

~/.copilot/mcp-config.json for your user. A project can also define servers in .mcp.json or .github/mcp.json, and --additional-mcp-config adds servers for a single session.

What does the tools key do?

It selects which of the server's tools Copilot may call. * includes all of them, and a list of names includes only those. With a 34-tool server, naming the handful you actually use keeps the tool list small.

Is this the same as Copilot in VS Code?

No. Copilot CLI keeps its own MCP configuration, so the two are set up separately even though they are the same Copilot. The VS Code setup is on its own page.

Other integrations

All integrations

Claude Desktop

Connect Claude Desktop to Google Search Console without creating a Google Cloud project. Sign in with Google, paste one config block, restart Claude.

6 steps · 6 min read

Cursor

Connect Google Search Console to Cursor through a hosted MCP server. Sign in with Google, paste one token into mcp.json, and skip the Google Cloud project.

5 steps · 5 min read

Claude Code

Add Google Search Console to Claude Code with one claude mcp add command. Hosted and read-only: no Google Cloud project, no OAuth credentials, no Python.

3 steps · 3 min read

Codex CLI (OpenAI)

Add Google Search Console, GA4 and PageSpeed data to OpenAI's Codex CLI with one TOML block and a bearer token. You never create a Google Cloud project.

4 steps · 4 min read

VS Code (GitHub Copilot)

Connect Google Search Console to GitHub Copilot in VS Code with one .vscode/mcp.json entry, then ask agent mode about GSC. You skip Google Cloud setup.

4 steps · 4 min read

Gemini CLI (Google)

Query Google Search Console (GSC) from your terminal with Gemini CLI. Register GSC PAP as an MCP server in settings.json, with no Google Cloud project.

5 steps · 5 min read

Windsurf (Devin Desktop)

Give Windsurf, now Devin Desktop, your Google Search Console data. Add GSC PAP as a remote MCP server with one bearer token and no Google Cloud project.

4 steps · 5 min read

Zed Editor

Bring Google Search Console into Zed's AI assistant as an MCP context server. You add one settings.json block and a token, with no Google Cloud setup.

3 steps · 4 min read

JetBrains IDEs

Connect Google Search Console to IntelliJ, PyCharm, WebStorm and other JetBrains IDEs via AI Assistant's MCP settings, without a Google Cloud project.

5 steps · 5 min read

Continue (extension)

Continue MCP setup for Google Search Console: add one mcpServers entry with a bearer token in VS Code or JetBrains. You do not need a Google Cloud project.

4 steps · 4 min read

Claude.ai (browser)

Add Google Search Console to Claude.ai as a custom connector. Paste one URL and approve access. No token to copy, no config file, no Google Cloud project.

3 steps · 3 min read

Direct HTTP (curl, custom agents)

Call the GSC PAP MCP server from curl or your own agent. It is JSON-RPC over HTTP with a bearer token, so you need no MCP client or Google Cloud project.

4 steps · 5 min read

opencode

Add Google Search Console to opencode as a remote MCP server. One config block with your token, no Google Cloud project, no local server to run.

5 steps · 5 min read

Cline

Add Google Search Console to Cline in VS Code or the Cline CLI as a remote MCP server. One token, no Google Cloud project, read-only access.

5 steps · 5 min read

Warp

Add Google Search Console to Warp's agent as a remote MCP server. Paste one JSON block with your token, press Start, and ask about your traffic in the terminal.

5 steps · 4 min read

LM Studio

Give a local model your Search Console data. Add GSC PAP to LM Studio's mcp.json as a remote server, with one token and no Google Cloud project.

5 steps · 5 min read

ChatGPT

Add Google Search Console to ChatGPT as a custom MCP server. What the setup looks like, and the plan requirement that decides whether you can do it at all.

5 steps · 6 min read

Goose

Add Google Search Console to Goose as a streamable_http extension. One block in config.yaml with your token, no Google Cloud project, read-only access.

5 steps · 5 min read

Google Antigravity

Add Search Console to Google Antigravity as a custom MCP server. It handles dynamic client registration, so the setup is a URL and a sign-in, with no token.

5 steps · 5 min read

Roo Code

Add Google Search Console to Roo Code in VS Code as a streamable-http MCP server. One block with your token, no Google Cloud project, read-only.

5 steps · 5 min read

Kilo Code

Add Google Search Console to Kilo Code as a remote MCP server. It can negotiate OAuth for you, or take a bearer token. No Google Cloud project either way.

5 steps · 5 min read

Amp

Add Google Search Console to Amp as a remote MCP server, in settings or with one CLI command. No Google Cloud project, read-only scopes.

5 steps · 5 min read

Kiro

Add Google Search Console to Kiro as a remote MCP server. One entry in mcp.json, the token read from an approved environment variable, read-only access.

5 steps · 5 min read

Raycast

Add Google Search Console to Raycast AI as an HTTP MCP server. Dynamic OAuth means no token to paste, and HTTP servers work on Raycast for iOS too.

5 steps · 4 min read

n8n

Give an n8n AI Agent your Search Console data through the MCP Client Tool node, and schedule the SEO report you keep meaning to write.

6 steps · 6 min read

LibreChat

Add GSC PAP to librechat.yaml as a streamable-http MCP server, and give every user on your install their own Search Console access rather than a shared one.

6 steps · 6 min read

Done. Your AI client now has access to your Search Console data.

Got stuck? Email support@gscpap.com with the error and we will revise the guide.