Mistral Codestral
About
Integrates with Mistral's code-related APIs to enable code completion, bug fixing, and test generation across multiple programming languages.
Details
- Author
- bsmi021
- Repository
- bsmi021/mcp-mistral-codestral
- GitHub stars
- 2
- Categories
- Productivity, Developer Tools, Design, Workplace, AI, Communication, Frontend, API, Automation
Jump to
- Code completion with Mistral's Codestral model
- Bug detection and fixing
- Automated test generation
- Support for multiple programming languages
- Rate limiting and error handling
- Resource access for code files
- Fill-in-the-Middle (FIM) completion support
- Comprehensive input validation using Zod schemas
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Mistral CodestralCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Add your Mistral API key to the .env file:
MISTRAL_API_KEY=your_api_key_here
code_completion
Process code for completion, bug fixing, or test generation. Parameters: code (string, required), language (string, optional), task (string, required) - options are 'complete' for code completion, 'fix' for bug fixing, 'test' for test generation, 'fim' for Fill-in-the-Middle completion.
code_completion
Process code for completion, bug fixing, or test generation:
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mistral codestral": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
Mistral Codestral MCP Server
An MCP server implementation for the Mistral Codestral API, providing code completion, bug fixing, and test generation capabilities.
Features
- Code completion with Mistral's Codestral model
- Bug detection and fixing
- Automated test generation
- Support for multiple programming languages
- Rate limiting and error handling
- Resource access for code files
- Fill-in-the-Middle (FIM) completion support
- Comprehensive input validation using Zod schemas
Installation
1. Clone this repository
2. Install dependencies:
npm install
3. Copy .env.example to .env and add your Mistral API key:
cp .env.example .env
4. Build the project:
npm run build
Usage
Start the server:
npm start
Configuration
Add your Mistral API key to the .env file:
MISTRAL_API_KEY=your_api_key_here
Available Tools
code_completion
Process code for completion, bug fixing, or test generation:
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





