captcha-mcp-server-capsolver

captcha-mcp-server-capsolver

A mock-first MCP server for CAPTCHA solving with CapSolver, featuring scoped tools, redacted responses, and bounded polling to detect and solve challenges without leaking credentials.

Category
Visit Server

README

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).

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured