Skip to main content

For agents & operators

MCP Server

The catalogue is also a Model Context Protocol server. Point any MCP client at the endpoint below and the 16 deterministic operations appear as callable tools — the same registry the REST Agent API and the browser studios are built on.

Endpoint

URL (POST, JSON-RPC 2.0)

https://www.thefreeaitools.com/api/v1/mcp

Transport

  • Streamable HTTP with plain JSON responses (no SSE).
  • Stateless: every request is independent — no session, no storage.
  • Protocol versions negotiated: 2025-06-18, 2025-03-26, 2024-11-05.

Claude Desktop / Claude Code (remote server)

{
  "mcpServers": {
    "thefreeaitools": {
      "url": "https://www.thefreeaitools.com/api/v1/mcp"
    }
  }
}

Cursor / clients without remote MCP

{
  "mcpServers": {
    "thefreeaitools": {
      "command": "npx",
      "args": ["mcp-remote", "https://www.thefreeaitools.com/api/v1/mcp"]
    }
  }
}

Implemented methods

MethodBehaviour
initialize Handshake. Returns the negotiated protocol version, capabilities and server info.
ping Liveness check. Responds with an empty result.
tools/list The full catalogue (same as /api/v1/tools), each tool with its inputSchema.
tools/call Runs one tool with {name, arguments}; failures come back as isError: true content.
notifications/initialized Accepted with an empty 204 response (JSON-RPC notification).

Unknown methods answer -32601; malformed JSON answers -32700. Tool failures are returned inside the result (isError: true) so the agent can read the message, as the MCP spec requires.

Example session

1 · initialize

{"jsonrpc":"2.0","id":1,
 "method":"initialize",
 "params":{"protocolVersion":"2025-06-18",
   "capabilities":{},
   "clientInfo":{"name":"my-agent","version":"0.1"}}}

2 · tools/list

{"jsonrpc":"2.0","id":2,
 "method":"tools/list"}

3 · tools/call

{"jsonrpc":"2.0","id":3,
 "method":"tools/call",
 "params":{"name":"crypto.hash",
   "arguments":{"text":"hi",
     "algorithm":"sha256"}}}

Operating the deployment

Self-hosting notes (Hostinger shared hosting compatible)

  • Stack: PHP 8.1+ with Apache + mod_rewrite. No Node.js, no database, no composer on the server.
  • Deploy by upload: php php-app/tools/pack.php builds an upload-ready zip (PHP only, no Node.js). Upload the resulting php-app/ contents to public_html.
  • Health checks: GET /api/v1/tools (list), POST /api/v1/mcp with {"jsonrpc":"2.0","id":1,"method":"ping"}, and GET /.well-known/ai-tools.json.
  • Load: endpoints are stateless and cheap (pure PHP, no I/O); shared hosting handles hobby traffic comfortably. If you need hard rate limits, put them at the reverse-proxy/CDN layer.
  • Privacy: request payloads are processed and discarded; they are never written to disk and never included in logs.
REST

Agent API reference

Plain REST over the same catalogue.

LIVE

Try the playground

Run any operation and inspect the raw JSON.