Nonecap logo

Nonecap

Official TypeScript client for NoneCap, the hCaptcha solver API.

Install Nonecap

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nonecap": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "nonecap@latest",
        "nonecap-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 6 tools correctly ().

Overview

Tools6

What Nonecap lets your agent do. Expand a tool for its parameters.

Verified live~875 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 26d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Can delete or modify data · 1Handles credentials · 3Makes network requests · 6Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age153 days
Maintainers1

Observed 2026-11-11 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · nonecap@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars419Stargazers on the source repository.
npm downloads2.3kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed6Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

nonecap

CI npm License: MIT

Official TypeScript client for the NoneCap hCaptcha solver API.

Submit a captcha, get back a token. The client handles the polling, the timeouts, and the error cases so you do not have to write the fetch loop yourself.

Install

Terminal
npm install nonecap

Works on Node 18+, Bun, Deno, and edge runtimes. No dependencies.

Quick start

Grab an API key from dashboard.nonecap.com, then:

server.ts
import { NoneCap } from "nonecap";

const nc = new NoneCap({ apiKey: process.env.NONECAP_KEY! });

const solve = await nc.solve({
  type: "hcaptcha",
  sitekey: "10000000-ffff-ffff-ffff-000000000001",
  url: "https://example.com/login",
});

console.log(solve.token); // the hCaptcha token, ready to submit
console.log(solve.resp_key); // hcaptcha.getRespKey() equivalent, for sites that verify the pair
console.log(solve.user_agent); // submit the token with this User-Agent: some sites check the browser version
console.log(solve.warnings); // e.g. proxy_session_refused: tokens you reported through this proxy session or its exit IP were refused; a different exit IP is more likely to pass (or, when your proxy changed its exit IP during the solve, use a sticky session per solve)

solve() submits the captcha and waits until it is done, using the API's long-poll so you are not hammering it with requests. It returns the solved solve, or throws if the solve fails or your timeout runs out.

MCP server (Claude Code, Cursor, and other MCP clients)

The package also ships nonecap-mcp, a stdio MCP server, so an AI agent can solve hCaptcha through your NoneCap account.

Claude Code:

Terminal
claude mcp add nonecap --env NONECAP_API_KEY=<your key> -- npx -y -p nonecap@latest nonecap-mcp

Cursor (~/.cursor/mcp.json), Claude Desktop (claude_desktop_config.json), and most other clients take the same JSON:

config.json
{
  "mcpServers": {
    "nonecap": {
      "command": "npx",
      "args": ["-y", "-p", "nonecap@latest", "nonecap-mcp"],
      "env": { "NONECAP_API_KEY": "<your key>" }
    }
  }
}

Tools:

ToolWhat it does
solve_hcaptchaSolve an hCaptcha (sitekey, url; optional type, rqdata, user_agent, proxy, wait_seconds) and return the solve with its token. If the solve is still running after wait_seconds (default 45, at most 50, inside the 60 s that clients built on the official MCP SDK allow by default), it returns the solve id and status so the agent polls get_solve instead of solving again.
get_solveGet a solve by id, optionally waiting up to 50 seconds for it to finish.
cancel_solveCancel a pending or running solve.
list_solvesList your recent solves.
get_accountYour credit balance and your plan's solves left today.
report_solve_outcomeTell NoneCap whether the site accepted a token.

A failed call comes back as a tool error whose JSON carries the API's error code (insufficient_credits, sitekey_rate_limited, a failed solve's proxy_error, …), plus retry_after when the API sent one. Set NONECAP_BASE_URL to point the server at a different API host.

