NSLSolver MCP Server
Official# NSLSolver MCP Server
[](https://www.npmjs.com/package/nslsolver-mcp)
[](LICENSE)
The official [Model Context Protocol](https://modelcontextprotocol.io) server for **[NSLSolver](https://nslsolver.com)**. It lets AI agents (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and any other MCP client) solve **Cloudflare Turnstile, Cloudflare Challenge (cf_clearance), Kasada, Akamai Bot Manager and reCAPTCHA v3 / Enterprise** while they browse, scrape or test.
<!-- mcp-name: com.nslsolver/mcp -->
| Tool | Solves | Returns | Avg. time | Price / 1,000 |
|---|---|---|---|---|
| `solve_turnstile` | Cloudflare Turnstile | `token` | ~250 ms | $0.80 |
| `solve_cloudflare_challenge` | Cloudflare managed challenge ("Just a moment...") | `cookies.cf_clearance` + `user_agent` | ~2.5 s | $1.00 |
| `solve_recaptcha_v3` | reCAPTCHA v3 and Enterprise | `token` | ~4.5 s | $1.00 |
| `solve_kasada` | Kasada (KPSDK) | `headers` (`x-kpsdk-*`) | ~6 s | $1.50 |
| `solve_akamai` | Akamai Bot Manager (beta) | `cookies` (`_abck`, `bm_sz`, …) | ~9 s | $2.00 |
| `get_balance` | – | balance, allowed types, CPM limits | – | free |
Only successful solves are billed. Failed solves, validation errors and rate-limited calls cost nothing.
## 1. Get an API key
Create an account at **[nslsolver.com](https://nslsolver.com/auth/register)**. Your key is active immediately, and verifying your email adds 100 free solves. Copy the key from the [dashboard](https://nslsolver.com/dashboard).
## 2. Add the server to your client
Requires Node.js 18 or newer. Replace `YOUR_API_KEY` with your key.
### Claude Code
```bash
claude mcp add nslsolver -e NSLSOLVER_API_KEY=YOUR_API_KEY -- npx -y nslsolver-mcp
```
### Claude Desktop
Edit `claude_desktop_config.json` (Settings → Developer → Edit Config):
```json
{
"mcpServers": {
"nslsolver": {
"command": "npx",
"args": ["-y", "nslsolver-mcp"],
"env": { "NSLSOLVER_API_KEY": "YOUR_API_KEY" }
}
}
}
```
### Cursor
Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):
```json
{
"mcpServers": {
"nslsolver": {
"command": "npx",
"args": ["-y", "nslsolver-mcp"],
"env": { "NSLSOLVER_API_KEY": "YOUR_API_KEY" }
}
}
}
```
### VS Code (GitHub Copilot agent mode)
Add to `.vscode/mcp.json`. VS Code prompts for the key once and stores it securely:
```json
{
"inputs": [
{ "type": "promptString", "id": "nslsolver-key", "description": "NSLSolver API key", "password": true }
],
"servers": {
"nslsolver": {
"command": "npx",
"args": ["-y", "nslsolver-mcp"],
"env": { "NSLSOLVER_API_KEY": "${input:nslsolver-key}" }
}
}
}
```
### Windsurf and other clients
Use the same `command` / `args` / `env` block as Claude Desktop in your client's MCP config (Windsurf: `~/.codeium/windsurf/mcp_config.json`).
## 3. Ask your agent
> Get a Turnstile token for https://example.com/login. The sitekey is 0x4AAAAAAA8vwvf7nF7pKCe8.
> This page shows "Just a moment...". Get a cf_clearance cookie through my proxy http://user:pass@1.2.3.4:8080.
> How much NSLSolver balance do I have left?
The agent picks the right tool, calls NSLSolver and uses the token, cookies or headers in its next request.
## Tool reference
All tools take the page `url`. A `proxy` is `protocol://[user:pass@]host:port` with `http`, `https`, `socks4` or `socks5`.
**`solve_turnstile`** – `site_key` (required, the `data-sitekey` starting `0x4AAAA…`), `action`, `cdata` (only if the widget sets them; must match exactly), `proxy`, `user_agent` (optional). Submit the token as `cf-turnstile-response`. Tokens are single-use and expire after about 300 seconds.
**`solve_cloudflare_challenge`** – `site_key` (required: in the Network tab, open the `challenges.cloudflare.com/…/new/normal` request and copy the segment after `/rch/xxxxx/`), `proxy` (required), `user_agent`, `accept_language` (optional). Replay `cf_clearance` through the same proxy with the returned `user_agent`.
**`solve_recaptcha_v3`** – `site_key` (required, usually `6L…`), `proxy` (required), `action` (defaults to `verify`; match `grecaptcha.execute`), `enterprise` (`true` if the page loads `enterprise.js`), `user_agent`.
**`solve_kasada`** – `p_js_path` (path of the Kasada `p.js` script, e.g. `/149e9513-…/2d206a39-…/p.js`), `fp_host`, `tl_host` (required), `cd_constant`, `user_agent`, `ua_version` (Chrome major version), `proxy` (optional). Replay the returned `x-kpsdk-*` headers with the same User-Agent.
**`solve_akamai`** – `user_agent` and `proxy` (required). Replay the cookies with the same User-Agent and proxy.
**`get_balance`** – no arguments. Limited to 30 calls per minute per IP.
Rate-limited (429) and temporarily unavailable (503) responses are retried automatically, up to twice with backoff. Timeouts are not retried, so a solve is never sent twice.
## Configuration
| Variable | Required | Description |
|---|---|---|
| `NSLSOLVER_API_KEY` | yes | Your API key. `NSL_API_KEY` is also accepted. |
| `NSLSOLVER_API_URL` | no | API base URL. Defaults to `https://api.nslsolver.com`. |
The server starts without a key, so clients can list its tools. Tool calls then return a clear error until a key is set.
## Development
```bash
git clone https://github.com/NSLSolver/NSLSolver-MCP.git
cd NSLSolver-MCP
npm install
npm run build
npx @modelcontextprotocol/inspector -e NSLSOLVER_API_KEY=YOUR_API_KEY node dist/index.js
```
## Links
- Website and pricing: https://nslsolver.com
- MCP setup guide: https://nslsolver.com/mcp
- API documentation: https://docs.nslsolver.com
- SDKs: [Python](https://github.com/NSLSolver/NSLSolver-SDK-Python), [JavaScript](https://github.com/NSLSolver/NSLSolver-SDK-Javascript), [Go](https://github.com/NSLSolver/NSLSolver-SDK-Golang), [PHP](https://github.com/NSLSolver/NSLSolver-SDK-PHP), [Java](https://github.com/NSLSolver/NSLSolver-SDK-Java), [C#](https://github.com/NSLSolver/NSLSolver-SDK-CSharp), [Rust](https://github.com/NSLSolver/NSLSolver-SDK-Rust)
- Support: [Discord](https://discord.gg/A6HuxJamsd) · [Telegram](https://t.me/NSLSolver)
Use NSLSolver only on sites you are authorized to automate, and in line with their terms and applicable law. See the [terms](https://nslsolver.com/terms).
## License
MIT
TDQS
Scored across 6 tools
Each solve_* tool targets a distinct bot-protection product (Turnstile, Cloudflare interstitial, Kasada, Akamai, reCAPTCHA v3), and the descriptions call out the specific identifying parameters (data-sitekey 0x4AAAA vs 0x challenge widget id, 6L sitekeys, p.js paths). get_balance is clearly a non-solving account tool, so there is no realistic misselection.
All tools use a predictable snake_case verb_noun pattern (get_balance, solve_turnstile, solve_recaptcha_v3), with the provider as the noun for every solver. No camelCase or style mixing.
Six tools is well-scoped: one account/credential-info tool plus one tool per supported captcha product, with no redundant or filler entries. Each tool maps to a genuinely different solving backend.
The surface covers account status and five major solvers with full parameter detail, but common captcha families (reCAPTCHA v2 checkbox, hCaptcha, FunCaptcha, image/text captcha) have no corresponding tool. There is also no usage/history or task-polling operation, so agents handling those cases hit a dead end.