DocumentationAPI v1
MCP Server • Getting Started

MCP Getting Started

Connect your MCP client to ByeCap, confirm live account connectivity without spending credits, and run your first image-recognition or token task. For the complete tool catalog and supported services, see Tools & Coverage.

1. Choose Hosted HTTP or Install Locally

You can connect directly to ByeCap's Hosted Streamable HTTP endpoint (https://mcp.byecap.org/mcp) with zero local installation, or install the standalone local STDIO package for Node.js or Python.

Python Package (PyPI / uvx)
python -m pip install --upgrade byecap-mcp
python -m pip show byecap-mcp
python -m byecap_mcp --help

# Or launch directly without global install via uvx:
uvx --upgrade byecap-mcp --help
Node.js Package (npm / npx)
npx -y @byecap/mcp --help

# Or install globally:
npm install -g @byecap/mcp
byecap-mcp --help

2. Connect Your MCP Client

Replace YOUR_BYECAP_API_KEY with an API key from your ByeCap Dashboard. When using a local Python virtual environment on Windows, macOS, or Linux, run python -c "import sys; print(sys.executable)" to obtain the exact interpreter path.

Claude Code CLI (Hosted Streamable HTTP)
claude mcp add --transport http byecap https://mcp.byecap.org/mcp \
  --header "Authorization: Bearer YOUR_BYECAP_API_KEY"
Claude Desktop, Cursor & Windsurf (mcp.json — Hosted)
{
  "mcpServers": {
    "byecap": {
      "url": "https://mcp.byecap.org/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_BYECAP_API_KEY"
      }
    }
  }
}
Local STDIO — Python (Claude Desktop / Cursor / VS Code)
{
  "mcpServers": {
    "byecap": {
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["-m", "byecap_mcp"],
      "env": {
        "BYECAP_API_KEY": "YOUR_BYECAP_API_KEY"
      }
    }
  }
}
Codex (.codex/config.toml)
[mcp_servers.byecap]
command = "/absolute/path/to/.venv/bin/python"
args = ["-m", "byecap_mcp"]

[mcp_servers.byecap.env]
BYECAP_API_KEY = "YOUR_BYECAP_API_KEY"
Security tip: Never commit real API keys into shared Git repositories. Keep BYECAP_API_KEY in your private user-level MCP config or restrict the key with per-key spend caps and IP allowlists in the dashboard.

3. Confirm the Connection (Zero Cost)

Send this verification prompt first to verify tool discovery and live account authentication without creating a paid task:

Verification Prompt
List the task types supported by ByeCap, look up the inputs and result fields for ImageToTextTask, and check my account balance connection.
Prompt to SendExpected Result
“Use the ByeCap balance tool and tell me whether the connection works.”get_balance returns your live USD wallet balance (or remaining package quota for package keys). A $0.00 balance still confirms valid auth; top up before running paid tasks.
“What inputs does ImageToTextTask require, and which field returns the answer?”The client invokes get_task_schema and returns the required body field and solution.text output without billing credits.
“Read the characters in this test captcha image.”Submits a live recognition request via solve_captcha (single-RTT) or solve_task and returns solution.text.

4. Run a Live Image-Recognition Task

Attach a sample captcha image or provide a local file path to your agent. Note that the body parameter expects raw Base64 image bytes (without a data:image/...;base64, prefix).

Example Live Recognition Prompt
Use ByeCap's ImageToTextTask (solve_captcha) to read the attached captcha image. Pass the Base64-encoded image in body and return the task ID and solution.text.

5. Pair with a Browser Automation Server (Optional)

ByeCap's MCP server handles challenge detection, schema lookup, task solving, and injection snippet generation. Pair it with a browser MCP (such as Playwright MCP or Chrome DevTools MCP) when your agent needs to open live web pages, inject tokens, and verify form submission:

Step 1
Inspect Page

Call detect_captcha on page HTML or URL.

Step 2
Solve Task

Call solve_task or solve_captcha with extracted sitekey.

Step 3
Inject Result

Fetch ready code from get_injection_snippet.

Step 4
Verify Acceptance

Submit form and confirm website acceptance.

6. Transport & Startup Modes

ModeEndpoint / Command
Hosted Streamable HTTPhttps://mcp.byecap.org/mcp
Local Node.js STDIOnpx -y @byecap/mcp
Local Python STDIOpython -m byecap_mcp or uvx byecap-mcp
Connected cleanly? Explore all 16 tools or diagnose edge cases.