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, 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-onhttps://www.google.com/recaptcha/api2/demo - Get a reCAPTCHA v3 token with action
verifefor sitekey6LdSQV8mAAAAAA8tgiox2isjB1H4QSr-pNBXajUTonhttps://test.cap.guru/demo/recap - Open
https://test.cap.guru/demo/cloudand solve the Turnstile - Recognize the captcha image
#captcha_imgand 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, fill_selector |
close_browser |
Закрыть браузер |
Примеры запросов ассистенту:
- Открой
https://site.com/login, реши капчу и сделай скриншот - Получи токен reCAPTCHA для sitekey
6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-наhttps://www.google.com/recaptcha/api2/demo - Получи токен reCAPTCHA v3 с action
verifeдля sitekey6LdSQV8mAAAAAA8tgiox2isjB1H4QSr-pNBXajUTнаhttps://test.cap.guru/demo/recap - Открой
https://test.cap.guru/demo/cloudи реши 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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| capguru_mcp-0.3.2.tar.gz | 19.8 kB | Without provenance | Details for capguru_mcp-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| capguru_mcp-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for capguru_mcp-0.3.2-py3-none-any.whl |
Total release size: 36.8 kB
Release files / capguru_mcp-0.3.2.tar.gz
| Download URL | capguru_mcp-0.3.2.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc698dd784e4dfc451dd038067a53e4dd02baefe2a7504243080858b2463a04e
|
|
BLAKE2b-256 checksum How to use checksums |
0ceede6d02294c5cf3cc05e0c3fd29b51b0a76f0d7fd69816db5406ccb72f763
|
| 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.2-py3-none-any.whl
| Download URL | capguru_mcp-0.3.2-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a74f5f6ad545a4b8302dd359d6cf02b90b33c1269c1624e435c8c1dac8c1be7
|
|
BLAKE2b-256 checksum How to use checksums |
fcb085180c7b951472e2bfc3eb02a219707deb77313cdfc09fb6a7404c37986f
|
| 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.2
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.