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 so AI assistants and automation agents can inspect account capacity, check supported CAPTCHA types, and solve challenges.

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

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

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.0.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.0.0
File Size Uploaded Provenance Actions
captchaai_mcp-1.0.0.tar.gz 9.4 kB With provenance Details for captchaai_mcp-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 20.5 kB

Release files / captchaai_mcp-1.0.0.tar.gz

Download URL captchaai_mcp-1.0.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0176b66af0ec2c625be415132067c6e4289939a299e470169468da8a16cafb8c
BLAKE2b-256 checksum
How to use checksums
6475cffbf4b49bbca600cfff6cc9e58121f983b5682a523337ba8ef1a47f7c7c
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 11, 2026.

Transparency log

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

Download URL captchaai_mcp-1.0.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e94f84773d7be0d16f7a5fb68a70b91edf072cccb02a2a5cbb006bee4555af8d
BLAKE2b-256 checksum
How to use checksums
6d04083967e99539ff501d69bf71caaa0ba372d8a6c9f143604fe4ec62adaaf9
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 11, 2026.

Transparency log

Security for captchaai-mcp 1.0.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.0.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 11, 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.0.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