Skip to content
CaptchaSonic

Para agentes de IA y automatización del navegador

Solucionador de CAPTCHA para agentes de IA

Cuando tu agente de LangChain, CrewAI, browser-use o Playwright se encuentra con un captcha, se detiene. CaptchaSonic da a los agentes y a los clientes MCP la capacidad de resolverlo para que terminen la tarea en lugar de quedar bloqueados.

Por qué los agentes de IA se bloquean

Los agentes autónomos navegan por la web en vivo, así que se topan con los mismos desafíos anti-bot que cualquier automatización: reCAPTCHA, hCaptcha, Cloudflare Turnstile, AWS WAF y más. Un captcha a mitad de ejecución rompe el flujo, el agente pierde el contexto y la tarea falla. Trata la resolución de captchas como una herramienta que el agente puede invocar, y la ejecución continúa de principio a fin.

LangChainCrewAIbrowser-usePlaywrightPuppeteerSeleniumMCP clientsAutoGen

Integra la resolución de captchas en el flujo del agente

Expón CaptchaSonic como herramienta o función que el modelo puede llamar, o conecta el servidor MCP alojado. Cuando un paso devuelve un captcha en lugar de contenido, el agente llama a la herramienta, obtiene un token y continúa — sin intervención humana.

agent_loop.py
from captchasonic import CaptchaSonic
from langchain.tools import tool

solver = CaptchaSonic(api_key="YOUR_API_KEY")

@tool
def solve_captcha(captcha_type: str, website_url: str, website_key: str) -> str:
    """Solve a captcha and return a token the agent can submit."""
    task = solver.create_task(
        type=captcha_type,          # e.g. "ReCaptchaV2" | "Turnstile" | "HCaptcha"
        website_url=website_url,
        website_key=website_key,
    )
    return solver.get_task_result(task.id).token

# Agent loop: detect -> solve -> continue
page.goto(target_url)
if page.locator('iframe[src*="recaptcha"]').count():
    sitekey = page.get_attribute('[data-sitekey]', 'data-sitekey')
    token = solve_captcha("ReCaptchaV2", page.url, sitekey)
    page.evaluate("(t)=>{document.querySelector('#g-recaptcha-response').value=t}", token)
    page.click('button[type=submit]')  # task resumes, no human in the loop

Servidor MCP alojado

Apunta cualquier cliente compatible con MCP a https://mcp.captchasonic.com con tu clave API y tendrá herramientas de resolución de CAPTCHA al instante — sin código de conexión. Consulta la documentación de MCP para la configuración.

Documentación de MCP / agentes de IA

Cómo funciona el flujo del agente

01

Detecta el bloqueo

El agente detecta que una página devolvió un desafío de captcha en lugar del contenido esperado.

02

Llama a la herramienta de resolución

Llama a CaptchaSonic (herramienta o MCP) con el tipo de captcha, la URL de la página y la site key, y después consulta el token.

03

Continúa la tarea

El token se inyecta en la página o en la solicitud y el agente retoma su objetivo original.

Dale a tu agente una capacidad de resolución

Empieza gratis con 0,50 $ de créditos de bonificación. Servidor MCP alojado y SDK para Python, Node.js y Go.

Preguntas frecuentes

It is an API (and, for CaptchaSonic, a hosted MCP server) that an autonomous agent can call as a tool when it hits a captcha. The agent submits the captcha type, page URL and site key, receives a token, injects it, and continues its task instead of stalling.

Yes. Expose CaptchaSonic as a LangChain/CrewAI tool or a Python/Node.js/Go function, or connect the hosted MCP server. browser-use, Playwright, Puppeteer and Selenium agents call the same solve flow inline.

Point any MCP-compatible client at the hosted CaptchaSonic MCP server (https://mcp.captchasonic.com) and it gains CAPTCHA-solving tools with no glue code. The model decides when to call them during a run. Setup is documented in the MCP docs.

hCaptcha, reCAPTCHA v2, Cloudflare Turnstile, GeeTest, AWS WAF, TikTok, Binance and image/OCR — the same coverage as the rest of the CaptchaSonic API, only charged for successful solves.

Agents browse the live web, so anti-bot systems present the same challenges they show any automation. Without a solve step the agent loses its loop context and the task fails. Adding captcha solving as a callable tool keeps the run going end to end.