Skip to main content
Glama

Mistral MCP Server

A comprehensive MCP (Model Context Protocol) server providing full access to the Mistral AI API. This server enables AI assistants like Claude to interact with all Mistral AI capabilities including chat completion, embeddings, fine-tuning, agents, OCR, audio transcription, and more.

Features

Chat & Completion

  • Chat Completion - Full chat with function calling, JSON mode, vision support

  • FIM Completion - Fill-in-the-middle code completion with Codestral

  • Embeddings - Generate text embeddings for semantic search

  • Agents Completion - Run completions with pre-configured agents

Model Management

  • List all available models with capabilities

  • Get detailed model information

  • Delete fine-tuned models

  • Update, archive, and unarchive fine-tuned models

File Management

  • Upload files for fine-tuning, batch processing, or OCR

  • List, download, and delete files

  • Generate signed URLs for file access

Fine-Tuning

  • Create fine-tuning jobs with customizable hyperparameters

  • Monitor job status and progress

  • Support for dry-run validation

  • Cancel and start jobs

Batch Processing

  • Create batch jobs for bulk API calls

  • Monitor job progress and status

  • Support for chat, embeddings, and FIM endpoints

Media Processing

  • OCR - Extract text from documents and images

  • Content Moderation - Check text and chat for safety issues

  • Classification - Classify text with fine-tuned classifiers

  • Audio Transcription - Transcribe audio with Voxtral

Agents & Conversations (Beta)

  • Create and manage agents with custom instructions

  • Manage conversations with agents

  • Full conversation history support

Libraries (Beta)

  • Create document libraries for RAG

  • Upload and manage documents

  • Share libraries with users and workspaces

Related MCP server: Meshy MCP Server

Installation

# Clone the repository
git clone https://github.com/firstcastsolutions/mistral-mcp-server.git
cd mistral-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Set the required environment variable:

export MISTRAL_API_KEY="your-mistral-api-key"

Usage

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "mistral": {
      "command": "node",
      "args": ["/path/to/mistral-mcp-server/dist/index.js"],
      "env": {
        "MISTRAL_API_KEY": "your-api-key"
      }
    }
  }
}

Standalone

export MISTRAL_API_KEY="your-api-key"
npm start

Available Tools (40+)

  • Chat completion, FIM, embeddings, agents

  • Model management (list, get, delete)

  • File management (upload, download, delete)

  • Fine-tuning jobs

  • Batch processing

  • OCR, moderation, classification

  • Audio transcription

  • Agents and conversations (Beta)

  • Document libraries (Beta)

License

MIT - First Cast Solutions LLC

Available Tools

43 tools
mistral_agents_completionMistral Agents CompletionC
Read-only

Run completions using pre-configured Mistral Agents.

Inputs: agent_id (required), messages (required), max_tokens, temperature.

mistral_append_conversationAppend to ConversationC

Add messages to an existing conversation.

Inputs: messages (required), conversation_id (required).

mistral_cancel_batch_jobCancel Batch JobC
Idempotent

Cancel a batch job.

Inputs: job_id (required).

mistral_cancel_fine_tuning_jobCancel Fine-Tuning JobA
Idempotent

Cancel a running fine-tuning job.

Inputs: job_id (required).

mistral_chat_completionMistral Chat CompletionB
Read-only

Generate chat completions using Mistral AI models with function calling and vision support.

Inputs: messages (required), model, tools, top_p, +8 more.

mistral_classify_textClassify TextC
Read-onlyIdempotent

Classify text using a fine-tuned classifier.

Inputs: model (required), inputs (required).

mistral_create_agentCreate AgentC

Create a new Mistral agent.

Inputs: name (required), model (required), tools, description, +1 more.

mistral_create_batch_jobCreate Batch JobC

Create a new batch processing job.

Inputs: model (required), endpoint (required), input_files (required), metadata.

mistral_create_conversationCreate ConversationC

Create a new conversation with an agent.

Inputs: messages (required), model, agent_id.

mistral_create_fine_tuning_jobCreate Fine-Tuning JobC

Create a new fine-tuning job.

Inputs: model (required), training_files (required), suffix, dry_run, +4 more.

mistral_create_libraryCreate LibraryC

Create a new document library.

Inputs: name (required), description.

mistral_delete_agentDelete AgentC
DestructiveIdempotent

Delete an agent.

Inputs: agent_id (required).

mistral_delete_conversationDelete ConversationC
DestructiveIdempotent

Delete a conversation.

Inputs: conversation_id (required).

mistral_delete_fileDelete Mistral FileC
DestructiveIdempotent

Delete a file from your account.

Inputs: file_id (required).

mistral_delete_libraryDelete LibraryC
DestructiveIdempotent

Delete a library.

Inputs: library_id (required).

mistral_delete_modelDelete Fine-Tuned ModelB
DestructiveIdempotent

Delete a fine-tuned model (permanent).

Inputs: model_id (required).

mistral_download_fileDownload Mistral FileC
Read-onlyIdempotent

