other
Mistralai MCP, CLI, and Lua Integration for AI Agents
Mistralai integration docs for AI agents: MCP gateway setup, Mistralai CLI commands, Lua API reference, credentials, and function schemas.
7 functions 3 read 4 write API key auth
Mistralai for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
mistralai- route_slug
mistralai- package
mistralai- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Mistralai CLIHeadless setup and direct function calls. Mistralai MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Mistralai MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Mistralai.
Claude Code Mistralai MCP setup for Claude Code. Cursor Mistralai MCP setup for Cursor. Codex Mistralai MCP setup for Codex. OpenAI Agents Mistralai MCP setup for OpenAI Agents SDK. Claude Agent SDK Mistralai MCP setup for Claude Agent SDK. Vercel AI SDK Mistralai MCP setup for Vercel AI SDK. LangChain Mistralai MCP setup for LangChain. LangGraph Mistralai MCP setup for LangGraph. CrewAI Mistralai MCP setup for CrewAI. MCP clients Mistralai MCP setup for Generic MCP Clients.
Mistralai CLI Matrix
Use these pages for direct Mistralai CLI workflows in scripts, CI, cron, and agent wrappers.
CI Mistralai CLI for CI. Cron Jobs Mistralai CLI for cron jobs. Shell Scripts Mistralai CLI for shell scripts. Headless Automation Mistralai CLI for headless automation. Coding Agents Mistralai CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
mistralai.mistralai_chat | Write write | 4 | Generate a chat completion using a MistralAI model. Send a list of messages (with roles "system", "user", or "assistant") and receive a model-generated response. Use temperature to control creativity (0 = deterministic, 1 = creative). |
mistralai.mistralai_create_embedding | Write write | 2 | Generate text embeddings using a MistralAI embedding model. Converts text into numerical vectors for semantic search, similarity comparison, or clustering. Supports single strings or arrays of strings. |
mistralai.mistralai_list_models | Read read | 0 | List all models available in your MistralAI account. Returns model IDs, creation timestamps, and capabilities. Use this to discover which models you can use for chat completions or embeddings. |
mistralai.mistralai_finetune | Write write | 4 | Create a fine-tuning job on MistralAI. Upload training data and select a base model to create a custom fine-tuned model. The job runs asynchronously — check the returned job ID for status updates. |
mistralai.mistralai_list_agents | Read read | 0 | List all MistralAI agents in your account. Returns agent IDs, names, models, and descriptions. Agents are AI assistants with custom instructions and tools. |
mistralai.mistralai_create_agent | Write write | 4 | Create a new MistralAI agent. Specify a name, model, and instructions to define how the agent should behave. Agents are persistent AI assistants that can be used for conversations with custom personalities and capabilities. |
mistralai.mistralai_get_current_user | Read read | 0 | Get information about the currently authenticated MistralAI user. Returns account details, subscription tier, and usage information. |