Universal Mistral MCP Adapter
@itisaevalex
Basic information
About Universal Mistral MCP Adapter
Adapter project allowing Mistral models to interact with the modelcontextprotocol for standardized agentic capabilities.
Overview
What is Universal Mistral MCP Adapter?
A TypeScript adapter that enables Mistral AI models to use tools provided by any Model Context Protocol (MCP) servers. It runs on Node.js (v16 or higher) and is intended for developers who want to connect their Mistral applications to multiple external tools through a standardized protocol.
How to use Universal Mistral MCP Adapter?
Install dependencies, create a .env file with your Mistral API key and model name, and create an mcp-config.json file to define MCP servers. Build the project with npm run build. The easiest way to use the adapter is the interactive chatbot (npm run chat). You can also use it programmatically by creating a McpChatbot instance and calling initialize(), sendMessage(), and disconnect().
Key features of Universal Mistral MCP Adapter
- Connect to any MCP server through a simple configuration file.
- Use tools from multiple MCP servers simultaneously with Mistral AI models.
- Dynamic tool discovery and registration.
- Interactive conversation support with tool usage.
- Conversation history management.
- Robust error handling and fallback strategies.
Use cases of Universal Mistral MCP Adapter
- Ask a Mistral model about weather by connecting to a weather MCP server.
- Perform mathematical calculations via a math MCP tool.
- Integrate database query services as tools for a conversational AI.
- Combine multiple external data sources in a single chat session.
FAQ from Universal Mistral MCP Adapter
What does this adapter do?
It acts as a bridge between Mistral AI models and multiple MCP servers, allowing the models to discover and use tools from those servers dynamically.
How do I add a new MCP server?
Simply update the mcp-config.json file with the server’s name, type, command, arguments, and an optional description.
How can I use the adapter programmatically?
Import McpChatbot from the built package, create an instance with configuration options, call initialize(), then use sendMessage() to interact, and finally disconnect().
What are the prerequisites?
Node.js v16 or higher, npm/yarn, a Mistral API key, and one or more MCP servers to connect to.
What license is this project under?
The project is licensed under the MIT License.
More Agent Frameworks MCP clients
Unified MCP Client Library
mcp-usemcp-use is the easiest way to interact with mcp servers with custom agents
chatmcp
daodao97ChatMCP is an AI chat client implementing the Model Context Protocol (MCP).
Tester Client for Model Context Protocol (MCP)
apifyModel Context Protocol (MCP) Client for Apify's Actors
Novu - Connect your AI agents & products to customers
NovuNovu is the open-source communication layer for AI agents. An agent built on Novu connects to MCP servers like Linear, GitHub, and Notion for its tools, then talks with your users on Slack, Microsoft Teams, WhatsApp, Tel
MCP Client Chatbot
cgoinglove🚀 Open source MCP Client: A Multi-provider AI Chatbot Solution
Comments