Comprehensive API documentation, integration guides, and code examples for CapMonster Cloud AI CAPTCHA solver.
Welcome to the official documentation repository for CapMonster Cloud — the high-speed AI-powered CAPTCHA solving infrastructure for developers and automation engineers.
Here you will find full API specifications, payload samples, and step-by-step guides for bypassing Cloudflare Turnstile, reCAPTCHA v2/v3/Enterprise, DataDome, GeeTest, and Amazon WAF.
👉 Get your Free API Key & Free Trial Balance on CapMonster Cloud
Explore our live hosted documentation portal:
| Section | Description | Live Link |
|---|---|---|
| 🚀 Getting Started | Quickstart tutorial, account setup, and balance activation | Read Guide |
| 🧩 CAPTCHA Task Types | reCAPTCHA, Turnstile, GeeTest, DataDome, and WAF specs | View Tasks |
| ⚙️ API Methods | createTask, getTaskResult, getBalance reference |
API Reference |
| 🌐 Browser Extensions | Chrome and Firefox automatic captcha solving guides | Extension Docs |
Accelerate your automation pipeline with our official client libraries and integrations:
- 🐍 Python SDK — Async, Playwright, Selenium, and Requests.
- 🟢 Node.js / JavaScript SDK — Official Node.js library with TypeScript support.
- 🔷 .NET / C# SDK — Official .NET package for C# automation projects.
- 🐹 Go SDK — Official Go (Golang) client library for CapMonster Cloud.
- 🐘 PHP SDK — Official PHP client library for captcha solving in PHP scripts and scrapers.
- 🦀 Rust SDK — Async Rust crate built on tokio for scraping and browser automation, published on crates.io.
- 🧩 n8n Community Node — No-code workflow automation node.
- 🤖 MCP Server — Connect AI agents (Claude, Cursor, etc.) directly to CapMonster Cloud via Model Context Protocol.
- 🎭 MCP Server for Patchright — Stealth browser automation with built-in captcha solving for AI agents.
- 📦 All Repositories & SDKs — Full list of open-source tools.
This documentation portal is built with Docusaurus 3. Follow the instructions below to preview or contribute to the documentation locally.
Install the project dependencies using Yarn or npm:
yarn install
# or
npm installStart a local development server with live reload:
# Start English docs (default)
yarn start
# Start Russian docs
yarn start -- --locale ruGenerate static content into the build directory:
yarn build
yarn serve- Russian documentation: located in the
/docsdirectory. - English documentation: located in
/i18n/en/docusaurus-plugin-content-docs/current/.
When adding a new article, create the corresponding markdown file in both directories with identical filenames and category paths.
The live site is built and published by Cloudflare Pages (project capmonstercloud-docs-v2) directly from this GitHub repository. Every push to master triggers a production build. There is no deploy step in this repo — merging to master is the deploy.
The Cloudflare build runs npm run build, which is:
node scripts/generate-llms.mjs— generates the plain-text documentation for AI agents (see below);docusaurus build— builds the site intobuild/.
Search (Algolia) credentials are provided as environment variables in the Cloudflare Pages project settings. Never commit them to this repository — it is public.
The Dockerfile is a legacy artifact from a previous hosting setup and is not used by the current deployment.
Alongside the HTML pages the build publishes plain-text copies of the documentation, used by the CapMonster Cloud MCP server and other AI agents:
https://docs.capmonster.cloud/llms.txt— index of all pages with short descriptions;https://docs.capmonster.cloud/llms-full.txt— the whole documentation in one file;https://docs.capmonster.cloud/docs/<page>.txt— one file per page, e.g./docs/captchas/recaptcha-v3-task/→/docs/captchas/recaptcha-v3-task.txt.
They are generated from the English MDX sources on every build by scripts/generate-llms.mjs (output is git-ignored), so they are always in sync with the deployed pages. Content that lives in React components rather than MDX (<McpNotice/>, <PriceBlock/>, <BlogLink/>) is rendered to text by that script — if you add a new content-bearing component, teach the script about it too.
What the text files add for agents (nothing of this is visible on the HTML pages):
-
The HTML replaces the literal
userAgentPlaceholderin the browser (src/theme/Layout/useReplaceUserAgent.ts). A plain-text file has no such script, soscripts/generate-llms.mjsrewrites it: in parameter descriptions it becomes the rule "get the current value fromhttps://capmonster.cloud/api/useragent/actual(or the MCP toolget_actual_user_agent) right before the request", and in examples (JSON, SDK code, headers) it becomes the marker<CURRENT_USER_AGENT>. A page with the marker starts with a one-line legend. The MDX sources are not changed; a new wording of the sentence still gets the marker, never the raw placeholder. -
Every page,
llms.txtandllms-full.txtcarry a short Agent Instructions block (buildAgentInstructionsandSDK_PACKAGESinscripts/generate-llms.mjs, the only place to edit it): when to use the MCP tools and when the official SDK, where the API key comes from, where to take task type names (the examples, not page titles), and the single User-Agent rule. Per-page files also start with a pointer tollms.txt. If an SDK package is renamed, changeSDK_PACKAGESand the checklist inscripts/verify-llms.mjs. -
Titles and descriptions in the text files show the API task type, not the old SEO wording (
TASK_TYPE_FIXES:NoCaptchaTask/reCAPTCHAV2Task->RecaptchaV2Task). The HTML<title>and meta tags are not touched. -
A page may carry an optional
llms_descriptionin its frontmatter: one or two sentences for agents (what is on the page, when to open it). It replacesdescriptioninllms.txt(after the link) and under the title of the page's.txt; without itdescriptionis used, and anything over ~300 characters is cut at a word boundary. Docusaurus ignores unknown frontmatter keys, so the HTML,<meta name="description">and SEO are unchanged. -
Page order in
llms.txtis set for agents, not copied from the site menu: sections inCATEGORY_META(Getting started, MCP, API Reference, Captcha types, Integrations, Browser extension, then Optional: FAQ, bonuses, updates), pages inside a section by menu order level by level (sidebar_positionof a page,positionof a folder's_category_.json), so a folder stays one block. The ten ComplexImage modules are moved to the end of the captcha types (FOLDER_POSITION_OVERRIDES). A new top-level folder must be added toCATEGORY_META: the generator warns when one is missing. -
Components that have no text of their own are turned into text by
mdxToMarkdowninscripts/generate-llms.mjs:<RemotePrompt url="..."/>becomes the prompt text itself (fetched once per URL at build time fromraw.githubusercontent.com/CapMonsterCloud/; if the fetch fails the.txtcarries the link, and--no-remote-promptsskips the fetch);<TabItem>and<details>become headings, one level deeper for each level of nesting, with their bodies dedented (4+ spaces of indent would read as a code block);<MethodItem>puts the HTTP method before the address (POST https://api.capmonster.cloud/createTask); thetitleof<ImageWrap>becomes a line[Image: Puzzle]; an image with alt text becomes[Image: <alt>], an image without alt text leaves nothing, and the build prints how many there are (write the alt text: it also helps screen readers); site-root links (](/docs/...)) get the full address and point to.txt; links to menu pages without a text twin point tollms.txt. -
Alt text of pictures (English sources): every screenshot and example picture has a description in
; a picture that is only decoration (a small icon next to a heading) keeps an empty alt on purpose. The converter prints the alt as[Image: ...], so an agent that cannot see the picture still gets what it shows (which DevTools tab, which value is highlighted, what the captcha asks for), and screen readers read the same text. Rules for new alt text: describe what the surrounding instruction depends on, not the look; no apostrophe'(Docusaurus turns it into the text'in the HTML: use “quotes” or ’ instead); put a backslash before{,},<,>and*(MDX reads them as code; the converter removes the backslash). The build prints how many pictures have no alt text. The Russian sources have no alt texts yet. -
Schema link. A page of a task type gets a line
Schema in the API spec: https://api.capmonster.cloud/openapi.json#/components/schemas/TurnstileTaskbefore the Agent Instructions block (and under the title inllms-full.txt). The type is read from the"type"of the page's request examples, and a link is written only if the spec really has that schema (the spec is fetched once per build;--no-specskips it, an unreachable spec just means no links). A page with several types gets one line per type (at most four). -
Alt text is required (English pages). The build (
generate-llms.mjs, the first step ofnpm run build) stops with the list of pages if a picture has no alt text. A purely decorative icon goes intoDECORATIVE_IMAGESinscripts/generate-llms.mjs(not into the MDX: a marker inside a heading would change the heading's anchor).--allow-missing-altskips the check for a local draft. Other locales are not checked. -
Pages left out of the text files.
EXCLUDE_PAGESinscripts/generate-llms.mjs(and the same list inscripts/verify-llms.mjs) names pages that get no.txtand no entry inllms.txt/llms-full.txt, in every locale. Now:news(a feed drawn by a component, no text of its own). The HTML page is not affected. -
Structure report.
verify-llmslists, as warnings, headings with nothing under them and lines ending with ":" that are followed by the end of the page or a rule (usually a picture or a block that was lost; a sub-heading after the colon is normal);--strict-structureturns them into failures. A tab or "details" title whose body has headings of its own at the same or a higher level is printed as a bold line, not as a heading.
npm run verify-llms also fails if a link starts from the site root without a host, if a code fence is indented 4+ spaces, or if a <RemotePrompt/> of a source page is missing in the .txt files.
npm run verify-llms fails if a literal userAgentPlaceholder is left anywhere, if the marker appears without the link to the current User-Agent, or if the Agent Instructions block is missing, longer than 8 lines, different between files, lacks the API key variable, the SDK package names or the MCP link, mentions prices/versions/timings, or shows up in an HTML page.
To check locally:
npm run build # generates txt files + builds the site
npm run verify-llms # checks that txt files exist and match the built pagesThe same check runs in GitHub Actions (.github/workflows/llms-txt.yml) on every pull request.