Integration · Claude Code
Add GSC PAP to Claude Code
3 steps · about 3 minutes
Claude Code is Anthropic's CLI agent for terminal-based work. It runs in any directory, has full access to your file system, and supports MCP servers natively. Unlike Claude Desktop and Cursor where you edit a JSON file by hand, Claude Code uses a single CLI command to register a server.
User-scope (--scope user) means GSC PAP becomes available in every project where you run Claude Code - no per-repo configuration needed. Project-scope (--scope project) is also possible if you only want GSC PAP in specific repos.
This guide assumes Claude Code is installed (npm install -g @anthropic-ai/claude-code) and you are signed in.
Steps
- 1
Sign in to GSC PAP and copy your token
Visit gscpap.com and click "Sign in with Google." Grant the read-only Search Console scope. The connect page shows your one-time bearer token. Copy it. The next step needs it inside a CLI command.
- 2
Run claude mcp add
In any terminal, run the command below. Replace YOUR_TOKEN with the bearer from step 1. The --scope user flag makes the server available globally; switch to --scope project if you only want it in the current repo.
shellclaude mcp add --transport http --scope user gsc-pap https://mcp.gscpap.com/mcp \ --header "Authorization: Bearer YOUR_TOKEN" - 3
Verify and use
Type claude inside any directory to start an interactive session. Run /mcp inside the chat to see registered servers - gsc-pap should be listed with 18 tools. Then ask: "List my Search Console sites and show top 5 queries on each from last week." Claude Code chains the tool calls automatically.
Common gotchas
- ·Run claude mcp list to see what is registered. Run claude mcp remove gsc-pap to delete the server (you can re-add later with a new token).
- ·If /mcp says "failed to reconnect," the most common cause is the MCP server having restarted in the meantime. Just retry - GSC PAP runs in stateless mode so reconnects are instant.
- ·The --scope user config lives in ~/.claude.json. You can edit it manually if needed, but the CLI is safer.
- ·Claude Code's terminal mode disables some color sequences. If JSON output looks scrambled, redirect to a file: claude > out.txt and read it after.
Other integrations
All integrationsClaude Desktop
Wire your Google Search Console to Claude Desktop in five minutes. Step-by-step instructions for macOS and Windows, with the exact JSON config to paste.
Cursor
Use Search Console data inside Cursor's AI chat. Five-step setup, single JSON config, works in any project.
Codex CLI (OpenAI)
Connect Google Search Console, GA4, and PageSpeed Insights to OpenAI's Codex CLI in three minutes. Bearer-token auth via env var, works in both the CLI and the Codex IDE extension.
VS Code (GitHub Copilot)
Wire your Google Search Console + GA4 + PageSpeed data into VS Code's GitHub Copilot agent mode in five minutes. Native MCP support since VS Code 1.101.
Gemini CLI (Google)
Connect Search Console, GA4, and PageSpeed data to Google's Gemini CLI agent. Streamable HTTP MCP support, bearer-token auth, works inside Gemini's 1M-token context window.
Windsurf IDE
Plug Search Console, GA4, and PageSpeed data into Windsurf's Cascade agent in five minutes. Bearer-token auth, works with both local and remote agent runs.
Zed Editor
Wire Search Console, GA4, and PageSpeed Insights into Zed's AI assistant. Native MCP context-server support via settings.json.
JetBrains IDEs
Wire Search Console, GA4, and PageSpeed into IntelliJ, PyCharm, WebStorm, GoLand, any JetBrains IDE 2025.2 or newer. Native MCP support via the AI Assistant settings.
Continue (extension)
Continue is a popular open-source AI coding assistant with VS Code and JetBrains extensions. Add GSC PAP as an MCP server in three minutes via its config.json.
Claude.ai (browser)
Connect Search Console, GA4, and PageSpeed to Claude.ai in your browser through the Connectors panel. OAuth flow, no token to copy, no config file to edit. Works for free and paid Claude plans.
Direct HTTP (curl, custom agents)
GSC PAP speaks Streamable HTTP MCP. Any client that can POST JSON-RPC over HTTP with a bearer Authorization header can use it, curl, Python scripts, custom LangChain agents, even shell aliases.