API cloud
Hosted MCP endpoint
Use the zn analyzer as a remote MCP tool over Streamable HTTP, with your API key.
Esta página aún no está traducida. Estás leyendo la versión en inglés.
The hosted endpoint exposes the same analyzer as the REST API as a native MCP tool. Use it when your agent runtime prefers remote MCP servers over local stdio ones.
Endpoint
POST https://api.usezn.com/mcp
Authorization: Bearer $ZN_API_KEY
Content-Type: application/json
Accept: application/json, text/event-stream
Transport: Streamable HTTP (JSON-RPC over POST). Authentication: the same Bearer key as REST. The manifest is published at /.well-known/mcp.json.
Discover and call the tool
{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}
The analyze tool takes one required string, input, and returns the same verdict as POST /analyze.
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": { "name": "analyze", "arguments": { "input": "text from an untrusted source" } }
}
Calls count against your plan like REST calls. For a free, offline alternative, run the local MCP server.