Mistral AI · Capability

Mistral AI OCR API — OCR

Mistral AI OCR API — OCR. 1 operations. Lead operation: Mistral AI Process a document with OCR. Self-contained Naftiko capability covering one Mistral business surface.

Run with Naftiko MistralOCR

What You Can Do

POST
Processdocument — Mistral AI Process a document with OCR
/v1/ocr

MCP Tools

mistral-ai-process-document-ocr

Mistral AI Process a document with OCR

Capability Spec

ocr-ocr.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Mistral AI OCR API — OCR
  description: 'Mistral AI OCR API — OCR. 1 operations. Lead operation: Mistral AI Process a document with OCR. Self-contained
    Naftiko capability covering one Mistral business surface.'
  tags:
  - Mistral
  - OCR
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MISTRAL_API_KEY: MISTRAL_API_KEY
capability:
  consumes:
  - type: http
    namespace: ocr-ocr
    baseUri: https://api.mistral.ai/v1
    description: Mistral AI OCR API — OCR business capability. Self-contained, no shared references.
    resources:
    - name: ocr
      path: /ocr
      operations:
      - name: processdocument
        method: POST
        description: Mistral AI Process a document with OCR
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MISTRAL_API_KEY}}'
  exposes:
  - type: rest
    namespace: ocr-ocr-rest
    port: 8080
    description: REST adapter for Mistral AI OCR API — OCR. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/ocr
      name: ocr
      description: REST surface for ocr.
      operations:
      - method: POST
        name: processdocument
        description: Mistral AI Process a document with OCR
        call: ocr-ocr.processdocument
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ocr-ocr-mcp
    port: 9090
    transport: http
    description: MCP adapter for Mistral AI OCR API — OCR. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: mistral-ai-process-document-ocr
      description: Mistral AI Process a document with OCR
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ocr-ocr.processdocument
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.