AI एजेंट्स और ब्राउज़र ऑटोमेशन के लिए
AI एजेंट्स के लिए CAPTCHA सॉल्वर
जब आपका LangChain, CrewAI, browser-use या Playwright एजेंट किसी captcha से टकराता है, तो वह रुक जाता है। CaptchaSonic एजेंट्स और MCP क्लाइंट्स को solve की क्षमता देता है, ताकि वे टास्क पूरा करें, ब्लॉक न हों।
AI एजेंट्स ब्लॉक क्यों होते हैं
ऑटोनॉमस एजेंट लाइव वेब ब्राउज़ करते हैं, इसलिए उन्हें भी वही एंटी-बॉट चुनौतियाँ मिलती हैं जो किसी भी ऑटोमेशन को मिलती हैं: reCAPTCHA, hCaptcha, Cloudflare Turnstile, AWS WAF और भी बहुत कुछ। रन के बीच में आया captcha लूप तोड़ देता है, एजेंट अपना संदर्भ खो देता है, और टास्क विफल हो जाता है। CAPTCHA सॉल्विंग को एजेंट के लिए एक टूल मानें जिसे वह कॉल कर सके, तो रन शुरू से अंत तक चलता रहता है।
एजेंट लूप में CAPTCHA सॉल्विंग जोड़ें
CaptchaSonic को एक tool/function के रूप में दें जिसे मॉडल कॉल कर सके, या होस्टेड MCP सर्वर से जोड़ें। जब कोई स्टेप कंटेंट के बजाय captcha लौटाता है, तो एजेंट टूल कॉल करता है, token लेता है और आगे बढ़ जाता है — बीच में कोई इंसान नहीं।
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होस्टेड MCP सर्वर
किसी भी MCP-संगत क्लाइंट को अपनी API key के साथ https://mcp.captchasonic.com पर पॉइंट करें, और उसे तुरंत CAPTCHA सॉल्विंग टूल्स मिल जाएँगे — कोई glue code नहीं। सेटअप के लिए MCP docs देखें।
MCP / AI एजेंट Docsएजेंट लूप कैसे काम करता है
ब्लॉक पहचानें
एजेंट देखता है कि कोई पेज अपेक्षित कंटेंट के बजाय captcha चुनौती लौटा रहा है।
solve टूल कॉल करें
वह captcha प्रकार, पेज URL और site key के साथ CaptchaSonic (टूल या MCP) को कॉल करता है, फिर token के लिए पोल करता है।
टास्क जारी रखें
token पेज या रिक्वेस्ट में डाला जाता है और एजेंट अपने मूल लक्ष्य पर लौट आता है।
अपने एजेंट को solve की क्षमता दें
$0.50 बोनस क्रेडिट के साथ मुफ़्त शुरू करें। होस्टेड MCP सर्वर के साथ Python, Node.js और Go SDKs।
अक्सर पूछे जाने वाले प्रश्न
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.