Mistral MCP サーバーの例
これはTypeScriptベースのMCPサーバーで、Mistralとのチャットツールを2つ提供します。これは、Model Context Protocol (MCP)で使用できるサーバーを作成する方法の基本的な例です。
ブログ投稿
このリポジトリは、Speakeasy のブログ投稿「Mistral 用の MCP サーバーの構築」の一部です。
要件
- Node.js (v20.17.10でテスト済み)
- ツールをサポートするMCPクライアント。ClaudeデスクトップアプリケーションまたはCline VSCode拡張機能をお勧めします。
ミストラルAPIキー
Mistral AIプラットフォームを利用するには、APIキーが必要です。mistral.aiにサインアップすることで取得できます。
APIキーを環境変数として設定します.env.example
のコピーを作成し、名前を.env
変更します。
次に、Mistral API キーを使用して.env
ファイルを更新します。
ツール
このサーバーは 2 つのツールを提供します。
テキスト入力を使用して Mistral とチャットするには、 mistral_chat_text
ツールを使用します。
- モデルとテキスト入力の配列を受け取ります
- Mistral からのテキスト応答を返します。
テキストと画像の入力を使用して Mistral とチャットするには、 mistral_chat_image
ツールを使用します。
- モデルとテキストおよび画像の入力の配列を受け取ります
- 公開 URL でホストされている画像のみを受け入れます
- ミストラルからのテキスト応答を返します
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
このサーバーを Claude デスクトップ アプリで使用するには、次のサーバー構成を Claude 構成ファイルに追加します。
- MacOSの場合:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows の場合:
%APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーは標準入出力ストリーム(stdio)を介して通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
MCP インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
TypeScript ベースの MCP サーバーは、Mistral AI モデルとチャットするための 2 つのツールを提供し、テキストのみの会話と画像 + テキスト入力の両方をサポートします。
Related Resources
Related MCP Servers
- -securityFlicense-qualityAn 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 -1TypeScript
YaVendió Toolsofficial
-security-license-qualityAn 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- -securityAlicense-qualityA 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 -1PythonApache 2.0
- -securityAlicense-qualityAn MCP-based service that enables AI models to seamlessly interact with Feishu (Lark) platform, supporting document reading and chatbot messaging capabilities.Last updated -3963TypeScriptMIT License