Mistral MCP Server
A TypeScript-based MCP server that provides two tools for chatting with Mistral AI models, supporting both text-only conversations and image+text inputs.
speakeasy-api
README
<div align="center"> <a href="https://www.speakeasy.com/" target="_blank"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://github.com/user-attachments/assets/21dd5d3a-aefc-4cd3-abee-5e17ef1d4dad"> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/user-attachments/assets/0a747f98-d228-462d-9964-fd87bf93adc5"> <img width="100px" src="https://github.com/user-attachments/assets/21dd5d3a-aefc-4cd3-abee-5e17ef1d4dad#gh-light-mode-only" alt="Speakeasy"> </picture> </a> <h1>Speakeasy</h1> <p>Build APIs your users love ❤️ with Speakeasy</p> <div> <a href="https://speakeasy.com/docs/create-client-sdks/" target="_blank"><b>Docs Quickstart</b></a> // <a href="https://join.slack.com/t/speakeasy-dev/shared_invite/zt-1cwb3flxz-lS5SyZxAsF_3NOq5xc8Cjw" target="_blank"><b>Join us on Slack</b></a> </div> </div>
Mistral MCP server example
This is a TypeScript-based MCP server that provides two tools for chatting with Mistral. It is a basic example of how to create a server that can be used with the Model Context Protocol (MCP).
Blog post
This repository is part of a blog post by Speakeasy: Building an MCP server for Mistral.
Requirements
- Node.js (tested on v20.17.10)
- An MCP client that supports tools. We recommend the Claude desktop application or the Cline VSCode extension.
Mistral API key
To interact with the Mistral AI platform, you'll need an API key. You can get one by signing up at mistral.ai.
Set your API key as an environment variable. Create a copy of .env.example
and rename it .env
.
cp .env.example .env
open .env
Now update the .env
file with your Mistral API key:
MISTRAL_API_KEY="YOUR_MISTRAL_API_KEY"
Tools
This server provides two tools.
For chatting with Mistral using text input, the mistral_chat_text
tool:
- Takes a model and an array of text inputs
- Returns a text response from Mistral.
For chatting with Mistral using text and image input, the mistral_chat_image
tool:
- Takes a model and an array of text and image inputs
- Only accepts images hosted on a public URL
- Returns a text response from Mistral
Development
Install dependencies:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
Installation
To use this server with the Claude desktop app, add the following server config to your Claude config file:
- On MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"Mistral MCP Server": {
"command": "node",
"args": [
// Update this path to the location of the built server
"/Users/speakeasy/server-mistral/build/index.js"
],
"env": {
// Update this with your Mistral API key
"MISTRAL_API_KEY": "YOUR_MISTRAL_API_KEY"
}
}
}
}
Debugging
Since MCP servers communicate through standard input/output streams (stdio), debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspector
The MCP Inspector will provide a URL for accessing debugging tools in your browser.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Excel MCP Server
A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.
Playwright MCP Server
Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Apple MCP Server
Enables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.