Mistral ai MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Mistral ai MCP or direct API to generate text, summarize documents, classify content, and answer complex questions through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Mistral ai Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Mistral ai now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Append to conversationTool to append new entries to an existing conversation in Mistral AI.
Create AgentTool to create a new AI agent with custom configuration (Beta).
Create Agents CompletionTool to generate completions using a Mistral AI agent with specific instructions and tools.
Create Audio TranscriptionTranscribe audio files to text using Mistral AI's Voxtral models.
Create Chat CompletionGenerate conversational responses from Mistral AI models.
Create Chat ModerationTool to classify chat content for moderation purposes across 9 categories.
Create EmbeddingsTool to generate vector embeddings for input text using Mistral AI embedding models.
Create FIM CompletionGenerate code completions using fill-in-the-middle functionality.
Create libraryTool to create a new document library.
Create library shareCreate or update sharing permissions for a library.
Create ModerationTool to classify text content for moderation purposes across 9 categories.
Create OCRExtract text and structured data from images and documents using Mistral AI's OCR capabilities.
Create or Update Agent AliasTool to create or update an agent version alias.
Delete agentPermanently deletes an agent by its ID (Beta feature).
Delete ConversationTool to delete a conversation by its ID (Beta).
Delete FileDelete a file by its ID from Mistral AI.
Delete libraryPermanently deletes a library and all of its documents from Mistral AI.
Delete library documentPermanently deletes a document from a Mistral AI library.
Delete library shareRemove sharing permissions for a library from a user, workspace, or organization.
Download FileDownload the content of a previously uploaded file from Mistral AI.
Get AgentTool to retrieve details of a specific Mistral AI agent by its ID.
Get Agent VersionRetrieve a specific version of an agent (Beta).
Get ConversationTool to retrieve details of a specific conversation.
Get Conversation HistoryRetrieve the full history of a conversation in Mistral AI.
Get Conversation MessagesRetrieve all messages from a Mistral AI conversation.
Get document extracted text URLRetrieve a signed URL to download the extracted text from a document in a Mistral AI library.
Get document signed URLGet a signed URL to download a document from a Mistral AI library.
Get Document StatusRetrieve the processing status of a document in a Mistral AI library.
Get Document Text ContentRetrieve the extracted text content of a specific document from a Mistral AI library (Beta).
Get File Signed URLGet a time-limited signed URL for downloading a file from Mistral AI.
List Fine Tuning JobsList fine-tuning jobs with optional filtering and pagination.
Get libraryRetrieve detailed information about a specific library.
Get Library DocumentRetrieve metadata for a specific document in a Mistral AI library.
Get ModelTool to retrieve detailed information about a specific Mistral AI model by its ID.
List agent aliasesRetrieve all aliases for an agent version.
List AgentsTool to list all configured agents (Beta).
List Agent VersionsList all versions of a specific agent.
List Batch JobsTool to retrieve a list of all batch jobs with optional filtering and pagination.
List ConversationsList all created conversations (Beta).
List FilesTool to list all files available to the user.
List librariesList all document libraries accessible to your organization.
List Library DocumentsList all documents in a Mistral AI document library.
List library sharesList all sharing permissions for a document library.
List ModelsTool to retrieve all available Mistral AI models including base models and fine-tuned models.
Reprocess documentReprocess a document in a Mistral AI library (Beta).
Restart ConversationTool to restart a conversation from a specific point (Beta).
Retrieve FileRetrieve metadata of a file uploaded to Mistral AI.
Start ConversationTool to start a new conversation with a Mistral AI agent or base model.
Update AgentTool to update an existing agent's configuration.
Update agent versionTool to update the current version of an agent (Beta).
Update libraryTool to update an existing document library's properties.
Update library documentUpdate the metadata of a document in a Mistral AI library.
Upload FileUpload a file to Mistral AI for use in fine-tuning, batch processing, or OCR.
Upload Library DocumentUpload a document to a Mistral AI library for use with RAG-enabled agents.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Mistral ai tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Generate a summary of recent advancements in open-source language models.')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Mistral ai Integration

  • Supports both Mistral ai MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for text generation, summarization, and advanced NLP tasks

Managed Auth

  • Centralized API key management with secure storage
  • Easy credential rotation, scoping, and audit
  • No more hard-coding keys or worrying about leaks

Agent Optimized Design

  • Schema-tuned tools designed for high success rates with language models
  • Comprehensive logs and error tracking for every API call
  • Continuously improving reliability based on real-world usage

Enterprise Grade Security

  • Role-based permissions for agent and user access to Mistral ai
  • Least-privilege API key usage and granular audit trails
  • Full visibility and control for compliance and review

Frequently Asked Questions

Do I need my own developer credentials to use Mistral ai with Composio?

Yes, Mistral ai requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.