Para agentes de IA e automação de navegador
Solucionador de CAPTCHA para agentes de IA
Quando seu agente com LangChain, CrewAI, browser-use ou Playwright encontra um captcha, ele trava. A CaptchaSonic dá aos agentes e clientes MCP a capacidade de resolver o desafio para que concluam a tarefa em vez de serem bloqueados.
Por que agentes de IA são bloqueados
Agentes autônomos navegam na web em tempo real, então encontram os mesmos desafios anti-bot de qualquer automação: reCAPTCHA, hCaptcha, Cloudflare Turnstile, AWS WAF e outros. Um captcha no meio da execução quebra o fluxo, o agente perde o contexto e a tarefa falha. Trate a resolução de captcha como uma ferramenta que o agente pode chamar, e a execução continua do início ao fim.
Adicione a resolução de captcha ao loop do agente
Exponha a CaptchaSonic como uma tool/função que o modelo pode chamar, ou conecte o servidor MCP hospedado. Quando uma etapa retorna um captcha em vez do conteúdo, o agente chama a ferramenta, recebe um token e retoma o trabalho, sem intervenção humana.
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 loopServidor MCP hospedado
Aponte qualquer cliente compatível com MCP para https://mcp.captchasonic.com com sua chave de API e ele recebe ferramentas de resolução de CAPTCHA na hora, sem código de conexão. Veja as docs de MCP para a configuração.
Docs de MCP / agentes de IAComo funciona o loop do agente
Detectar o bloqueio
O agente percebe que a página retornou um desafio de captcha em vez do conteúdo esperado.
Chamar a ferramenta de resolução
Ele chama a CaptchaSonic (tool ou MCP) com o tipo de captcha, a URL da página e a site key, e depois consulta o token.
Continuar a tarefa
O token é injetado na página ou na requisição, e o agente retoma o objetivo original.
Dê ao seu agente a capacidade de resolver captchas
Comece grátis com $0,50 em créditos de bônus. Servidor MCP hospedado e SDKs para Python, Node.js e Go.
Perguntas frequentes
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.