Mistral OCR MCP Server with per-call billing via SettleGrid.
Extract text and structured content from documents and images using Mistral AI's OCR API.
npm install
cp .env.example .env # Add your SettleGrid API key
npm run dev| Method | Description | Cost |
|---|---|---|
ocr_url(url: string, model?: string, include_image_base64?: boolean) |
Run OCR on a document or image from a URL | 5¢ |
ocr_base64(data: string, media_type: string, model?: string, include_image_base64?: boolean) |
Run OCR on a base64-encoded document or image | 5¢ |
url(string, required) — Publicly accessible URL of the document or image to processmodel(string) — Mistral OCR model to use (default: mistral-ocr-latest)include_image_base64(boolean) — Whether to include base64-encoded images in the response (default: false)
data(string, required) — Base64-encoded content of the document or imagemedia_type(string, required) — MIME type of the document (e.g. image/png, image/jpeg, application/pdf)model(string) — Mistral OCR model to use (default: mistral-ocr-latest)include_image_base64(boolean) — Whether to include base64-encoded images in the response (default: false)
| Variable | Required | Description |
|---|---|---|
SETTLEGRID_API_KEY |
Yes | Your SettleGrid API key from settlegrid.ai |
MISTRAL_API_KEY |
Yes | Mistral AI API key from https://console.mistral.ai/api-keys |
- Provider: Mistral AI
- Base URL: https://api.mistral.ai
- Auth: API key required
- Docs: https://docs.mistral.ai/api/#tag/ocr
docker build -t settlegrid-mistral-ocr .
docker run -e SETTLEGRID_API_KEY=sg_live_xxx -p 3000:3000 settlegrid-mistral-ocrClick the "Deploy with Vercel" button above, or:
npm run build
vercel --prodMIT - see LICENSE
Built with SettleGrid — The Settlement Layer for the AI Economy