Skip to main content
Glama
Osenga33

captcha-mcp-server-capsolver

by Osenga33

How to Build a CAPTCHA MCP Server with CapSolver

A mock-first mcp server with scoped tools, redacted responses, and bounded polling.

English cover for How to Build a CAPTCHA MCP Server with CapSolver

English · 简体中文 · 日本語 · Español · Português · 한국어

Introduction

Developers using MCP can encounter CAPTCHA during a permitted browser or workflow step, causing the automation to stop or return the wrong state. This repository shows how to connect MCP with CapSolver, recognize the challenge, request a solution through an isolated adapter, and resume once with clear stop conditions. It focuses only on the MCP integration pattern and does not bind the example to a particular business scenario.

Content type: Agent integration. Primary keyword: MCP server for CAPTCHA solving guide (keyword-library row 74).

Related MCP server: camoufox-versatile-mcp

Problem

Mcp clients need a small auditable server that exposes captcha operations without leaking credentials to the model. The implementation returns explicit challenge_detected, ready, or stopped states instead of silently guessing.

Features

  • Mock-first and deterministic local demonstration

  • Allowlisted hosts and one bounded resume attempt

  • CapSolver API isolated behind a small adapter

  • Redacted output with structured stop reasons

  • Unit tests and CI-ready project layout

How It Works

  1. Validate that the target host is explicitly allowlisted.

  2. Classify the browser or workflow observation.

  3. Send only the authorized CAPTCHA task through the adapter.

  4. Poll with a fixed attempt budget and stop conditions.

  5. Resume once and emit a minimal normalized result.

The adapter follows the official createTask API concept and getTaskResult API concept.

Quick Start

python -m unittest discover -s tests -v
PYTHONPATH=src python examples/mock_workflow.py

Project Structure

src/captcha_workflow/  bounded workflow and adapter
examples/              offline demonstration
tests/                 behavior and policy checks
docs/                  five localized README files
assets/                shared English cover

Testing

Tests verify the successful mock path, allowlist rejection, and bounded challenge handling. No live key or production target is required.

Responsible Use

Use only public data, owned systems, or targets for which you have explicit authorization. Respect terms, rate limits, purpose limitation, field minimization, retention limits, and stop conditions. Do not use this example for private or restricted data, credential access, detection evasion, or unbounded collection. Travel, pricing, inventory, personal, financial, employment, or contact data requires a documented lawful purpose and proportionate human review.

Conclusion

This repository provides a mock-first MCP server with scoped tools, redacted responses, and bounded polling. Developer sharing CapSolver integration examples. The final product reference is CapSolver.

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides LLMs with stealth browser automation capabilities via CloakBrowser to bypass bot detection services like Cloudflare and reCAPTCHA. It supports full page interaction, content extraction, and human-like behavior through 30 specialized tools.
    20
    12
    Apache 2.0
  • A
    license
    -
    quality
    B
    maintenance
    An MCP server that provides an undetectable Playwright browser to bypass Cloudflare and other bot detection systems, enabling AI agents to navigate and scrape web pages without being blocked.
    14
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    MCP server that exposes the full 2Captcha API surface to Claude Code, enabling solving of 31 captcha types, management tools, and webhook integration for asynchronous solves.
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • An MCP server for Arcjet - the runtime security platform that ships with your AI code.

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Osenga33/captcha-mcp-server-capsolver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server