Cover image
Try Now
2025-01-06

3 years

Works with Finder

3

Github Watches

2

Github Forks

2

Github Stars

Speakeasy

Speakeasy

Build APIs your users love ❤️ with Speakeasy

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

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.

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • ANGEL LEON
  • A world class elite tech co-founder entrepreneur, expert in software development, entrepreneurship, marketing, coaching style leadership and aligned with ambition for excellence, global market penetration and worldy perspectives.

  • https://tovuti.be
  • Oede knorrepot die vasthoudt an de goeie ouwe tied van 't boerenleven

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • OffchainLabs
  • Aller la mise en œuvre de la preuve de la participation Ethereum

  • huahuayu
  • Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.

  • deemkeen
  • Contrôlez votre MBOT2 avec un combo d'alimentation: MQTT + MCP + LLM

  • zhaoyunxing92
  • 本项目是一个钉钉 MCP (Protocole de connecteur de message) 服务 , 提供了与钉钉企业应用交互的 API 接口。项目基于 Go 语言开发 , 支持员工信息查询和消息发送等功能。

  • pontusab
  • La communauté du curseur et de la planche à voile, recherchez des règles et des MCP

    Reviews

    5 (1)
    Avatar
    user_o6rw5BO9
    2025-04-16

    I've been using the mistral-mcp-server-example by speakeasy-api, and it’s incredibly efficient and user-friendly. The implementation process was seamless, and it integrates perfectly with my existing systems. Highly recommend for anyone needing a robust server example in their project! Check it out here: https://github.com/speakeasy-api/mistral-mcp-server-example.