Skip to main content

capguru-mcp

English | Русский

MCP server for the Cap.Guru captcha solving service. It lets AI assistants (Claude Desktop, Claude Code, Cursor and other MCP clients) open web pages in a browser and solve captchas on them.

Supported: reCAPTCHA v2/v3, Cloudflare Turnstile, text (image) captchas, hCaptcha, GeeTest v3/v4, FunCaptcha (Arkose Labs), TikTok, AWS WAF, Yandex SmartCaptcha.

Installation

pip install capguru-mcp
playwright install chromium

Connecting to an MCP client

Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and most other clients:

{
  "mcpServers": {
    "capguru": {
      "command": "capguru-mcp",
      "env": {
        "CAPGURU_API_KEY": "YOUR_KEY"
      }
    }
  }
}

Claude Code:

claude mcp add capguru --env CAPGURU_API_KEY=YOUR_KEY -- capguru-mcp

Without installing (via uv): use "command": "uvx", "args": ["capguru-mcp"].

Tools

Tool Description
open_browser Launch a browser (headless, channel: chrome/msedge, proxy)
connect_browser Connect to a running Chrome started with --remote-debugging-port
goto Open a URL
click, fill, press Click an element, type text into an input, press a key
page_text Visible text of the page or of an element
list_tabs, switch_tab List open tabs and switch the active one
screenshot Screenshot of the page
page_info Current URL and title
detect_captcha Detect the captcha type without solving
solve_captcha Solve the captcha: auto or a specific type (other = Yandex SmartCaptcha)
solve_recaptcha_token reCAPTCHA v2 / v2 Invisible (invisible) / v3 (action, min_score) token; works without a browser too
solve_turnstile_token Cloudflare Turnstile token (sitekey, pageurl); works without a browser too
solve_image_captcha Text captcha from an image: selector, image_base64, image_path or image_url; vernet (default 6), fill_selector
close_browser Close the browser

Example requests to the assistant:

  • Open https://site.com/login, solve the captcha and take a screenshot
  • Get a reCAPTCHA token for sitekey 6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ- on https://www.google.com/recaptcha/api2/demo
  • Get a reCAPTCHA v3 token with action examples/v3scores for sitekey 6LdKlZEpAAAAAAOQjzC2v_d36tWxCl6dWsozdSy9 on https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php
  • Open https://peet.ws/turnstile-test/non-interactive.html and solve the Turnstile
  • Recognize the captcha image #captcha_img and type the answer into #captcha_input

solve_recaptcha_token uses the Cap.Guru token method (userrecaptcha): it returns the g-recaptcha-response token. If a page is open, the sitekey, URL and User-Agent are taken from it; for v2 the token is inserted into the page and the site callback is called. For v3 pass version: v3 (optionally min_score, service default 0.1); the token is only returned, because v3 sites request it themselves.

solve_turnstile_token works the same way for Cloudflare Turnstile (method=turnstile): with an open page the token is put into cf-turnstile-response and the Turnstile callback is called. Typical solve time is 10–30 seconds.

Settings (environment variables)

Variable Default Description
CAPGURU_API_KEY — Cap.Guru API key (required)
CAPGURU_SERVER https://api.cap.guru API server
CAPGURU_ATTEMPTS 5 Max number of solving attempts
CAPGURU_DEBUG 1 Include the solver log in tool results
CAPGURU_BROWSER_CHANNEL — chrome or msedge to use an installed browser
CAPGURU_BROWSER_PATH — Path to a browser executable
CAPGURU_BROWSER_ARGS — Extra browser arguments, space separated

Full documentation: https://docs.cap.guru


Русский

MCP-сервер для сервиса решения капчи Cap.Guru. Позволяет ИИ-ассистентам (Claude Desktop, Claude Code, Cursor и другим MCP-клиентам) открывать страницы в браузере и решать на них капчу.

Поддерживаются: reCAPTCHA v2/v3, Cloudflare Turnstile, текстовые капчи (картинкой), hCaptcha, GeeTest v3/v4, FunCaptcha (Arkose Labs), TikTok, AWS WAF, Яндекс SmartCaptcha.

Установка

pip install capguru-mcp
playwright install chromium

Подключение к MCP-клиенту

Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) и большинство других клиентов:

{
  "mcpServers": {
    "capguru": {
      "command": "capguru-mcp",
      "env": {
        "CAPGURU_API_KEY": "ВАШ_КЛЮЧ"
      }
    }
  }
}

Claude Code:

claude mcp add capguru --env CAPGURU_API_KEY=ВАШ_КЛЮЧ -- capguru-mcp

Без установки (через uv): "command": "uvx", "args": ["capguru-mcp"].

Инструменты

Инструмент Описание
open_browser Запустить браузер (headless, channel: chrome/msedge, proxy)
connect_browser Подключиться к запущенному Chrome с --remote-debugging-port
goto Открыть адрес
click, fill, press Нажать на элемент, ввести текст в поле, нажать клавишу
page_text Видимый текст страницы или элемента
list_tabs, switch_tab Список вкладок и переключение активной
screenshot Скриншот страницы
page_info Текущий адрес и заголовок
detect_captcha Определить тип капчи, не решая
solve_captcha Решить капчу: auto или конкретный тип (other = Яндекс SmartCaptcha)
solve_recaptcha_token Токен reCAPTCHA v2 / v2 Invisible (invisible) / v3 (action, min_score); работает и без браузера
solve_turnstile_token Токен Cloudflare Turnstile (sitekey, pageurl); работает и без браузера
solve_image_captcha Текстовая капча с картинки: selector, image_base64, image_path или image_url; vernet (по умолчанию 6), fill_selector
close_browser Закрыть браузер

Примеры запросов ассистенту:

  • Открой https://site.com/login, реши капчу и сделай скриншот
  • Получи токен reCAPTCHA для sitekey 6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ- на https://www.google.com/recaptcha/api2/demo
  • Получи токен reCAPTCHA v3 с action examples/v3scores для sitekey 6LdKlZEpAAAAAAOQjzC2v_d36tWxCl6dWsozdSy9 на https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php
  • Открой https://peet.ws/turnstile-test/non-interactive.html и реши Turnstile
  • Распознай капчу с картинки #captcha_img и введи ответ в #captcha_input

solve_recaptcha_token использует токенный метод Cap.Guru (userrecaptcha) и возвращает токен g-recaptcha-response. Если страница открыта, sitekey, адрес и User-Agent берутся с неё; для v2 токен вставляется на страницу и вызывается callback сайта. Для v3 укажите version: v3 (и при необходимости min_score, по умолчанию у сервиса 0.1); токен только возвращается, потому что сайты с v3 запрашивают его сами.

solve_turnstile_token так же работает для Cloudflare Turnstile (method=turnstile): если страница открыта, токен вставляется в cf-turnstile-response и вызывается callback Turnstile. Обычное время решения — 10–30 секунд.

Настройки (переменные окружения)

Переменная По умолчанию Описание
CAPGURU_API_KEY — API-ключ Cap.Guru (обязательно)
CAPGURU_SERVER https://api.cap.guru Сервер API
CAPGURU_ATTEMPTS 5 Макс. количество попыток
CAPGURU_DEBUG 1 Добавлять лог солвера в ответ инструмента
CAPGURU_BROWSER_CHANNEL — chrome или msedge, чтобы использовать установленный браузер
CAPGURU_BROWSER_PATH — Путь к исполняемому файлу браузера
CAPGURU_BROWSER_ARGS — Дополнительные аргументы браузера через пробел

Полная документация: https://docs.cap.guru

Metadata

Release files for capguru-mcp 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capguru-mcp 0.3.0
File Size Uploaded Provenance Actions
capguru_mcp-0.3.0.tar.gz 19.1 kB Without provenance Details for capguru_mcp-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for capguru-mcp 0.3.0
File Interpreter ABI Platform Actions
capguru_mcp-0.3.0-py3-none-any.whl Python 3 none any Details for capguru_mcp-0.3.0-py3-none-any.whl

Total release size: 35.3 kB

Release files / capguru_mcp-0.3.0.tar.gz

Download URL capguru_mcp-0.3.0.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f21c87cd3b05cb812ebb6ef4fab7480eea68f8d32d272135a1a4a9a286aba408
BLAKE2b-256 checksum
How to use checksums
2d8aedece02bbe1b22182aa5f4544e403269d6d645efd52e5da59710d69018cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Release files / capguru_mcp-0.3.0-py3-none-any.whl

Download URL capguru_mcp-0.3.0-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb70cdafd281fd322eb2e5efddf96cfdf43dd218b14534266fc93846eccc94cb
BLAKE2b-256 checksum
How to use checksums
9097cd6ce94195cab85cbc14d82ce0ea043fd7731dfde9931fff236390fbf14b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.9

Security for capguru-mcp 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page