Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Mistral Ai

БесплатноПоддерживается

MCP server for Mistral AI providing OCR, TTS, and STT capabilities via Voxtral.

GitHubEmbed

Описание

MCP server for Mistral AI providing OCR, TTS, and STT capabilities via Voxtral.

README

Mistral AI MCP server + CLI. OCR documents, TTS text-to-speech, STT speech-to-text via Voxtral.

Features

  • OCR - Extract text from PDFs, DOCX, PPTX, XLSX, images
  • TTS - Generate speech with preset voices or voice cloning
  • STT - Transcribe audio (batch or realtime)

Install

npm install -g mistral-ai-mcp

Requires Node.js 18+.

CLI Usage

mistral-ai ocr <file-or-url>    # Extract text from documents/images
mistral-ai tts <text>            # Generate speech from text
mistral-ai stt <audio>           # Transcribe audio to text
mistral-ai config ...            # Manage configuration

OCR Examples

# Local PDF
mistral-ai ocr ./document.pdf > output.md

# From URL
mistral-ai ocr https://arxiv.org/pdf/2301.00001.pdf > paper.md

# Tables
mistral-ai ocr ./document.pdf --table-format html

TTS Examples

# Preset voice
mistral-ai tts "Hello, world!" --voice-id alice

# Voice cloning via reference audio
mistral-ai tts "Hello from me!" --ref-audio ./my-voice.wav

# Output format
mistral-ai tts "Hello!" --voice-id bob --format wav > output.wav

STT Examples

# Basic transcription
mistral-ai stt ./audio.mp3

# Realtime mode (low latency)
mistral-ai stt ./audio.mp3 --realtime

# Speaker diarization
mistral-ai stt ./meeting.mp3 --diarize

# Specific language
mistral-ai stt ./audio.mp3 --language en

Supported Formats

Tool Input Formats Output Formats
OCR PDF, DOCX, PPTX, XLSX, PNG, JPEG, AVIF Markdown + YAML
TTS Text MP3, WAV, PCM, FLAC, Opus
STT MP3, WAV, FLAC, OGG, WebM Text + JSON

Configuration

Set API Key

mistral-ai config api_key <your-key>

Or via environment:

export MISTRAL_API_KEY=your-key

Config Location

  • Linux/macOS: ~/.mistral-ai/config.json
  • Windows: %USERPROFILE%\.mistral-ai\config.json

Override with MISTRAL_AI_CONFIG_DIR env var.

Show Config

mistral-ai config show

Config Options

mistral-ai config api_key <key>    # Set API key
mistral-ai config base_url <url>    # API endpoint (default: https://api.mistral.ai/v1)
mistral-ai config model <model>     # Default OCR model

MCP Server

Start server with stdio transport:

mistral-ai-mcp

MCP Tools

Tool Description
ocr_pdf Extract text from PDF sources
tts_speech Generate speech from text
stt_transcribe Transcribe audio to text

Example (Node.js client)

import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
import { Client } from '@modelcontextprotocol/sdk/client/index.js';

const transport = new StdioClientTransport({
  command: 'node',
  args: ['node_modules/.bin/mistral-ai-mcp'],
  env: { MISTRAL_API_KEY: 'your-key' },
});

const client = new Client({ name: 'test', version: '1.0.0' }, { capabilities: {} });
await client.connect(transport);

// OCR
const ocrResult = await client.callTool({
  name: 'ocr_pdf_url',
  arguments: { pdf_url: 'https://example.com/doc.pdf' },
});

// TTS
const ttsResult = await client.callTool({
  name: 'tts_speech',
  arguments: { text: 'Hello!', voice_id: 'alice' },
});

// STT
const sttResult = await client.callTool({
  name: 'stt_transcribe',
  arguments: { audio_source: './audio.mp3' },
});

Development

Setup

npm install

Scripts

npm run dev          # Run with tsx (watch mode)
npm run build        # Compile TypeScript
npm run clean        # Remove dist/
npm run lint         # ESLint check
npm run format       # Prettier check
npm run format:write # Prettier fix
npm run typecheck    # Type check only
npm run test         # Run tests

Git Hooks

Husky hooks enforce code quality:

  • pre-commit: Runs npm run lint && npm run format
  • pre-push: Runs npm run typecheck && npm run test

CI/CD

GitHub Actions workflows:

  • CI (.github/workflows/ci.yml): Lint, build, typecheck on push/PR
  • Tests (.github/workflows/test.yml): Run tests on push/PR

License

ISC

from github.com/tan-yong-sheng/mistral-ai-mcp

Установить Mistral Ai в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install mistral-ai-mcp

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add mistral-ai-mcp --env MISTRAL_API_KEY="" -- npx -y @tan-yong-sheng/mistral-ai-mcp

Пошаговые гайды: как установить Mistral Ai

FAQ

Mistral Ai MCP бесплатный?

Да, Mistral Ai MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Mistral Ai?

Да, требуются переменные окружения: MISTRAL_API_KEY. Unyly подставит их в конфиг при установке.

Mistral Ai — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Mistral Ai в Claude Desktop, Claude Code или Cursor?

Открой Mistral Ai на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Изменения

Версии и запрашиваемые доступы со временем.

  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована
  • Новая версия опубликована

Похожие MCP

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

MCPHub

Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.

автор: Community

MCP Servers Rating and User Reviews

Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)

автор: Community

Compare Mistral Ai with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai