Skip to main content

MCP Server cho Google Analytics 4 + Google Search Console (dùng với Claude.ai / Claude Desktop)

Project description

HeroSEO MCP — GA4 + Search Console cho Claude

MCP Server giúp Claude (Claude Desktop) đọc dữ liệu từ Google Analytics 4Google Search Console bằng tài khoản Google của bạn — hỏi bằng tiếng tự nhiên, Claude tự gọi API.

Read-only · token lưu cục bộ trên máy bạn · không cần tự tạo Google Cloud project.

mcp-name: vn.dichvuseotongthe/heroseo-mcp


Cài đặt nhanh

uv tool install heroseo-mcp

Thêm vào file cấu hình Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "heroseo-mcp": {
      "command": "uvx",
      "args": ["heroseo-mcp"]
    }
  }
}

Khởi động lại Claude Desktop → hỏi "Liệt kê các GA4 property của tôi." → lần đầu Claude sẽ mở trình duyệt cho bạn đăng nhập Google (cấp quyền Analytics + Search Console, read-only). Xong là dùng được.

👉 Hướng dẫn chi tiết từng bước: HOW_TO_USE.md.


Tools

Google Analytics 4

Tool Mô tả
ga4_list_accounts Liệt kê tất cả GA4 accounts
ga4_list_properties Liệt kê GA4 properties (websites/apps)
ga4_run_report Report tuỳ chỉnh — dimensions, metrics, date range, sort
ga4_run_realtime_report Users đang active trong 30 phút gần nhất
ga4_get_metadata Dimensions/metrics khả dụng cho 1 property

Google Search Console

Tool Mô tả
gsc_list_sites Liệt kê tất cả GSC properties
gsc_query_search_analytics Top queries / pages / countries / devices — clicks, impressions, CTR, position
gsc_inspect_url Inspect 1 URL — index status, crawl, sitemap, rich results
gsc_list_sitemaps Liệt kê sitemaps đã submit
gsc_get_sitemap Chi tiết 1 sitemap — errors, warnings, last download

Ví dụ prompt

  • "Property 123456789: 10 trang được xem nhiều nhất 28 ngày qua."
  • "Site https://example.com/ : top 20 query nhiều impression nhất tháng vừa rồi."
  • "Trang nào của tôi đang rank cho từ khoá 'dịch vụ seo'?"
  • "URL https://example.com/blog/abc đã được Google index chưa?"
  • "So sánh sessions từ organic search tuần này với tuần trước cho property 123456789."

Quyền & bảo mật

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

heroseo_mcp-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

heroseo_mcp-0.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file heroseo_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: heroseo_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for heroseo_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7383b1d28fbc0c83424337b494730636340f9446600842b31686fb6b7d3a2115
MD5 879da38c6623b67ac4bebc1388fe5456
BLAKE2b-256 a3650fb420e2cc0c21d3fb9c2e394d898a5ada332a3d75c448dd9bd293ede05d

See more details on using hashes here.

File details

Details for the file heroseo_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: heroseo_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for heroseo_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34bca04c691ce42ebd0d4fe05fc64b991c643b00245d997b845cdb3b02a2dfdb
MD5 75a625c5197b93e66f5f92353f63ac8b
BLAKE2b-256 c9a706a64024c5a4fa31237dbfa936b6703d094ce519611dcc8dd5ef9dd8ebad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page