capmonster-mcp-captcha-solver

v0.2.1
io.github.CapMonsterCloud/capmonster-mcp-captcha-solver Checked 3 hours ago Published 3 days ago

CapMonster Cloud MCP server — AI captcha solver for reCAPTCHA, Turnstile & DataDome for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_skill Get CapMonster skill

Return the full CapMonster skill (SKILL.md): the step-by-step procedure for analyzing a captcha-protected page and solving it with this server. Read it before the first captcha task. It is the same text as the MCP resource skill://capmonster-mcp/SKILL.md; use this tool if your client cannot read resources. Needs no API key.

get_actual_user_agent Get actual User-Agent

Fetch a current, real-world (Windows) User-Agent string from CapMonster's UA service. Use ONE User-Agent as a single fingerprint thread across the whole solve — they must all match or the solved token is likely to be rejected: 1. set it as the patchright browser context's UA (browser-launch flag / device emulation), so the page is loaded with it; 2. pass the SAME string as the `userAgent` field of any CapMonster task that accepts one (reCAPTCHA, Turnstile/Cloudflare, FunCaptcha, AWS WAF, DataDome, Imperva, Yidun, TenDI, …); 3. when the solution comes back with its ow…

create_task Create captcha task

Submit a captcha task; returns taskId. Poll with get_task_result. task must include 'type' and all required fields. Always look up required params at https://docs.capmonster.cloud/docs/captchas/ — do not rely on training data. For a task holding one or more large base64 blobs (ComplexImageTask with several images, htmlPageBase64 for Cloudflare cf_clearance/wait_room, or any other opaque field/combined payload too big to type safely) pass `task_file` instead of `task`: the path to a JSON file, on this machine's filesystem, containing the exact task object. Write that file with a script or a…

ParameterTypeDescription
taskobject
task_filestring

get_task_result Get task result (single poll)

Fetch a task result ONCE (a single poll). Prefer `get_task_result_wait`, which polls for you. Use this only if you want to drive the poll loop yourself. Returns a dict: - while solving: {"status": "processing", ...} — retry after 2-3 s. Poll no faster than once per 2 s (max 120 polls per task), and fetch the result promptly: the task is stored for only ~5 min before it expires with ERROR_NO_SUCH_CAPCHA_ID. - when ready: {"status": "ready", "solution": {...}, "cost": ..., ...} The `solution` object is CapMonster's raw solution, returned verbatim — its shape differs p…

ParameterTypeDescription
task_id *number

get_task_result_wait Get task result (poll to completion)

Poll a task to completion and return its solution (the usual way to collect a result after create_task). Blocks, polling /getTaskResult every `poll_interval_seconds` until the task is ready or `timeout_seconds` elapses. This respects CapMonster's limits for you — the interval is clamped to a minimum of 2 s (the API rejects faster polling with ERROR_TOO_MUCH_REQUESTS) and the number of polls is capped at 120 per task. Returns the same ready dict as get_task_result: {"status": "ready", "solution": {...}, "cost": ..., ...} The `solution` is CapMonster's raw solution, verbatim — its shape…

ParameterTypeDescription
task_id *number
poll_interval_secondsnumber
timeout_secondsnumber

get_balance Get CapMonster balance

Get CapMonster account balance.

get_supported_tasks List supported captcha task types

List captcha task types supported by CapMonster, sourced from the OpenAPI spec.

get_task_parameters Get task type parameters

Return the parameters for a CapMonster task type, from the live OpenAPI spec. Use after get_supported_tasks() to look up what fields a task needs. Pass either a top-level type name (e.g. 'RecaptchaV2Task', 'TurnstileTask') or a CustomTask class name (e.g. 'DataDome', 'altcha', 'HUNT'). Returns: - all_parameters: every field with its type/description (nested objects like `metadata` are expanded). - required: the fields the spec marks required. - description: the type's own spec note. READ IT — for several types it is where the spec records that the type has mutually-exclusive…

ParameterTypeDescription
task_type *string

get_docs Fetch CapMonster documentation

Fetch a CapMonster documentation page by its URL and return its text. Use this to read a captcha type's docs (exact task parameters, how to extract them from a live page, and worked createTask/getTaskResult examples). Pick the URL from the llms.txt index (https://docs.capmonster.cloud/llms.txt) — it lists every doc page. Also accepts llms-full.txt and the OpenAPI spec URL. Only URLs on docs.capmonster.cloud or api.capmonster.cloud are allowed. Jumping to a section (preferred on big pages — avoids paging by hand): - Pass `section="<heading>"` to return just that `##`/`###` section (fro…

ParameterTypeDescription
url *string
limitnumber
offsetnumber
sectionstring