ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Google Search Console

โดย acamoleseรุ่น 3.0.1i★ –iรันบนเครื่อง
ชื่อใน registryio.github.acamolese/google-search-console-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Google Search Console: SEO audits, performance queries, URL inspection, indexing checks.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI
  • ต้องใส่ค่าเหล่านี้: GSC_CLIENT_SECRET, GSC_REFRESH_TOKEN

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: GSC_CLIENT_ID, GSC_CLIENT_SECRET, GSC_REFRESH_TOKEN, GSC_SERVICE_ACCOUNT_FILE, GSC_REPORT_LANGUAGE, GSC_DATA_STATE

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "google-search-console": {
      "command": "uvx",
      "args": [
        "mcp-google-search-console"
      ],
      "env": {
        "GSC_CLIENT_ID": "ใส่ค่าของคุณ",
        "GSC_CLIENT_SECRET": "ใส่ค่าของคุณ",
        "GSC_REFRESH_TOKEN": "ใส่ค่าของคุณ",
        "GSC_SERVICE_ACCOUNT_FILE": "ใส่ค่าของคุณ",
        "GSC_REPORT_LANGUAGE": "ใส่ค่าของคุณ",
        "GSC_DATA_STATE": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add google-search-console --env GSC_CLIENT_ID='ใส่ค่าของคุณ' --env GSC_CLIENT_SECRET='ใส่ค่าของคุณ' --env GSC_REFRESH_TOKEN='ใส่ค่าของคุณ' --env GSC_SERVICE_ACCOUNT_FILE='ใส่ค่าของคุณ' --env GSC_REPORT_LANGUAGE='ใส่ค่าของคุณ' --env GSC_DATA_STATE='ใส่ค่าของคุณ' -- uvx mcp-google-search-console

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-search-console": {
      "command": "uvx",
      "args": [
        "mcp-google-search-console"
      ],
      "env": {
        "GSC_CLIENT_ID": "ใส่ค่าของคุณ",
        "GSC_CLIENT_SECRET": "ใส่ค่าของคุณ",
        "GSC_REFRESH_TOKEN": "ใส่ค่าของคุณ",
        "GSC_SERVICE_ACCOUNT_FILE": "ใส่ค่าของคุณ",
        "GSC_REPORT_LANGUAGE": "ใส่ค่าของคุณ",
        "GSC_DATA_STATE": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "google-search-console": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-google-search-console"
      ],
      "env": {
        "GSC_CLIENT_ID": "ใส่ค่าของคุณ",
        "GSC_CLIENT_SECRET": "ใส่ค่าของคุณ",
        "GSC_REFRESH_TOKEN": "ใส่ค่าของคุณ",
        "GSC_SERVICE_ACCOUNT_FILE": "ใส่ค่าของคุณ",
        "GSC_REPORT_LANGUAGE": "ใส่ค่าของคุณ",
        "GSC_DATA_STATE": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • GSC_CLIENT_ID env
    OAuth client ID from a Desktop app credential in Google Cloud Console.
  • GSC_CLIENT_SECRET ความลับ env
    OAuth client secret paired with GSC_CLIENT_ID.
  • GSC_REFRESH_TOKEN ความลับ env
    OAuth refresh token, from `mcp-google-search-console auth`.
  • GSC_SERVICE_ACCOUNT_FILE env
    Path to a service account JSON key, as an alternative to OAuth.
  • GSC_REPORT_LANGUAGE env
    Language of the generated HTML audit report: en or it. Defaults to en.
  • GSC_DATA_STATE env
    Default freshness of the data: all (includes today's partial data) or final.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub acamolese ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 5687 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 33% ของอีก 5687 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 5687 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Google Search Console ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: GSC_CLIENT_SECRET, GSC_REFRESH_TOKEN

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (3.0.1) เข้า registry 3 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

โดย upstashใช้กันมาก↓ 972.7K/สัปดาห์★ 64.2Kอัปเดต เมื่อวานซืน

บนเครื่องหรือคลาวด์

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

โดย DeusDataใช้กันมาก↓ 18K/สัปดาห์★ 48.1Kอัปเดต 22 วันที่ผ่านมา

รันบนเครื่อง

Exa

Connect AI agents to Exa for web search, content fetching, and multi-step research.

โดย exa-labsกำลังโต★ 5.2Kอัปเดต 2 เดือนที่ผ่านมา

รันบนคลาวด์✓ exa.ai

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Google Search Console MCP

English · Italiano

Seventeen read-only tools over the Google Search Console API, plus a deterministic white-label HTML audit report an agency can put its own name on and send to a client, in English or Italian.

Regenerate that report from committed synthetic data, with no credentials:

python scripts/render_sample_report.py --lang en --open

Install

Claude Code
/plugin marketplace add acamolese/google-search-console-mcp

/plugin install google-search-console@acamolese

The plugin brings the MCP server, five skills (weekly review, cannibalisation check, indexing audit, content opportunities, white-label client audit) and a config prompt for the three credentials.

Claude Desktop

Download google-search-console.mcpb from the latest release and open it. It needs uv installed. Or edit the config file directly:

{

"mcpServers": { "google-search-console": { "command": "uvx", "args": ["mcp-google-search-console"], "env": { "GSC_CLIENT_ID": "...", "GSC_CLIENT_SECRET": "...", "GSC_REFRESH_TOKEN": "..." } } } }

Cursor, Codex, Gemini CLI, Zed

Any MCP client takes the same three lines: command uvx, argument mcp-google-search-console, and the three GSC_* environment variables.

# Codex

codex mcp add google-search-console -- uvx mcp-google-search-console

Gemini CLI

gemini mcp add google-search-console uvx mcp-google-search-console

Docker
docker build -t mcp-gsc .

docker run --rm -p 127.0.0.1:8765:8765 \ -e GSC_CLIENT_ID -e GSC_CLIENT_SECRET -e GSC_REFRESH_TOKEN \ -v "$PWD/reports:/reports" mcp-gsc

The container speaks streamable HTTP on /mcp. It has no authentication of its own: keep it on loopback or behind a reverse proxy.

Authentication

The OAuth scope is webmasters.readonly and nothing else. No tool in this server can modify a property, a sitemap or anything else in Search Console.

Credentials are resolved in this order:

  1. GSC_AUTH_MODE if set (oauth, service_account, adc)
  2. GSC_SERVICE_ACCOUNT_FILE or GSC_SERVICE_ACCOUNT_JSON
  3. GSC_CLIENT_ID + GSC_CLIENT_SECRET + GSC_REFRESH_TOKEN
  4. A token file in ~/.config/mcp-google-search-console/
  5. Application Default Credentials
OAuth, once
  1. In Google Cloud Console, enable the Google Search Console API and create an OAuth client of type Desktop app.
  2. Export the client, or save the downloaded JSON as ~/.config/mcp-google-search-console/oauth_credentials.json:
   export GSC_CLIENT_ID="...apps.googleusercontent.com"

export GSC_CLIENT_SECRET="..." uvx mcp-google-search-console auth

  1. The browser flow prints the three export lines for a stateless setup, and also stores a token at ~/.config/mcp-google-search-console/token.json with 0600 permissions.

On a headless machine, run auth on your laptop and copy the three environment variables across. --no-browser prints the URL instead of opening one, but still needs a local redirect.

Service account

Grant the service account's email read access to the property in Search Console, then point the server at the key:

export GSC_SERVICE_ACCOUNT_FILE=/path/to/key.json

or, for a container:

export GSC_SERVICE_ACCOUNT_JSON='{"type":"service_account",...}'

Check it works
uvx mcp-google-search-console doctor

Prints the auth mode in use, when the token expires, how many properties the account can read, and the defaults every tool applies. Secrets are masked. Exits 1 when nothing resolves, which is the answer to most "the server won't start" reports.

Tools

ToolWhat it answers
gsc_sitesWhich properties can this account read, and in what exact format
gsc_site_detailsPermission level and type for one property
gsc_queryThe Search Analytics report, with filters, dimensions and pagination
gsc_performance_overviewIs the site up or down, against the previous period
gsc_compare_periodsWhat changed between two periods, ranked by click delta
gsc_quick_winsQueries close enough to the top that a push would pay off
gsc_ctr_gapsPages that rank but are not clicked
gsc_cannibalizationQueries where several pages compete against each other
gsc_traffic_dropsPages that lost clicks, with a likely cause for each
gsc_content_decayPages sliding down month after month
gsc_alertsWhat moved sharply enough to be worth a message today
gsc_portfolioEvery property at a glance, worst first
gsc_indexing_issuesWhich of these URLs are indexed, and why not
gsc_inspect_urlFull URL Inspection for one page
gsc_sitemapsWhich sitemaps Google knows about, with errors and warnings
gsc_doctorWhat is configured, and does the API answer
gsc_auditThe full HTML report

Three prompts wrap the workflows that repeat: gsc_weekly_report, gsc_indexing_audit, gsc_content_opportunities.

Why this server

HereTypical GSC MCP server
Client-ready reportSelf-contained HTML, English or Italian, white-labelnone
AnalysisCannibalisation, CTR gaps, decay, drop diagnosis, run server-sideraw rows, analysed by the model
ThresholdsAdapt to the size of the propertyfixed, or none
Datesperiod="last_month", days=28, resolved server-sideexplicit dates only
FreshnessdataState=all by default, matching the UIfinal only
AuthOAuth, service account, ADCOAuth only
OutputTSV by default, roughly a third of the tokens of pretty JSONjson.dumps(indent=2)
ErrorsGoogle's reason plus what to do about itbare HTTP status
Tests280+, on both mcp majors, three operating systemsusually none

Report customisation

Colours, logo, report name, brand terms and thresholds come from a JSON file. Pass branding_path, or place it at ~/.config/mcp-google-search-console/branding.json to apply it everywhere:

{

"brand_name": "Your Agency", "logo": "logo.png", "brand_terms": ["clientbrand", "client brand"], "colors": { "primary": "#2b6cb0", "primary_dark": "#1a365d" }, "thresholds": { "min_impressions": 200 } }

A local logo is base64-encoded into the document. A remote one is only kept if allow_external_fonts is true, because the report is otherwise guaranteed to contain no external URL at all: no CDN, no font service, nothing that phones home when a client opens it.

brand_terms matters more than it looks. Without it, the first label of the domain is used as the brand, which is wrong for abbreviations, holding companies and invented names, and it silently mislabels the brand/non-brand split. The report says when it had to guess.

Quotas and limits

  • 16 months of daily data. Anything older is not available at any price.
  • Hourly data: the last 10 days only.
  • URL Inspection: 600 per minute and 2,000 per day per property. This is the limit that bites on a large site.
  • Search Analytics: 1,200 queries per minute per site. Responses are cached in memory for 6 hours (1 hour for inspections); no_cache=true bypasses it.
  • Rows: 25,000 per API call. Tools default to 100 and cap at 1,000, with start_row for pagination; the cap is reported in the response, never applied silently.

Environment variables

VariableDefaultPurpose
GSC_CLIENT_ID, GSC_CLIENT_SECRET, GSC_REFRESH_TOKENStateless OAuth
GSC_SERVICE_ACCOUNT_FILE, GSC_SERVICE_ACCOUNT_JSONService account
GSC_AUTH_MODEautoForce oauth, service_account or adc
GSC_REPORT_LANGUAGEenReport language: en or it
GSC_DATA_STATEallall includes today's partial data, final does not
GSC_CACHE_TTL_SECONDS21600Response cache TTL; 0 disables it
GSC_INSPECT_CONCURRENCY5Parallel URL inspections
GSC_LOG_LEVELWARNINGLogging, always to stderr
MCP_TRANSPORT, MCP_HOST, MCP_PORTstdioTransport

Troubleshooting

`spawn uvx ENOENT` — the client cannot find uvx on its PATH. GUI apps do not inherit a shell PATH. Use the absolute path: which uvx gives it, typically /Users/you/.local/bin/uvx.

`403 forbidden` on every call — almost always the property format. A domain property is sc-domain:example.com; a URL-prefix property is https://example.com/, trailing slash included. gsc_sites returns the exact strings.

`401 invalid_grant` — the refresh token was revoked or expired. Google expires refresh tokens for OAuth apps still in "testing" after seven days; publish the app, or re-run auth.

`403 quotaExceeded` — the daily URL Inspection quota is gone. It resets tomorrow; nothing retries past it.

Empty report on a small site — check the thresholds in the response meta. They adapt to the property, but the floors (50 impressions, 10 clicks) still apply. Pass thresholds to lower them.

Anything else — run doctor and include its output in the issue.

Security

  • Read-only scope, requested and never widened.
  • Token files are written atomically with 0600 permissions. Credentials supplied through the environment are never written to disk.
  • gsc_doctor masks the client ID and never returns a token.
  • No telemetry, no analytics, no request to any host other than Google's API.

See SECURITY.md for the reporting policy.

Development

uv venv && uv pip install -e ".[dev]"

ruff check src tests scripts && ruff format --check src tests scripts pytest -q --cov=google_search_console_mcp python scripts/sync_versions.py python scripts/render_sample_report.py --lang it --open

Tests never hit the network. Live tests exist behind -m live and require GSC_LIVE_TESTS=1 plus credentials; they never run in CI.

Releases: see docs/RELEASING.md. Decisions not covered by the code are logged in docs/DECISIONS.md.

License

MIT. Chart.js 4.5.1 is vendored under src/google_search_console_mcp/static/, also MIT, with its licence alongside.

ถาม PopNx