Skip to main content

CaptchaAI MCP Server

Official Model Context Protocol (MCP) server for CaptchaAI, built with FastMCP and backed by the official captchaai Python SDK.

Exposes token-mode (pure API, no browser required) tools by default, plus optional browser-mode Playwright tools (pip install "captchaai-mcp[browser]") for automatic CAPTCHA detection, extraction, solving, and injection on live URLs.

Tools

Tool Description API Key Needed
get_supported_captchas List the 8 token-mode CAPTCHA types with required/optional arguments and proxy/UA notes No
get_threads Get account thread usage (threads, working_threads, free_threads) Yes
get_balance Get account balance string (balance) Yes
solve_captcha Solve a CAPTCHA in token mode and return task_id, solution, and user_agent Yes
get_captchas_params (optional [browser]) Open a URL in Playwright Chromium and extract CaptchaParams for every detected CAPTCHA Yes
solve_url (optional [browser]) Open a URL in Playwright Chromium, detect, solve, and optionally inject (autofill) CAPTCHAs Yes

Supported captcha_type Values

  • recaptcha_v2 (supports invisible=True and enterprise=True)
  • recaptcha_v3 (requires action; supports enterprise=True and min_score)
  • turnstile
  • cloudflare_challenge (requires proxy + proxytype ("HTTP" or "HTTPS"); returns user_agent)
  • geetest (requires gt + challenge; returns {challenge, validate, seccode})
  • captchafox (requires proxy + proxytype ("HTTP" or "HTTPS"); returns user_agent)
  • friendly_captcha
  • lemin (requires captcha_id + div_id; returns {answer, challenge_uuid})

Installation

Install directly from PyPI with pip or run via uvx:

pip install captchaai-mcp

# Optional: enable browser-mode tools (get_captchas_params, solve_url)
pip install "captchaai-mcp[browser]"
playwright install chromium

Or run from a local clone:

git clone https://github.com/CaptchaAI/captchaai-mcp.git
cd captchaai-mcp
uv sync

Set your API key:

export CAPTCHAAI_API_KEY="YOUR_32_CHAR_API_KEY"

Running

# STDIO (default — for Claude Desktop, Cursor, Windsurf, etc.)
uvx captchaai-mcp
# or from source:
uv run captchaai-mcp

# Streamable HTTP (serves at http://127.0.0.1:8000/mcp)
uvx captchaai-mcp --transport streamable-http --host 127.0.0.1 --port 8000

MCP Client Configuration

See the full MCP Client Integration Guide for step-by-step setup with Claude Code, OpenAI Codex CLI, Cursor, Claude Desktop, VS Code, Windsurf, and Antigravity.

Using uvx (recommended):

{
  "mcpServers": {
    "captchaai": {
      "command": "uvx",
      "args": ["captchaai-mcp"],
      "env": {
        "CAPTCHAAI_API_KEY": "YOUR_32_CHAR_API_KEY"
      }
    }
  }
}

Or from a local checkout:

{
  "mcpServers": {
    "captchaai": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/captchaai-mcp",
        "captchaai-mcp"
      ],
      "env": {
        "CAPTCHAAI_API_KEY": "YOUR_32_CHAR_API_KEY"
      }
    }
  }
}

Development & Tests

# Run MCP server tests
uv run pytest -q

# Inspect the MCP server manifest
uv run fastmcp inspect src/captchaai_mcp/server.py:create_server

License

MIT — see LICENSE.

Metadata

Release files for captchaai-mcp 1.1.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 captchaai-mcp 1.1.0
File Size Uploaded Provenance Actions
captchaai_mcp-1.1.0.tar.gz 11.6 kB With provenance Details for captchaai_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for captchaai-mcp 1.1.0
File Interpreter ABI Platform Actions
captchaai_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for captchaai_mcp-1.1.0-py3-none-any.whl

Total release size: 25.1 kB

Release files / captchaai_mcp-1.1.0.tar.gz

Download URL captchaai_mcp-1.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e6eba1d5d6bd16aa5c8ebefb55fb275703dab6b186df3b8f118e6b00e64033ac
BLAKE2b-256 checksum
How to use checksums
42866da89290a52980541a6b56d4ffecb1947da54f5819cd5379959cd6944997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / captchaai_mcp-1.1.0-py3-none-any.whl

Download URL captchaai_mcp-1.1.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02e38ec858874d840c27d0a2a14ee3d357aa75b87aa2b27b2ef1bda7deaaa355
BLAKE2b-256 checksum
How to use checksums
6bd34e654aa42039d790e86139dc31dd7fba53bb4e1c46d46d1622288814cb1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for captchaai-mcp 1.1.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for captchaai_mcp-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files Full provenance

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