MCP Server

Model Context Protocol

Connect Claix from Cursor, Claude, Smithery, n8n, Lovable and other MCP clients.

MCP Server

Claix as an MCP server

Endpoint

MCPhttps://www.claix.dev/mcp

Claix exposes a Model Context Protocol (MCP) server so AI assistants and automation tools can run extraction, schema listing, and Agent mode without hand-written REST integrations.

The public server URL is https://www.claix.dev/mcp. Authentication uses your Claix API key in the x-api-key header (or the optional api_key argument per tool when headers are not supported).

Tools use dot notation naming (claix.schemas.list, claix.extract.pdf, …) and return structuredContent with success, data, and error.

1. Compatible clients

Any MCP-capable program can connect to Claix. Common options in production and development:

  • Cursor
  • Claude Desktop
  • Claude Code
  • Windsurf
  • Cline
  • Continue
  • Zed
  • Smithery
  • Lovable
  • Replit Agent
  • ChatGPT (with MCP connectors)
  • n8n
  • Make
  • Zapier (via HTTP/MCP)
  • LangGraph / LangChain
  • Any MCP client with Streamable HTTP or SSE

IDEs and coding agents (Cursor, Windsurf, Cline…) typically use JSON config with the server URL and headers. Smithery and Streamable HTTP clients send JSON-RPC directly to POST /mcp. Claude Desktop usually uses SSE via mcp-remote (GET /mcp + POST /mcp/message).

2. Authentication

Recommended — HTTP header on every request:

x-api-key: <YOUR_API_KEY>

In Smithery, configure the header with x-from: { "header": "x-api-key" } so users enter their key when connecting. The API key is optional in the config schema when the client already sends x-api-key.

Per-tool fallback: many tools accept api_key in arguments when the MCP client cannot send custom headers.

3. Transport modes

ModeTypical useHow to connect
Streamable HTTPSmithery, Cursor, modern clientsPOST /mcp with JSON-RPC (initialize, tools/list, tools/call). Header Accept: application/json, text/event-stream
Legacy SSEClaude Desktop, mcp-remoteGET /mcp (SSE stream) + POST /mcp/message?sessionId=… for messages

Both modes are active on the same base URL. The server auto-detects the request type.

Static metadata for scanning (Smithery, clients): https://www.claix.dev/.well-known/mcp/server-card.json

4. Recommended workflow

  1. Call claix.schemas.list to get schema_id, type, and whether Agent mode is enabled.
  2. Use claix.extract.* for structured extraction or claix.agent.* when is_agent_mode=true.
  3. Send the file as file_base64 (Base64 or data URL). The server rebuilds multipart requests to the Claix REST API.
  4. Read the response in structuredContent.data (typed JSON) or the text in content.

5. Available tools

After connecting, call tools/list for the full catalog with inputSchema, outputSchema, and annotations. Main tools:

ToolDescription
claix.schemas.listLists account schemas (id, name, type, is_agent_mode, agent_definition). Call first to discover schema_id.
claix.extract.excelExcel/CSV → typed JSON (POST /api/excel-json). First sheet only.
claix.extract.pdfPDF → typed JSON (POST /api/pdf-json). Text or scanned, max 15 MB.
claix.extract.docDocument (.docx, .txt, .md, .rtf) → JSON (POST /api/doc-json).
claix.extract.imageImage (JPEG, PNG, WebP, HEIC) → JSON (POST /api/img-json).
claix.convert.json_to_excelJSON → Excel .xlsx (POST /api/json-excel). Returns file_base64.
claix.agent.excelExcel/CSV + Agent mode → data[] and agent_data (POST /agent/excel-json).
claix.agent.pdfPDF + Agent mode → data[] and agent_data (POST /agent/pdf-json).
claix.agent.docDocument + Agent mode (POST /agent/doc-json).
claix.agent.imageImage + Agent mode (POST /agent/img-json).

6. Workflow prompts

The server exposes reusable prompts via prompts/list:

PromptDescription
workflow.discover-and-extractDiscover schemas via claix.schemas.list and extract JSON with claix.extract.*.
workflow.agent-document-analysisRun claix.agent.* when the schema has is_agent_mode enabled.
workflow.invoice-pdfInvoice PDF workflow using claix.extract.pdf.

7. Resources

Documentation resources available via resources/list:

URIDescription
claix://docs/mcpMCP connection guide and tool catalog.
claix://docs/openapiClaix OpenAPI specification URL.
claix://docs/toolsJSON catalog of all MCP tools.

8. Smithery example

One-click install:

npx -y @smithery/cli run info-f4xz/claix

Manual configuration:

{
  "mcpUrl": "https://www.claix.dev/mcp",
  "headers": {
    "x-api-key": "YOUR_API_KEY"
  }
}

Directory listing: smithery.ai/server/info-f4xz/claix

9. Cursor example

Add to Cursor MCP settings (Settings → MCP):

{
  "mcpServers": {
    "claix": {
      "url": "https://www.claix.dev/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

10. Claude Desktop example

{
  "mcpServers": {
    "claix": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://www.claix.dev/mcp",
        "--header",
        "x-api-key:YOUR_API_KEY"
      ]
    }
  }
}

11. n8n and automation

In n8n, use an HTTP Request node with POST https://www.claix.dev/mcp, JSON-RPC headers, and body {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"claix.extract.pdf","arguments":{"schema_id":"…","file_base64":"…"}}}. Community MCP nodes also work — point the base URL to Claix and pass x-api-key.

Request examples

# Instalar vía Smithery
npx -y @smithery/cli run info-f4xz/claix

# Inicializar sesión MCP (Streamable HTTP)
curl -X POST "https://www.claix.dev/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"client","version":"1.0"}}}'

# Listar tools (nombres claix.* con outputSchema y annotations)
curl -X POST "https://www.claix.dev/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# Llamar claix.schemas.list
curl -X POST "https://www.claix.dev/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"claix.schemas.list","arguments":{}}}'