KosmoKrator

documents

Mindee MCP Integration for Vercel AI SDK

Connect Mindee to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

5 functions 1 read 4 write API key auth

Connect Mindee to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Mindee MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-mindee": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=mindee",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=mindee --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Mindee instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Mindee Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Mindee integration catalog.

MCP toolSource functionTypeDescription
integration__mindee__mindee_parse_invoice mindee.mindee_parse_invoice Write Parse an invoice document (PDF or image) and extract structured data including supplier, line items, totals, dates, and tax details.
integration__mindee__mindee_parse_receipt mindee.mindee_parse_receipt Write Parse an expense receipt (PDF or image) and extract structured data including merchant, line items, totals, dates, and category.
integration__mindee__mindee_parse_passport mindee.mindee_parse_passport Write Parse a passport document (PDF or image) and extract structured data including full name, date of birth, nationality, passport number, and expiry date.
integration__mindee__mindee_parse_custom mindee.mindee_parse_custom Write Parse a document using a custom Mindee API endpoint. Requires an endpoint_id from your custom model trained in the Mindee API builder.
integration__mindee__mindee_get_current_user mindee.mindee_get_current_user Read Get the current authenticated Mindee user's account information — useful for verifying credentials and connection.

Related Mindee Pages