mistral-mcp

mistral-mcp

mistral-mcp is a TypeScript MCP server (spec 2025-11-25) that exposes the full Mistral AI API surface: 22 tools: chat, OCR, audio (Voxtral), vision, agents, embeddings, moderation, classification, files, batch, sampling, FIM (Codestral), streaming 2 resources: mistral://models, mistral://voices 6 curated prompts (French + English) with MCP argument completion Dual transport: stdio (default) + Str

Category
Visit Server

README

mistral-mcp

MCP server exposing Mistral AI capabilities to any MCP client - Claude Code, Cursor, Zed, Windsurf, Claude Desktop.

Version française : README.fr.md

version license node typescript mcp-spec tools resources prompts tests

Why

Mistral has strong models for French, code, OCR, moderation, audio, and agent-style workflows, but most MCP-enabled IDEs default to Anthropic or OpenAI. mistral-mcp gives those Mistral capabilities a clean MCP surface so you can route the right subtask to the right model without rebuilding your agent loop.

The goal of this repo is not "yet another thin wrapper". It aims to be a robust, maintainable MCP server with explicit schemas, predictable outputs, transport flexibility, and good test coverage.

Current surface (v0.4.0)

Tools (22)

Core generation:

  • mistral_chat
  • mistral_chat_stream
  • mistral_embed
  • mistral_tool_call
  • codestral_fim

Vision and audio:

  • mistral_vision
  • mistral_ocr
  • voxtral_transcribe
  • voxtral_speak

Agents and classifiers:

  • mistral_agent
  • mistral_moderate
  • mistral_classify

Files and batch:

  • files_upload
  • files_list
  • files_get
  • files_delete
  • files_signed_url
  • batch_create
  • batch_list
  • batch_get
  • batch_cancel

MCP-native utility:

  • mcp_sample - delegates generation to the client model via MCP sampling

Resources (2)

  • mistral://models - accepted aliases and live model catalog
  • mistral://voices - live voice catalog for Voxtral TTS

Prompts (6)

French curated prompts:

  • french_invoice_reminder
  • french_meeting_minutes
  • french_email_reply
  • french_commit_message
  • french_legal_summary

English curated prompt:

  • codestral_review

Prompt enum arguments are wrapped with completable(), so MCP clients can call prompt argument completion via completion/complete.

Highlights

  • High-level McpServer API with inputSchema, outputSchema, and annotations on every tool
  • Dual transport support: stdio by default, Streamable HTTP for remote deployments
  • Structured outputs everywhere: structuredContent plus text fallback
  • MCP sampling support through mcp_sample
  • Prompt completion support for enum-like prompt arguments
  • Resources and prompts registered alongside tools, not bolted on later
  • Retry/backoff and request timeout on the Mistral SDK client

Transport

Stdio

Default mode. This is what Claude Code and most local MCP clients use.

node dist/index.js

Streamable HTTP

Enable with --http or MCP_TRANSPORT=http.

MCP_TRANSPORT=http node dist/index.js

Relevant env vars:

  • MCP_HTTP_HOST - default 127.0.0.1
  • MCP_HTTP_PORT - default 3333
  • MCP_HTTP_PATH - default /mcp
  • MCP_HTTP_TOKEN - optional bearer token
  • MCP_HTTP_ALLOWED_ORIGINS - optional comma-separated allow-list
  • MCP_HTTP_STATELESS=1 - stateless session mode

/healthz is intentionally public and does not touch the MCP server.

Install

git clone https://github.com/Swih/mistral-mcp.git
cd mistral-mcp
npm install
npm run build

Set your API key:

export MISTRAL_API_KEY=your_key_here

Or use .env at the repo root. Never commit it.

Use in Claude Code

claude mcp add mistral -- node /absolute/path/to/mistral-mcp/dist/index.js

Example prompt:

Use mistral_ocr on this PDF, then run french_meeting_minutes on the extracted text.

Develop

npm run dev
npm run build
npm run lint
npm test
npm run inspector

Test strategy

The suite currently contains 148 tests across 4 layers:

  1. Unit tests for tools, resources, prompts, transport, audio, agents, files, batch, and sampling
  2. Contract tests for tool metadata and MCP-facing guarantees
  3. Live API tests against the real Mistral API when MISTRAL_API_KEY is set
  4. Stdio end-to-end tests against the built server

Without MISTRAL_API_KEY, the local default is 139 passing plus 9 gated live/stdio tests.

Project layout

mistral-mcp/
|-- src/
|   |-- index.ts
|   |-- transport.ts
|   |-- tools.ts
|   |-- tools-fn.ts
|   |-- tools-vision.ts
|   |-- tools-audio.ts
|   |-- tools-agents.ts
|   |-- tools-files.ts
|   |-- tools-batch.ts
|   |-- tools-sampling.ts
|   |-- resources.ts
|   `-- prompts.ts
|-- test/
|-- examples/
|-- .github/workflows/ci.yml
|-- package.json
`-- tsconfig.test.json

Status

v0.4.0 — shipped. See CHANGELOG.md for the full diff against v0.3.0:

  • shared helpers, live model + voice catalogs, contract tests
  • vision + OCR
  • audio transcription + speech
  • agents + moderation + classification
  • files + batch APIs
  • Streamable HTTP transport + MCP sampling
  • 5 French curated prompts + 1 English prompt + prompt argument completion

Examples

Runnable scripts live in examples/. See examples/README.md.

License

MIT Copyright Dayan Decamp

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured