Skip to main content
Glama

Mistral MCP Server

Mistral MCP サーバーの例

これはTypeScriptベースのMCPサーバーで、Mistralとのチャットツールを2つ提供します。これは、Model Context Protocol (MCP)で使用できるサーバーを作成する方法の基本的な例です。

ブログ投稿

このリポジトリは、Speakeasy のブログ投稿「Mistral 用の MCP サーバーの構築」の一部です。

要件

ミストラルAPIキー

Mistral AIプラットフォームを利用するには、APIキーが必要です。mistral.aiにサインアップすることで取得できます。

APIキーを環境変数として設定します.env.exampleのコピーを作成し、名前を.env変更します。

cp .env.example .env open .env

次に、Mistral API キーを使用して.envファイルを更新します。

MISTRAL_API_KEY="YOUR_MISTRAL_API_KEY"

ツール

このサーバーは 2 つのツールを提供します。

テキスト入力を使用して Mistral とチャットするには、 mistral_chat_textツールを使用します。

  • モデルとテキスト入力の配列を受け取ります
  • Mistral からのテキスト応答を返します。

テキストと画像の入力を使用して Mistral とチャットするには、 mistral_chat_imageツールを使用します。

  • モデルとテキストおよび画像の入力の配列を受け取ります
  • 公開 URL でホストされている画像のみを受け入れます
  • ミストラルからのテキスト応答を返します

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

このサーバーを Claude デスクトップ アプリで使用するには、次のサーバー構成を Claude 構成ファイルに追加します。

  • MacOSの場合: ~/Library/Application Support/Claude/claude_desktop_config.json
  • 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" } } } }

デバッグ

MCPサーバーは標準入出力ストリーム(stdio)を介して通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

MCP インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

TypeScript ベースの MCP サーバーは、Mistral AI モデルとチャットするための 2 つのツールを提供し、テキストのみの会話と画像 + テキスト入力の両方をサポートします。

  1. ブログ投稿
    1. 要件
      1. ミストラルAPIキー
        1. ツール
          1. 発達
            1. インストール
              1. デバッグ
            2. ライセンス

              Related MCP Servers

              • -
                security
                F
                license
                -
                quality
                An MCP server that enables AI assistants like Claude to interact with Anki flashcard decks, allowing users to create, manage, and update flashcards through natural language conversations.
                Last updated -
                1
                TypeScript
              • -
                security
                -
                license
                -
                quality
                An MCP-based messaging system that allows AI systems to interact with various messaging platforms through standardized tools for sending text, images, documents, buttons, and alerts.
                Last updated -
                Python
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol (MCP) server that enables real-time, interactive AI chat with Selector AI through a streaming-capable server and Docker-based client communicating via stdin/stdout.
                Last updated -
                1
                Python
                Apache 2.0
              • -
                security
                A
                license
                -
                quality
                An MCP-based service that enables AI models to seamlessly interact with Feishu (Lark) platform, supporting document reading and chatbot messaging capabilities.
                Last updated -
                396
                3
                TypeScript
                MIT License
                • Linux
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/speakeasy-api/mistral-mcp-server-example'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server