跳转到主要内容
开发者 · MCP

NSLSolver MCP 服务器

NSLSolver 官方 Model Context Protocol 服务器。将其添加到 Claude Code、Claude Desktop、Cursor、VS Code 或 Windsurf,你的 AI 智能体在浏览、抓取或测试时即可自行求解 Cloudflare Turnstile、Cloudflare Challenge、Kasada、Akamai 与 reCAPTCHA v3。

nslsolver-mcp v1.0.0开源 · MIT 在 GitHub 查看npm 包

2 分钟完成配置

  1. 1.获取 API Key

    创建免费账户。密钥立即可用,验证邮箱后额外获得 100 次免费求解。在控制台中复制密钥。

  2. 2.将服务器添加到客户端

    选择你的客户端并粘贴配置,把 YOUR_API_KEY 替换为你的密钥。需要 Node.js 18 或更高版本。

    Terminal
    claude mcp add nslsolver -e NSLSOLVER_API_KEY=YOUR_API_KEY -- npx -y nslsolver-mcp
    显示所有客户端的配置
    Claude Code · Terminal
    claude mcp add nslsolver -e NSLSOLVER_API_KEY=YOUR_API_KEY -- npx -y nslsolver-mcp
    Claude Desktop · claude_desktop_config.json
    {
      "mcpServers": {
        "nslsolver": {
          "command": "npx",
          "args": ["-y", "nslsolver-mcp"],
          "env": { "NSLSOLVER_API_KEY": "YOUR_API_KEY" }
        }
      }
    }
    Cursor · ~/.cursor/mcp.json
    {
      "mcpServers": {
        "nslsolver": {
          "command": "npx",
          "args": ["-y", "nslsolver-mcp"],
          "env": { "NSLSOLVER_API_KEY": "YOUR_API_KEY" }
        }
      }
    }
    VS Code · .vscode/mcp.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 · ~/.codeium/windsurf/mcp_config.json
    {
      "mcpServers": {
        "nslsolver": {
          "command": "npx",
          "args": ["-y", "nslsolver-mcp"],
          "env": { "NSLSOLVER_API_KEY": "YOUR_API_KEY" }
        }
      }
    }
  3. 3.向智能体提问

    用自然语言描述需求。智能体会选择合适的工具,并在下一次请求中使用返回的令牌、Cookie 或请求头。

    • “为 https://example.com/login 获取一个 Turnstile 令牌,sitekey 是 0x4AAAAAAA8vwvf7nF7pKCe8。”
    • “这个页面显示 "Just a moment..."。请通过我的代理 http://user:pass@1.2.3.4:8080 获取 cf_clearance Cookie。”
    • “我的 NSLSolver 余额还剩多少?”

    想看完整教程?请阅读博客文章为你的 AI 智能体配上验证码求解器。

服务器提供的工具

每个工具对应一项 NSLSolver 服务。只对成功的求解计费,失败与被限流的调用免费。

工具功能平均耗时每 1,000 次
solve_turnstileCloudflare Turnstile 组件 → 令牌~250 ms$0.80
solve_cloudflare_challengeCloudflare "Just a moment..." 质询 → cf_clearance Cookie + User-Agent~2.5 s$1.00
solve_recaptcha_v3reCAPTCHA v3 与 Enterprise → 令牌~4.5 s$1.00
solve_kasadaKasada(KPSDK)→ x-kpsdk-* 请求头~6 s$1.50
solve_akamaiAkamai Bot Manager(测试版)→ _abck 及会话 Cookie~9 s$2.00
get_balance余额、可用类型与速率限制(免费)––

MCP 服务器常见问题

什么是 NSLSolver MCP 服务器?

它是一个小型开源程序(npm 包 nslsolver-mcp),使用 Model Context Protocol 协议。它为 AI 智能体提供六个调用 NSLSolver API 的工具:每种支持的验证码类型一个,外加一个余额查询。

支持哪些 AI 客户端?

任何能运行本地 stdio 服务器的 MCP 客户端:Claude Code、Claude Desktop、Cursor、启用 GitHub Copilot 智能体模式的 VS Code、Windsurf、Cline、Zed 等。所有客户端使用同一条 npx 命令。

费用是多少?

服务器本身免费,采用 MIT 许可。求解按 NSLSolver 标准费率计费,Turnstile 低至每 1,000 次 $0.80,且只对成功的求解收费。新账户验证邮箱后可获得 100 次免费求解。

智能体需要代理吗?

Turnstile 与 Kasada 不需要。Cloudflare Challenge、Akamai 与 reCAPTCHA v3 需要代理,因为返回的 Cookie 或评分与出口 IP 绑定。请在提示中以 protocol://user:pass@host:port 格式提供代理。

我的 API Key 安全吗?

密钥保存在你本机的客户端配置中,服务器只会将其发送到 api.nslsolver.com。在 VS Code 中可以使用输入提示,让密钥保存在安全的密钥存储中,而不是写入文件。

为你的智能体配上验证码求解器

创建免费账户,复制 API Key,粘贴一段配置即可。100 次免费求解,无需信用卡。