Skip to main content

SEO keyword grouping plugin for Claude Desktop — tự động phân nhóm keyword bằng Claude Batch API

Project description

Keyword Labeler

Plugin Claude Desktop / Claude Code để tự động phân nhóm keyword SEO từ file Excel/CSV (lên đến 10.000 keyword).

English summary: An MCP plugin for Claude Desktop and Claude Code that automatically clusters SEO keywords using Claude Batch API. Input: Excel/CSV with keyword + volume columns. Output: Excel (3 sheets: Labeled / Removed / Summary) or Markdown. Supports SpySERP URL-overlap pre-grouping, brand keyword handling, and Vietnamese no-diacritic filtering.


Tính năng

  • Phân nhóm tự động theo format chủ đề - hậu tố 1 - hậu tố 2 (ví dụ: viêm phụ khoa - dấu hiệu - khi mang thai)
  • Claude Batch API — tiết kiệm 50% chi phí so với standard API
  • Vocabulary nhất quán — Phase 5a build vocabulary cố định, inject vào tất cả batch
  • Merge pass — gộp tên nhóm trùng nghĩa sau khi phân nhóm
  • SpySERP integration — pre-group theo URL overlap (≥5 URL chung)
  • Xử lý brand keyword — 4 chế độ: nhóm riêng / gộp / loại bỏ / giữ nguyên
  • Lọc keyword — loại sai chính tả, không dấu volume thấp, off-topic
  • Review UI — xem, merge, rename nhóm ngay trong Claude trước khi export
  • Export — Excel 3 sheet hoặc Markdown

Yêu cầu

  • Python 3.9+
  • Claude Desktop hoặc Claude Code
  • ANTHROPIC_API_KEY trong environment (hoặc file ~/.anthropic_key)

Cài đặt

Bước 1 — Chạy 1 lệnh terminal

bash <(curl -sSL https://raw.githubusercontent.com/minhdo01011990-glitch/keyword-labeler/main/install.sh)

Script tự động:

  1. Phát hiện Python 3.9+ và cài keyword-labeler từ PyPI
  2. Cấu hình MCP server vào claude_desktop_config.json (Claude Desktop)
  3. Cấu hình MCP server vào ~/.claude/settings.json (Claude Code CLI)
  4. Cài SKILL.md vào ~/.claude/skills/keyword/ để kích hoạt lệnh /keyword
  5. Restart Claude Desktop (macOS)

Bước 2 — Thêm API key

Đặt ANTHROPIC_API_KEY trong environment:

export ANTHROPIC_API_KEY="sk-ant-..."   # thêm vào ~/.zshrc hoặc ~/.bashrc

Sau đó gõ /keyword trong Claude Desktop hoặc Claude Code.


Cập nhật lên phiên bản mới

bash <(curl -sSL https://raw.githubusercontent.com/minhdo01011990-glitch/keyword-labeler/main/install.sh)

Sử dụng

  1. Mở Claude Desktop, gõ /keyword
  2. Điền form:
    • Chủ đề SEO (ví dụ: sữa bột cho trẻ em)
    • Đường dẫn file keyword (Excel/CSV: cột keyword + volume)
    • File SpySERP (tuỳ chọn)
    • Xử lý brand: [1] nhóm riêng / [2] gộp / [3] loại bỏ / [4] giữ nguyên
    • Ngưỡng volume không dấu (default: 100)
    • Output: Excel hoặc Markdown
  3. Xác nhận chi phí ước tính → plugin chạy tự động
  4. Review nhóm, merge/rename nếu cần → export

Format file keyword

keyword volume
sữa bột enfamil 2400
cách chọn sữa cho bé 880
sữa bột loại nào tốt 590

Format output Excel

Sheet Labeled: Keyword, Volume, Nhóm, Chủ đề, Hậu tố 1, Hậu tố 2, Intent, Thương hiệu
Sheet Removed: Keyword, Volume, Lý do lọc
Sheet Summary: Nhóm, Số keyword, Tổng volume, Informational, Commercial, Transactional, Navigational


Kiến trúc

/keyword (Claude Desktop prompt)
  → data_loader      — đọc Excel/CSV, dedup volume
  → brand_detector   — tag branded keyword
  → filter           — Batch API: lọc sai chính tả, off-topic
  → spyserp_grouper  — URL overlap pre-group (≥5 URL)
  → grouper          — Phase 5a vocab + Phase 5b Batch API
  → merge_pass       — gộp tên nhóm trùng nghĩa
  → review UI        — xem / merge / rename trong Claude
  → exporter         — Excel 3 sheet hoặc Markdown

Stack: Python + FastMCP + Anthropic SDK + openpyxl + pandas


Chi phí ước tính

Với 1.000 keyword (chủ đề tiếng Việt):

  • Filter (Haiku Batch): ~$0.01
  • Grouper (Sonnet Batch): ~$0.14
  • Tổng: ~$0.15

Batch API tự động tiết kiệm 50% so với standard API. Thời gian xử lý: 15–40 phút tùy số lượng keyword.


License

MIT — xem LICENSE.

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

keyword_labeler-1.0.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

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

keyword_labeler-1.0.1-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file keyword_labeler-1.0.1.tar.gz.

File metadata

  • Download URL: keyword_labeler-1.0.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keyword_labeler-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8cbe24ec1a2b4208ee612c7e0b80687d9921ddac849b51fd9152e666ddc2889f
MD5 b62082049428e984fe34a55a7d642e4f
BLAKE2b-256 24fa458ef66d606992d0e99883d29b0a3703e90d7eecd896fa9be7ab384371df

See more details on using hashes here.

File details

Details for the file keyword_labeler-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: keyword_labeler-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keyword_labeler-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7b28eb5673f3d98bc6cc32993c0a369b8f67b6aabd055a0982b42b1e8b85002
MD5 8ea0c0c2dcc56ff4965dfcfa8d5fa8b1
BLAKE2b-256 d062276eea55d53d0362d1fa6074730250eee5bff4ab1427b9ca7fe5c7170405

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