Download file contents.

Inputs: file_id (required).

mistral_embeddingsMistral EmbeddingsB
Read-onlyIdempotent

Generate text embeddings for semantic search and similarity.

Inputs: input (required), model, encoding_format.

mistral_fim_completionMistral FIM CompletionC
Read-only

Fill-in-the-Middle code completion using Codestral.

Inputs: prompt (required), stop, model, top_p, +5 more.

mistral_get_agentGet AgentC
Read-onlyIdempotent

Get details of an agent.

Inputs: agent_id (required).

mistral_get_batch_jobGet Batch JobC
Read-onlyIdempotent

Get details of a batch job.

Inputs: job_id (required).

mistral_get_conversationGet ConversationC
Read-onlyIdempotent

Get conversation details.

Inputs: conversation_id (required).

mistral_get_conversation_historyGet Conversation HistoryC
Read-onlyIdempotent

Get full conversation history.

Inputs: conversation_id (required).

mistral_get_fileGet Mistral File DetailsC
Read-onlyIdempotent

Get details about a specific file.

Inputs: file_id (required).

mistral_get_fine_tuning_jobGet Fine-Tuning JobB
Read-onlyIdempotent

Get details of a fine-tuning job.

Inputs: job_id (required).

mistral_get_libraryGet LibraryC
Read-onlyIdempotent

Get library details.

Inputs: library_id (required).

mistral_get_modelGet Mistral Model DetailsC
Read-onlyIdempotent

Get detailed information about a specific model.

Inputs: model_id (required).

mistral_get_signed_urlGet Signed URLB
Read-only

Get a temporary download URL for a file.

Inputs: file_id (required), expiry.

mistral_list_agentsList AgentsC
Read-onlyIdempotent

List all Mistral agents.

Inputs: page, page_size.

mistral_list_batch_jobsList Batch JobsB
Read-onlyIdempotent

List batch processing jobs.

Inputs: page, model, status, page_size, +1 more.

mistral_list_conversationsList ConversationsC
Read-onlyIdempotent

List all conversations.

Inputs: page, page_size.

mistral_list_filesList Mistral FilesC
Read-onlyIdempotent

List files uploaded to your Mistral account.

Inputs: page, purpose, page_size.

mistral_list_fine_tuning_jobsList Fine-Tuning JobsC
Read-onlyIdempotent

List fine-tuning jobs.

Inputs: page, model, status, page_size, +1 more.

mistral_list_librariesList LibrariesB
Read-onlyIdempotent

List all document libraries.

Inputs: no named parameters.

mistral_list_modelsList Mistral ModelsB
Read-onlyIdempotent

List all available Mistral models with capabilities.

Inputs: no named parameters.

mistral_moderate_chatModerate ChatB
Read-onlyIdempotent

Check chat messages for safety issues.

Inputs: messages (required), model.

mistral_moderate_textModerate TextC
Read-onlyIdempotent

Check text for safety issues.

Inputs: inputs (required), model.

mistral_ocrMistral OCRB
Read-onlyIdempotent

Extract text from documents and images using OCR.

Inputs: no named parameters.

mistral_start_fine_tuning_jobStart Fine-Tuning JobC

Start a validated fine-tuning job.

Inputs: job_id (required).

mistral_transcribe_audioTranscribe AudioC
Read-onlyIdempotent

Transcribe audio files using Voxtral.

Inputs: filename (required), file_content (required), model, prompt, +1 more.

mistral_update_agentUpdate AgentC

Update an existing agent.

Inputs: agent_id (required), name, description, instructions.

mistral_update_libraryUpdate LibraryC

Update a library.

Inputs: library_id (required), name, description.

mistral_upload_fileUpload File to MistralA

Upload a file for fine-tuning, batch processing, or OCR.

Inputs: filename (required), file_content (required), purpose.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 43 tools

    Disambiguation4/5

    Tools are mostly distinct, covering different resources (agents, conversations, libraries, files, jobs, models) and operations. Minor potential confusion exists between mistral_get_conversation and mistral_get_conversation_history, and between mistral_download_file and mistral_get_signed_url, but descriptions clarify the differences.

    Naming Consistency4/5

    Consistent mistral_ prefix and snake_case throughout, with a predictable verb_noun structure for most tools. A few tools (e.g., mistral_embeddings, mistral_ocr, mistral_chat_completion) use noun-based names, slightly breaking the pattern but remaining readable.

    Tool Count3/5

    With 43 tools, the set is heavy; while the breadth of the Mistral platform justifies many tools, it exceeds typical MCP server scope. Some consolidation might be possible (e.g., file download and signed URL), but each tool maps to a distinct API endpoint.

    Completeness4/5

    Covers CRUD for agents, conversations, libraries, files, and job management, plus core AI operations like completions, embeddings, OCR, moderation, and transcription. Notable gap: no tools to manage documents within libraries (add/remove/list documents), and some lifecycle operations (e.g., batch job deletion) are missing.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers