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
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
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_chatmistral_chat_streammistral_embedmistral_tool_callcodestral_fim
Vision and audio:
mistral_visionmistral_ocrvoxtral_transcribevoxtral_speak
Agents and classifiers:
mistral_agentmistral_moderatemistral_classify
Files and batch:
files_uploadfiles_listfiles_getfiles_deletefiles_signed_urlbatch_createbatch_listbatch_getbatch_cancel
MCP-native utility:
mcp_sample- delegates generation to the client model via MCP sampling
Resources (2)
mistral://models- accepted aliases and live model catalogmistral://voices- live voice catalog for Voxtral TTS
Prompts (6)
French curated prompts:
french_invoice_reminderfrench_meeting_minutesfrench_email_replyfrench_commit_messagefrench_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
McpServerAPI withinputSchema,outputSchema, and annotations on every tool - Dual transport support: stdio by default, Streamable HTTP for remote deployments
- Structured outputs everywhere:
structuredContentplus 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- default127.0.0.1MCP_HTTP_PORT- default3333MCP_HTTP_PATH- default/mcpMCP_HTTP_TOKEN- optional bearer tokenMCP_HTTP_ALLOWED_ORIGINS- optional comma-separated allow-listMCP_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_ocron this PDF, then runfrench_meeting_minuteson 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:
- Unit tests for tools, resources, prompts, transport, audio, agents, files, batch, and sampling
- Contract tests for tool metadata and MCP-facing guarantees
- Live API tests against the real Mistral API when
MISTRAL_API_KEYis set - 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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。