MCP Server LogoMCP Server
MCPsCategoriesDirectorySubmit
Submit
MCPsCategoriesDirectorySubmit
Submit

MCP Servers

A curated list of MCP Servers, featuring Awesome MCP Servers and Claude MCP integration.

Contact Us

[email protected]

About

Privacy PolicyTerms of Service

Resources

Model Context ProtocolMCP Starter GuideClaude MCP Servers

Community

GitHub

© 2025 mcpserver.cc © 2025 MCP Server. All rights reserved.

Privacy PolicyTerms of Service
  1. Home
  2. /Categories
  3. /Developer Tools
  4. /Mcp Mistral Codestral
Mcp Mistral Codestral

Mcp Mistral Codestral

Created by bsmi021•2 days ago
Visit Website

Developer Tools
mcpmistralcodestralcode-completionbug-fixing

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:

Parameters:

  • code (string, required): The code to process
  • language (string, optional): Programming language
  • task (string, required): One of:
    • "complete": Code completion
    • "fix": Bug fixing
    • "test": Test generation
    • "fim": Fill-in-the-Middle completion

API Details

The server supports two main Mistral models:

  • codestral-latest: Default model for code-related tasks
  • codestral-mamba-latest: Alternative model with Mamba architecture

Features include:

  • Automatic rate limiting (100ms minimum between requests)
  • 30-second timeout for API calls
  • Comprehensive error handling for API responses
  • Response validation using Zod schemas
  • Automatic extraction of code blocks from responses
  • Debug logging for API interactions

Development

Run in development mode with auto-reloading:

npm run dev

Run tests:

npm test

Error Handling

The server implements comprehensive error handling:

  • API errors are properly caught and formatted
  • Rate limiting is implemented
  • Input validation using Zod schemas
  • Proper error propagation to clients
  • Specific error messages for common issues:
    • Authentication failures
    • Rate limit exceeded
    • Server errors
    • Invalid input validation

Resource Access

The server provides access to code files through the file://code resource URI, allowing integration with workspace files.

License

MIT

Prerequisites

  • •Familiarity with the server domain
  • •Basic understanding of related technologies
  • •Knowledge of Developer Tools

Recommended Server

Code Explainer Mcp

Code Explainer Mcp

A Cloudflare Worker that serves as an MCP (Model Context Protocol) server for code explanation. It analyzes and explains code with a comprehensive breakdown of structure and functionality.

Mcp Jira Python

Mcp Jira Python

JIRA MCP Server Implementation in Python

Mcp Youtube Sheets

Mcp Youtube Sheets

View more → →

Details

Created

August 27, 2025

Last Updated

August 27, 2025

Category

Developer Tools

Author

bsmi021

Share

More Server

Vibe Worldbuilding Mcp

Vibe Worldbuilding Mcp

Vibe Worldbuilding

Perplexity Mcp Server

Perplexity Mcp Server

This Model Context Protocol (MCP) server enables LLMs like Claude to perform internet research using the Perplexity API. It provides real-time, up-to-date information with source citations.

System_information_mcp

System_information_mcp

DevEnvInfoServer - Cursor MCP Server for Development Environment Information

Mcp Github Issue

Mcp Github Issue

An MCP server that provides LLMs with the ability to use GitHub issues as tasks