Access Mistral AI models for text generation and code completion.
## Mistral AI MCP Server: European Excellence in AI The **Mistral AI MCP Server** connects Google Antigravity to Mistral's powerful open-weight and commercial models. This French AI company delivers models that compete with the best while offering excellent cost-performance ratios. ### Why Mistral MCP? Mistral offers unique advantages: - **Open Weights**: Mistral 7B, Mixtral available openly - **Competitive Performance**: Matches larger models - **Efficiency**: Better cost per performance - **European**: EU-based, GDPR-friendly - **Antigravity Native**: Seamless integration ### Key Features #### 1. Chat Completions ```python from mistralai import Mistral client = Mistral(api_key="your-key") response = client.chat.complete( model="mistral-large-latest", messages=[ {"role": "user", "content": "Explain microservices architecture"} ] ) print(response.choices[0].message.content) ``` #### 2. Function Calling ```python tools = [{ "type": "function", "function": { "name": "get_weather", "description": "Get weather for a location", "parameters": { "type": "object", "properties": { "location": {"type": "string"}, "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]} }, "required": ["location"] } } }] response = client.chat.complete( model="mistral-large-latest", messages=[{"role": "user", "content": "Weather in Paris?"}], tools=tools ) ``` #### 3. Embeddings ```python # Generate embeddings for semantic search response = client.embeddings.create( model="mistral-embed", inputs=["Hello world", "Bonjour le monde"] ) embeddings = [e.embedding for e in response.data] ``` ### Configuration ```json { "mcpServers": { "mistral-ai": { "command": "npx", "args": ["-y", "@anthropic/mcp-mistral"], "env": { "MISTRAL_API_KEY": "your-api-key" } } } } ``` ### Use Cases **Code Generation**: Mistral Codestral excels at code generation and understanding across languages. **Multilingual**: Strong performance across European languages for international applications. **Cost Optimization**: Achieve quality results with smaller, more efficient models. The Mistral AI MCP Server brings European AI excellence to Antigravity development.
{
"mcpServers": {
"mistral-ai": {}
}
}