Metadata-Version: 2.5
Name: google-search-console-mcp
Version: 0.10.4
Summary: The GSC 'Intel Engine' for the evolving search landscape. Authoritative visibility governance and AI overview citation analysis via Model Context Protocol.
Project-URL: Homepage, https://github.com/surendranb/google-search-console-mcp
Project-URL: Repository, https://github.com/surendranb/google-search-console-mcp.git
Project-URL: Issues, https://github.com/surendranb/google-search-console-mcp/issues
Author-email: Surendran B <reachsuren@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: ai-agents,claude,cursor,google-search-console,gsc,mcp,mcp-server,model-context-protocol,search-analytics,seo
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: google-api-python-client>=2.0.0
Requires-Dist: google-auth-httplib2>=0.1.0
Requires-Dist: google-auth-oauthlib>=0.4.0
Requires-Dist: google-auth>=2.0.0
Requires-Dist: mcp<3,>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-asyncio; extra == 'dev'
Description-Content-Type: text/markdown

# Google Search Console (GSC) MCP Server 🔍

> **Model Context Protocol (MCP) server for Google Search Console: search performance analytics, keyword rankings, sitemap inspection, and indexing health for AI agents.**

[![CI](https://github.com/surendranb/google-search-console-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/surendranb/google-search-console-mcp/actions)
[![PyPI version](https://img.shields.io/pypi/v/google-search-console-mcp.svg?style=flat-square&color=blue)](https://pypi.org/project/google-search-console-mcp/)
[![npm version](https://img.shields.io/npm/v/@surendranb/google-search-console-mcp.svg?style=flat-square&color=red)](https://www.npmjs.com/package/@surendranb/google-search-console-mcp)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/surendranb/google-search-console-mcp/badge)](https://scorecard.dev/viewer/?site=github.com/surendranb/google-search-console-mcp)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE)

🌐 **Live Documentation & Web Portal**: [https://gsc.builditwithai.xyz](https://gsc.builditwithai.xyz)

---

## ⚡ Quickstart

```bash
# 1-Line Universal Installer (Auto-configures Claude Desktop, Cursor, Claude Code, Antigravity, VS Code, Zed, Windsurf)
curl -fsSL "https://gsc.builditwithai.xyz/install" | bash

# Or run directly via your preferred runtime:
uvx google-search-console-mcp
npx -y @surendranb/google-search-console-mcp
```

---

---

## 🤖 Client Setup

### A. Claude Code (CLI)
```bash
claude mcp add google-search-console -- uvx google-search-console-mcp
```

### B. Cursor & Google Antigravity (`mcp.json`)
```json
{
  "mcpServers": {
    "google-search-console": {
      "command": "uvx",
      "args": ["google-search-console-mcp"]
    }
  }
}
```

### C. Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "google-search-console": {
      "command": "uvx",
      "args": ["google-search-console-mcp"],
      "env": {
        "GSC_SITE_URL": "https://example.com/",
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service_account.json"
      }
    }
  }
}
```

### D. VS Code (Cline / Roo Code / Continue)
```json
{
  "mcpServers": {
    "google-search-console": {
      "command": "npx",
      "args": ["-y", "@surendranb/google-search-console-mcp"]
    }
  }
}
```

---

## 🛠️ Tools & Capabilities

| Tool Name | Parameters | Description | Return Type |
|---|---|---|---|
| `get_search_analytics` | `site_url` (string), `start_date` (string), `end_date` (string), `dimensions` (list), `row_limit` (int) | Queries organic search clicks, impressions, CTR, and average position grouped by query, page, country, device, and date. | `JSON / Markdown` |
| `list_sites` | *(none)* | Lists all verified web properties in Google Search Console with permission levels. | `JSON` |
| `inspect_url` | `site_url` (string), `inspection_url` (string) | Real-time URL inspection for index status, crawl issues, canonicalization, and mobile usability. | `JSON` |
| `list_sitemaps` | `site_url` (string) | Retrieves all submitted XML sitemaps, last download date, and indexed URL counts. | `JSON` |
| `submit_sitemap` | `site_url` (string), `feedpath` (string) | Submits a new XML sitemap directly to Google Search Console. | `JSON` |
| `delete_sitemap` | `site_url` (string), `feedpath` (string) | Removes an obsolete or incorrect sitemap from Search Console. | `JSON` |
| `skill_read` | `skill_name` (string) | Loads expert SEO diagnostic playbooks dynamically from GitHub. | `Markdown` |
| `skills_list` | *(none)* | Lists all available live GSC analytical skills. | `JSON` |

---

## 🔒 Telemetry & Privacy

This package collects anonymous, non-PII diagnostic telemetry (command executions, latency, error codes) to improve tool reliability. No queries, user credentials, personal data, source code, or environment variables are ever collected or stored.

You can opt out anytime by setting either of the following environment variables:
```bash
export DO_NOT_TRACK=1
# or
export MCP_TELEMETRY_OPT_OUT=1
```

---

## 📄 License

MIT License. See [LICENSE](LICENSE) for details.
