NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Model Context Protocol: a standard way to give assistants tools

The Model Context Protocol (MCP) is an open protocol, introduced by Anthropic in late 2024, that defines how AI applications discover and call external tools, read resources and use prompt templates.

The problem it addresses

Before MCP, every AI application had its own way to plug in tools. A tool written for one assistant had to be rewritten for the next. MCP sets one interface: a tool provider writes an MCP server once, and any MCP capable client (desktop assistants, coding tools, agent frameworks) can use it. Adoption has spread across many vendors and open source projects; check the current specification for the latest details, since the protocol is still evolving.

The parts

  • Host: the AI application the user works in.
  • Client: the connector inside the host that speaks MCP to one server.
  • Server: a program that exposes capabilities.

Servers offer three kinds of capability. Tools are functions the model can call, each with a name, a description and a JSON Schema for its input. Resources are readable data such as files or records. Prompts are reusable templates. Messages use JSON-RPC 2.0, carried over standard input and output for local servers or over HTTP for remote ones.

How a tool call flows

When the host starts, the client asks the server which tools it has. The tool list goes to the model as part of its context. When the model decides a tool would help, the host sends a tools/call request with arguments; the server runs the function and returns content, usually text or structured data. Hosts typically ask the user to approve tool calls, at least the first time.

GateSolver and MCP

GateSolver does not publish an MCP server of its own. The API is small and plain (create a task, poll for the result, check the balance), so you can write your own MCP tool around it in a short script with one of the official SDKs that the MCP project maintains for several languages. A useful design:

  • A solve_captcha tool that takes a task type, the page URL and the site key, creates the task, polls internally every three seconds and returns the token or the error code.
  • A get_balance tool that returns the remaining balance, so the assistant can warn before it runs out.
  • The API key read from an environment variable set in the host configuration, never passed as a tool argument the model can see.

Polling inside the tool matters: the model gets one result instead of a stream of "still processing" messages. A Turnstile token usually arrives under 3 seconds, well within typical tool timeouts, and a failed task costs nothing. The MCP server guide shows a complete example you can adapt.

Security notes

An MCP server runs with whatever access you give it. Install only servers you trust or wrote yourself, keep secrets out of tool descriptions and outputs, and limit what each tool can do. A solving tool should solve CAPTCHAs on pages the user is allowed to automate, nothing else. For background on how agents use such tools, see AI browser agent and LangChain.

Common questions

Who created the Model Context Protocol?

Anthropic introduced it as an open protocol in late 2024, and many other vendors and projects have since adopted it.

What message format does MCP use?

JSON-RPC 2.0, sent over standard input and output for local servers or over HTTP for remote ones.

Does GateSolver offer an MCP server?

No. You can write your own MCP tool around the GateSolver API in a short script; our guide shows how.

What is the difference between an MCP tool and a resource?

A tool is a function the model can call to do something; a resource is data the client can read.

Where should the API key live in an MCP setup?

In an environment variable set in the host configuration, not in tool arguments or descriptions the model can read.

Keep reading