Skip to main content
Glama
capsolver-ai

CapSolver MCP Server

Official
by capsolver-ai

solve_captcha

Solve a captcha in token mode and receive a solution token for reCAPTCHA, Cloudflare, or Turnstile challenges, ready to submit via form POST or API call.

Instructions

Solve a captcha in token mode — no browser required.

CapSolver will create a task on its server, solve the captcha challenge, and return the solution token. Use this when you only need the token to submit to a target website (e.g. via form POST or API call).

Args: captcha_type: One of "reCaptchaV2", "reCaptchaV3", "cloudflare". website_url: The full URL of the page where the captcha appears. website_key: The site key / public key / data-sitekey of the captcha widget. version: reCAPTCHA version hint ("v2" or "v3"). Usually auto-detected. page_action: reCAPTCHA v3 action name (e.g. "login", "submit"). min_score: reCAPTCHA v3 minimum score threshold (0.0–1.0). invisible: Whether the reCAPTCHA widget uses invisible mode. enterprise: Whether to use the Enterprise API variant. s_token: Enterprise s_token for stoken-based verification. cdata: Cloudflare Turnstile custom data parameter. proxy: Proxy in "user:pass@host:port" or "host:port" format. user_agent: Custom User-Agent string to use during solving. timeout: Maximum seconds to wait for a solution (default: 120). polling_interval: Seconds between status polls (default: 5).

Returns: {"success": True, "solution": {...}} on success. {"success": False, "error": "...", "error_id": ..., "error_code": "...", "http_status": ...} on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cdataNo
proxyNo
s_tokenNo
timeoutNo
versionNo
invisibleNo
min_scoreNo
enterpriseNo
user_agentNo
page_actionNo
website_keyYes
website_urlYes
captcha_typeYes
polling_intervalNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the internal flow ('CapSolver will create a task on its server, solve the captcha challenge, and return the solution token') and details the return payload structure for both success and failure. It does not mention costs, rate limits, or authentication, but the core behavior and error reporting are transparent enough for an agent to call it safely.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded: it leads with purpose, then presents an organized Args section with one line per parameter, followed by a Returns section. Despite covering 14 parameters, it avoids fluff and each line adds information. The format is scannable and efficient for an agent to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (14 parameters, 3 required, multiple captcha types), the description covers everything an agent needs: what it does, when to use it, how each parameter behaves, and the exact return format. It also notes that an output schema exists (implied by 'Returns:'), though the schema itself is not provided here. For a token-based captcha solver, this is complete and self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has zero description coverage, so the description must compensate for every parameter. It does so comprehensively: all 14 parameters are individually explained in the Args list, including formats for proxy and user_agent, defaults for timeout and polling_interval, and notes on auto-detection for version. This fully compensates for the schema's lack of descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear, specific statement: 'Solve a captcha in token mode — no browser required.' It names the exact action, resource, and distinguishes from a browser-based flow, implying a contrast with the sibling tool solve_on_page without naming it. The purpose is unambiguous and the verb+resource pairing is precise.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an explicit condition: 'Use this when you only need the token to submit to a target website (e.g. via form POST or API call).' This clearly frames the intended context. However, it does not explicitly exclude alternatives like solve_on_page or detect_captchas, nor does it mention when not to use it, so it stops short of a full when/when-not comparison.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.