mistral-mcp

v1.0.0
io.github.Swih/mistral-mcp Checked 22 hours ago Published 2 months ago

Mistral MCP server: extract invoices and documents from text, Markdown or OCR into typed JSON.

Values you need

VariableWhat it is
MISTRAL_API_KEYrequired secret Mistral API key from https://console.mistral.ai/. Model-specific usage and rate limits depend on the organization tier.
MISTRAL_BASE_URLoptional Optional OpenAI-compatible endpoint (vLLM, TGI, LiteLLM, internal gateway). Setting it routes every call there instead of api.mistral.ai and switches the server to the self-hosted profile.
MISTRAL_MCP_PROFILEoptional Tool surface to expose: core (default), admin, workflows, metier-docs, self-hosted. Overrides what MISTRAL_BASE_URL would infer.
MISTRAL_DEFAULT_MODELoptional Default chat and structured-extraction model when a call omits model. Useful for account-specific availability and self-hosted model ids.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mistral-mcp -e 'MISTRAL_API_KEY=<MISTRAL_API_KEY>' -- npx -y mistral-mcp@1.0.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mistral-mcp": {
      "args": [
        "-y",
        "mistral-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "MISTRAL_API_KEY": "<MISTRAL_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mistral-mcp": {
      "args": [
        "-y",
        "mistral-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "MISTRAL_API_KEY": "<MISTRAL_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "MISTRAL_API_KEY",
      "id": "mistral-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mistral-mcp": {
      "args": [
        "-y",
        "mistral-mcp@1.0.0"
      ],
      "command": "npx",
      "env": {
        "MISTRAL_API_KEY": "${input:mistral-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mistral-mcp]
command = "npx"
args = ["-y", "mistral-mcp@1.0.0"]
env = { "MISTRAL_API_KEY" = "<MISTRAL_API_KEY>" }

For AI agents

  1. Ask the user for: MISTRAL_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: mistral_chat, codestral_fim, mistral_vision, mistral_ocr, voxtral_transcribe, process_document.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json