There is also an Agent Skill that tells Claude Code, Codex and other SKILL.md clients when to reach for NoneCap and how to submit the token: copy skills/nonecap-hcaptcha into ~/.claude/skills/ (or your agent's skills folder).

Handling failures

Every error this library throws extends NoneCapError, so you can catch the whole family or pick out the one you care about.

server.ts
import {
  NoneCap,
  SolveFailedError,
  InsufficientCreditsError,
  RateLimitError,
} from "nonecap";

try {
  const { token } = await nc.solve({ type: "hcaptcha", sitekey, url });
  // use token
} catch (err) {
  if (err instanceof SolveFailedError) {
    // The message says what happened, what to do, and that nothing was charged.
    console.error(err.solve.error?.message);
    if (err.retryable) scheduleRetry();
  } else if (err instanceof InsufficientCreditsError) {
    console.error("Out of credits. Top up at dashboard.nonecap.com");
  } else if (err instanceof RateLimitError) {
    await new Promise((r) => setTimeout(r, (err.retryAfter ?? 1) * 1000));
  } else {
    throw err;
  }
}

The error subclasses are AuthenticationError (401), PermissionError (403), InsufficientCreditsError (402, with KeyCreditLimitError when one API key hit its own cap), ValidationError (422/400, with a param naming the bad field; PayloadTooLargeError for 413 and UnsupportedMediaTypeError for 415), NotFoundError (404), ConflictError (409), RateLimitError (429, with ConcurrencyLimitError, SitekeyRateLimitedError, ProxyUnavailableError (your own proxy is refusing connections) and RateCappedError (your account reached its submit rate cap on this sitekey, or your own-proxy sessions for it are at their limit) telling them apart; retryAfter is the seconds the API asked you to wait), RecognitionFailedError (422 from recognize() when no answer came back, nothing charged), APIError (5xx, with ServiceUnavailableError for a maintenance pause and its subclass SitekeyUnavailableError when solving for one sitekey is currently in maintenance, retryAfter set), and ConnectionError (the request never landed). Every error from a response carries requestId, the id to quote to support.

SolveFailedError carries the full solve. solve.error.code is a SolveErrorCode, solve.error.reason a typed sub-reason or null (proxy_rejected, sitekey_rate_limited, …), and solve.error.retryable says whether resubmitting the same request unchanged can succeed; err.retryable, err.reason and err.solveCode are shortcuts to those fields. Failed solves are never charged.

Cancelling a solve

solve() is the simple path when you just want a token. When you need to cancel while the solve is in flight — clean shutdown, freeing a worker slot, or stopping early — start it instead. solves.start() returns as soon as the submission is accepted, handing you a SolveHandle whose id is available right away.

Wait for the result when you want the token:

server.ts
const handle = await nc.solves.start({ type: "hcaptcha", sitekey, url });
console.log(handle.id); // available immediately

const solve = await handle.result({ timeout: 120_000 });
console.log(solve.token);

Or hold onto the handle and cancel it from somewhere else — a shutdown hook, a request that was abandoned, a "stop" button:

server.ts
const handle = await nc.solves.start({ type: "hcaptcha", sitekey, url });

process.on("SIGTERM", () => {
  handle.cancel().catch(() => {}); // free the worker slot on shutdown
});

// elsewhere, whoever needs the token still awaits it:
const solve = await handle.result();

handle.result() long-polls until the solve finishes, throwing SolveFailedError or TimeoutError exactly like solve(). The terminal outcome is memoized: once the solve actually finishes, every later result() call returns that same result. A TimeoutError is not memoized — it just means that wait gave up, so you can call result() again (for example with a larger timeout) to resume polling. Concurrent result() calls share a single in-flight poll.

handle.cancel() cancels a pending or in-flight solve. If the solve already finished, the API would answer 409; the handle swallows that and returns the solve's current state instead, since cancelling a finished solve is not something you need to handle. Cancelling settles the handle, so a concurrent or later result() stops polling and reflects the cancelled (terminal) state.

Cancelled and abandoned solves are never charged — nothing is billed unless a solve actually succeeds, and unfinished solves simply expire uncharged at the server deadline. So cancel is for cleanup and early-stop, not cost protection.

Cleaning up after a solve() timeout

solve() blocks until the solve settles, so it hands you no handle to cancel a solve while it's still running — for that, use solves.start() above. The one thing the solve() path offers is cleanup after a timeout: when solve() throws TimeoutError, the error usually carries the in-flight solveId (and last-known solve), so you can cancel the solve the wait gave up on. Guard on solveId being present — if the very first submission times out at the transport level, no id has been assigned yet, so solveId is undefined.

server.ts
import { TimeoutError } from "nonecap";

try {
  await nc.solve({ type: "hcaptcha", sitekey, url });
} catch (err) {
  if (err instanceof TimeoutError && err.solveId) {
    await nc.solves.cancel(err.solveId);
  } else {
    throw err;
  }
}

Enterprise captchas

For hcaptcha_enterprise, rqdata is optional: many enterprise sites never issue one. When the page does pass an rqdata blob to its widget, send it, fresh for each challenge.

server.ts
const { token } = await nc.solve({
  type: "hcaptcha_enterprise",
  sitekey,
  url,
  rqdata: "...", // only when the site provides one
});

Proxies

Pass a proxy as a structured object or a URL string. Solves run through it, and the bytes are metered back on the solve. For HTTP/3 through your own proxy, see HTTP/3 on your own proxy.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Nonecap

nonecap is an MCP server that lets AI agents solve hCaptcha through a NoneCap account. Distributed with the nonecap package as a stdio server, it works with Claude Code, Cursor, Claude Desktop, and other MCP clients. Its tools submit, poll, cancel, list, and report solve outcomes.

Configure nonecap as a stdio MCP server with your NoneCap API key. For Claude Code, run `claude mcp add nonecap --env NONECAP_API_KEY=<your key> -- npx -y -p nonecap@latest nonecap-mcp`. Other clients can use `npx` with package `nonecap@latest`, command `nonecap-mcp`, and the `NONECAP_API_KEY` environment variable.

The server provides `solve_hcaptcha`, `get_solve`, `cancel_solve`, `list_solves`, `get_account`, and `report_solve_outcome`. These tools submit and retrieve solves, manage pending requests, show recent solves, check credits and daily plan limits, and report whether a site accepted a token.

`solve_hcaptcha` waits using the API’s long-polling behavior, with `wait_seconds` defaulting to 45 and allowing at most 50 seconds. If the solve is still running, it returns the solve ID and status so the agent can call `get_solve` instead of submitting another solve; `get_solve` can also wait up to 50 seconds.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNonecap AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nonecap?style=directory)](https://allmcps.com/mcp/nonecap)
HTML Embed
<a href="https://allmcps.com/mcp/nonecap"><img src="https://allmcps.com/api/badge/nonecap?style=directory" alt="Nonecap on AllMCPs" /></a>