Skip to content

settlegrid/settlegrid-mistral-ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

settlegrid-mistral-ocr

Mistral OCR MCP Server with per-call billing via SettleGrid.

Powered by SettleGrid License: MIT Deploy with Vercel

Extract text and structured content from documents and images using Mistral AI's OCR API.

Quick Start

npm install
cp .env.example .env   # Add your SettleGrid API key
npm run dev

Methods

Method Description Cost
ocr_url(url: string, model?: string, include_image_base64?: boolean) Run OCR on a document or image from a URL
ocr_base64(data: string, media_type: string, model?: string, include_image_base64?: boolean) Run OCR on a base64-encoded document or image

Parameters

ocr_url

  • url (string, required) — Publicly accessible URL of the document or image to process
  • 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)

ocr_base64

  • data (string, required) — Base64-encoded content of the document or image
  • media_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)

Environment Variables

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

Upstream API

Deploy

Docker

docker build -t settlegrid-mistral-ocr .
docker run -e SETTLEGRID_API_KEY=sg_live_xxx -p 3000:3000 settlegrid-mistral-ocr

Vercel

Click the "Deploy with Vercel" button above, or:

npm run build
vercel --prod

License

MIT - see LICENSE


Built with SettleGrid — The Settlement Layer for the AI Economy

About

MCP server for Mistral OCR with SettleGrid billing. Extract text and structured content from documents and images using Mistral AI's OCR API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors