Skip to content

Repository files navigation

CapMonster Cloud API Documentation & CAPTCHA Solver Guides

CapMonster Cloud Docs

Comprehensive API documentation, integration guides, and code examples for CapMonster Cloud AI CAPTCHA solver.

Documentation Status Built with Docusaurus 3 GitHub Stars GitHub Forks License: MIT


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


📚 Documentation Navigation

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

💻 Official SDKs & Integrations

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.

🛠 For Contributors & Maintainers

This documentation portal is built with Docusaurus 3. Follow the instructions below to preview or contribute to the documentation locally.

1. Installation

Install the project dependencies using Yarn or npm:

yarn install
# or
npm install

2. Local Development

Start a local development server with live reload:

# Start English docs (default)
yarn start

# Start Russian docs
yarn start -- --locale ru

3. Build & Production Preview

Generate static content into the build directory:

yarn build
yarn serve

📁 Localization & Directory Structure

  • Russian documentation: located in the /docs directory.
  • 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.


🚀 Deployment

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:

  1. node scripts/generate-llms.mjs — generates the plain-text documentation for AI agents (see below);
  2. docusaurus build — builds the site into build/.

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.

🤖 Text version for AI agents (llms.txt / MCP)

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 userAgentPlaceholder in the browser (src/theme/Layout/useReplaceUserAgent.ts). A plain-text file has no such script, so scripts/generate-llms.mjs rewrites it: in parameter descriptions it becomes the rule "get the current value from https://capmonster.cloud/api/useragent/actual (or the MCP tool get_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.txt and llms-full.txt carry a short Agent Instructions block (buildAgentInstructions and SDK_PACKAGES in scripts/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 to llms.txt. If an SDK package is renamed, change SDK_PACKAGES and the checklist in scripts/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_description in its frontmatter: one or two sentences for agents (what is on the page, when to open it). It replaces description in llms.txt (after the link) and under the title of the page's .txt; without it description is 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.txt is set for agents, not copied from the site menu: sections in CATEGORY_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_position of a page, position of 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 to CATEGORY_META: the generator warns when one is missing.

  • Components that have no text of their own are turned into text by mdxToMarkdown in scripts/generate-llms.mjs: <RemotePrompt url="..."/> becomes the prompt text itself (fetched once per URL at build time from raw.githubusercontent.com/CapMonsterCloud/; if the fetch fails the .txt carries the link, and --no-remote-prompts skips 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); the title of <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 to llms.txt.

  • Alt text of pictures (English sources): every screenshot and example picture has a description in ![alt](path); 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 &#39; 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/TurnstileTask before the Agent Instructions block (and under the title in llms-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-spec skips 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 of npm run build) stops with the list of pages if a picture has no alt text. A purely decorative icon goes into DECORATIVE_IMAGES in scripts/generate-llms.mjs (not into the MDX: a marker inside a heading would change the heading's anchor). --allow-missing-alt skips the check for a local draft. Other locales are not checked.

  • Pages left out of the text files. EXCLUDE_PAGES in scripts/generate-llms.mjs (and the same list in scripts/verify-llms.mjs) names pages that get no .txt and no entry in llms.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-llms lists, 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-structure turns 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 pages

The same check runs in GitHub Actions (.github/workflows/llms-txt.yml) on every pull request.


📄 License

MIT © CapMonster Cloud