NSLSolver MCP Server

The official Model Context Protocol server for NSLSolver. 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.
| 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. Your key is active immediately, and verifying your email adds 100 free solves. Copy the key from the dashboard.
2. Add the server to your client
Requires Node.js 18 or newer. Replace YOUR_API_KEY with your key.
Claude Code
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):
{
"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):
{
"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:
{
"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
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
Use NSLSolver only on sites you are authorized to automate, and in line with their terms and applicable law. See the terms.
License
MIT