Skip to main content
Glama

2Captcha MCP Server

A Model Context Protocol (MCP) server implementation that integrates with 2Captcha to provide robust CAPTCHA solving capabilities for AI agents.

Features

  • Balance Check: Monitor your 2Captcha account balance.

  • Image Captcha: Solve traditional image-based CAPTCHAs (file, base64, or HTML).

  • reCAPTCHA v2: Solve reCAPTCHA v2 and Enterprise versions.

  • hCaptcha: Solve hCaptcha widgets.

  • Cloudflare Turnstile: Solve Cloudflare's invisible challenge.

  • Arkose Labs (FunCaptcha): Solve FunCaptcha/Arkose challenges.

  • GeeTest: Solve GeeTest v3 challenges.

Related MCP server: Anybrowse

Installation

Running with npx

You can run the server directly using npx:

env TWOCAPTCHA_API_KEY=YOUR_API_KEY_HERE npx -y 2captcha-mcp

Note for Windows users: If you encounter issues with environment variables, try: cmd /c "set TWOCAPTCHA_API_KEY=YOUR_API_KEY_HERE && npx -y 2captcha-mcp"

Configuration

Environment Variables

  • TWOCAPTCHA_API_KEY (Required): Your 2Captcha API key. You can find this in your 2Captcha Dashboard.

Usage with Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "2captcha-mcp": {
      "command": "npx",
      "args": ["-y", "2captcha-mcp"],
      "env": {
        "TWOCAPTCHA_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Available Tools

1. Balance Check (get_balance)

Check your current 2Captcha account balance.

Prompt Example:

"How much balance do I have left on 2Captcha?"


2. Solve Image Captcha (solve_image)

Solve an image-based CAPTCHA. Supports local file paths, base64 strings, or HTML snippets containing <img> tags.

Arguments:

  • body: The image source (path, base64, or HTML).

  • numeric: 0=default, 1=only digits, 2=only letters, 3=either, 4=both (optional).

  • min_len / max_len: Length constraints (optional).

Prompt Example:

"Solve this captcha image: "


3. Solve reCAPTCHA v2 (solve_recaptcha_v2)

Solve reCAPTCHA v2 or Enterprise.

Arguments:

  • pageurl: The URL of the page where the captcha is located.

  • googlekey: The sitekey (data-sitekey).

  • enterprise: Set to true for enterprise version.

  • invisible: Set to true for invisible version.


4. Solve hCaptcha (solve_hcaptcha)

Solve hCaptcha widgets.

Arguments:

  • pageurl: The URL of the page.

  • sitekey: The hCaptcha sitekey.


5. Solve Turnstile (solve_turnstile)

Solve Cloudflare Turnstile challenges.

Arguments:

  • pageurl: The URL of the page.

  • sitekey: The Turnstile sitekey.


6. Solve Arkose/FunCaptcha (solve_arkose)

Solve Arkose Labs/FunCaptcha challenges.

Arguments:

  • pageurl: The URL of the page.

  • publickey: The Arkose public key.


7. Solve GeeTest (solve_geetest)

Solve GeeTest v3 challenges.

Arguments:

  • pageurl: The URL of the page.

  • gt: The GeeTest gt value.

  • challenge: The GeeTest challenge value.

F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    MCP-native web scraping and search API for AI agents. Converts any URL to clean Markdown with 90% success rate, including Cloudflare-protected sites and JS SPAs. Real-time web search via Brave Search API. CAPTCHA solving built-in. 10 free scrapes/day.
    5
    8
    4
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a real browser that bypasses bot detection (Cloudflare, Turnstile) for AI agents, enabling navigation, clicking, typing, screenshots, and data collection through MCP tools.
    71
    MIT

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Connect MCP clients to 2,000+ AI models without managing provider API keys.

  • Give AI agents real phone numbers, messages, and voice calls via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricFor/2CaptchaMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server