Docs / More

MCP client

zpi-sdk/mcp is a zero-dependency JSON-RPC client for the remote Zapi MCP server (Streamable HTTP, protocol 2025-06-18, session via mcp-session-id). RPC failures throw ZpiMcpError.

mcp.ts
import { createMcpClient } from "zpi-sdk/mcp"; const mcp = createMcpClient({  apiKey: "zpi_...",  baseURL: "https://api.zapi.ink",});const tools = await mcp.listTools();const result = await mcp.callTool("run_scraper", { /* ... */ });
import { createMcpClient } from "zpi-sdk/mcp"; const mcp = createMcpClient({  apiKey: "zpi_...",  baseURL: "https://api.zapi.ink",});const tools = await mcp.listTools();const result = await mcp.callTool("run_scraper", { /* ... */ });

Connecting an AI client (Claude, Cursor, VS Code, …) instead? See the MCP server docs — tools reference, per-client setup, and limits.

Edit this page on GitHubWas this page helpful? ·