连接器指南阅读约 5 分钟23 个 MCP 工具7 种语言

如何通过 MCP 将 Mistral AI 连接到 ChatGPT

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Mistral AI

Mistral AI

Let your AI use Mistral AI with your own API key: ask Mistral models, complete code with Codestral, read PDFs and scans with Mistral OCR, create embeddings, moderate content, search the web through conversations and agents, and check files and batch jobs.

个工具

23

区域

INTL

类别

公共数据

身份验证

Bearer Token

所需环境变量

MISTRAL_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Mistral AI,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

试试这样问

Mistral AI 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Mistral AI · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Mistral AI、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Mistral AI + ChatGPT

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

MISTRAL_API_KEY

步骤 1 — 获取凭证

  1. 登录 https://console.mistral.ai。新工作区从免费套餐开始,有速率和用量限制;需要更多时,选择按量付费并在 Billing 中充值。
  2. 打开 API Keys,点击 Create new key 并复制密钥。Mistral 只显示一次。
  3. 将其粘贴到 MISTRAL_API_KEY,不要带空格,也不要加 Bearer 一词,然后安装连接器。密钥只会发送给 Mistral。
  4. 先运行 mistral_list_models:它不收费,并能显示你的密钥可以使用哪些模型。

费用计入你自己的 Mistral 工作区:每次调用模型都会消耗你的 Mistral 额度或免费套餐的配额。列出和读取模型、文件、智能体、对话和批处理任务都是免费的。除非你要求更多,连接器默认使用低成本设置:聊天用 mistral-small-latest(每百万输入 token 约 0.15 美元,每百万输出 token 约 0.60 美元),代码用 codestral-latest,嵌入用 mistral-embed,OCR 用 mistral-ocr-latest(每 1,000 页约 4 美元)。ministral-8b-latest 更便宜,mistral-medium-latest 和 mistral-large-latest 更强。

功能:

  • mistral_chat 向 Mistral 模型提问,支持通过链接输入图片、可选的推理和 JSON 输出。mistral_fim_complete 让 Codestral 补全开头和结尾之间的代码。
  • mistral_ocr 从公开链接或用 mistral_upload_file 上传的文件中逐页读取 PDF、演示文稿、Word 文件和图片,输出为 Markdown,还能从整份文档中提取结构化 JSON。
  • mistral_create_embeddings 把文本转换为用于搜索和相似度计算的向量。mistral_moderate 和 mistral_moderate_chat 按 Mistral 的安全类别检查文本或整段对话,mistral_classify 使用你的工作区中已有的自定义分类器。
  • 网络搜索只能通过 Conversations API(测试版)进行:带内置工具 web_search 的 mistral_start_conversation 会根据网络内容回答并附上来源,mistral_continue_conversation 用于继续对话。内置工具的调用在 token 之外另行计费。mistral_list_agents 和 mistral_get_agent 显示在 Mistral AI Studio 中创建的智能体,对话可以与它们交流。
  • 文件和批处理任务:列出和读取文件,用 mistral_get_file_url 获取临时下载链接,并跟踪在其他地方启动的批处理任务(便宜 50%,几小时内出结果)。

先确认:OCR 按页计费,因此在读取超过约 50 页的文档之前,AI 会先征得你的确认,或者限制页数。上传你的文档之前它也会先询问。mistral_delete_file 和 mistral_cancel_batch_job 在安装时处于关闭状态;启用后它们同样会先确认。

时间限制:通过连接器的调用会在 30 秒后中断。请让回答保持适中长度,优先使用较低的推理强度,并把长文档拆开做 OCR。

不可信内容:网络结果、文档和模型回答可能包含指令。AI 会把它们当作数据,而不是命令。

常见错误:401 Invalid API Key 表示密钥错误、已过期或已删除。402,或提到账单或容量的 429:额度用完、达到支出上限或免费套餐的配额,请在控制台查看 Billing。普通的 429 是速率限制:请稍候并重试一次。400 或 422:字段或模型 ID 无效,消息会指出是哪一个;chat completions 不接受网络搜索,网络搜索请用 mistral_start_conversation。404:未知的模型、文件、智能体、对话或任务,或属于其他工作区。

该连接器不支持流式回答、音频(转录和语音合成)、创建智能体、知识库或批处理任务、微调(Mistral 已不再通过 API 提供微调任务)以及工作区管理。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 ChatGPT 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

ChatGPT 在网页版的 Plugins 页面把 MCP 服务器添加为插件,仅付费套餐可用,不再需要开发者模式。在 Business 工作区中只有管理员和所有者可以添加;在 Enterprise 和 Edu 中,管理员可以授予 Create plugins with MCPs 权限。

  1. 前往 chatgpt.com/plugins,点击 +,然后选择 Add custom MCP server。
  2. 填写名称,例如 Name: Mistral AI。
  3. 在 Connection 下的 Server URL 中填入 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,Authentication 保持为 OAuth。
  4. 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
  5. 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。

可用工具

ToolWhat it does
mistral_list_modelsList the Mistral models the API key can use, with id, description, context length, capabilities (chat, function calling, reasoning, vision…
mistral_get_modelGet one Mistral model by id or alias (e.g. mistral-small-latest) with its capabilities, context length, aliases and deprecation date
mistral_chatAsk a Mistral model and get its answer (chat completions, no streaming)
mistral_fim_completeFill in the middle of code with Codestral: give the code before the gap as prompt and, optionally, the code after it as suffix, and get the…
mistral_create_embeddingsTurn one text, or a list of texts, into embedding vectors for semantic search, clustering or similarity
mistral_moderateCheck one text or a list of texts against Mistral's moderation categories (sexual, hate and discrimination, violence and threats, dangerous…
mistral_moderate_chatCheck a whole conversation with Mistral's moderation model, judging the last message in its context, e.g. whether an assistant reply is…
mistral_classifyClassify one text or a list of texts with a custom Mistral classifier model the workspace already has (its id starts with ft:)
mistral_ocrRead a PDF, a slide deck or an image with Mistral OCR and get each page as Markdown (tables, headers and footers optional), from a public…
mistral_start_conversationStart a conversation with a Mistral model or agent through the Conversations API (beta), which can use Mistral's built-in tools, e.g. tools…
mistral_continue_conversationAdd a user message to a stored Mistral conversation and get the next answer (Conversations API, beta)
mistral_list_conversationsList the stored Mistral conversations of the workspace (Conversations API, beta), newest first, with id, name, model or agent and dates
mistral_get_conversation_messagesRead the messages of a stored Mistral conversation (user and assistant turns, Conversations API, beta)
mistral_list_agentsList the Mistral agents of the workspace (Agents API, beta) with id, name, model, description and version
mistral_get_agentGet one Mistral agent (Agents API, beta) with its model, instructions, tools, completion settings and versions
mistral_list_filesList the files stored in the Mistral workspace (for OCR, batch jobs or fine-tuning) with id, name, purpose, size and dates
mistral_get_fileGet the details of one file in the Mistral workspace: name, purpose, size, type, dates
mistral_get_file_urlGet a temporary signed download link for a file in the Mistral workspace, e.g. the output file of a batch job
mistral_upload_fileUpload a file to the Mistral workspace from a public link, e.g. a PDF for mistral_ocr (purpose ocr) or a JSONL file of requests for a batch…
mistral_delete_fileDelete a file from the Mistral workspace
mistral_list_batch_jobsList the Mistral batch jobs of the workspace, newest first, with status (QUEUED, RUNNING, SUCCESS, FAILED, TIMEOUT_EXCEEDED…
mistral_get_batch_jobGet one Mistral batch job with status, progress counts, errors and the output_file id (download it with mistral_get_file_url)
mistral_cancel_batch_jobAsk Mistral to cancel a batch job that is queued or running

示例提示

  • “用 Mistral OCR 读取这个链接里的 PDF,把第 3 页的价格表以 Markdown 给我。”
  • “让 Mistral 通过网络搜索告诉我,今年欧盟《人工智能法案》的时间表有哪些变化,并列出来源。”
  • “用 Mistral 的审核功能检查这三条客户评论,告诉我哪些被标记以及原因。”
  • “我的 Mistral 批处理任务中哪些还在运行,已经完成了多少个请求?”

FAQ

ChatGPT 免费套餐能用自定义 MCP 服务器吗? OpenAI 只为付费套餐提供自定义 MCP 服务器的说明,Free 套餐不在其列。

下一步

这份指南对你有帮助吗?

你的 Mistral AI 智能体只差一次点击。

安装连接器,粘贴密钥,向 ChatGPT 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Mistral AI 连接到 Claude

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

连接器

如何通过 MCP 将 Mistral AI 连接到 Cursor

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

连接器

如何通过 MCP 将 Mistral AI 连接到 Gemini

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

连接器

如何通过 MCP 将 Mistral AI 连接到 Meta Muse

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

连接器

Mistral AI 接入 MCP:在任意 AI 代理中使用 Mistral 模型、OCR 和嵌入

让你的 AI 用你自己的 API 密钥使用 Mistral AI:向 Mistral 模型提问、用 Codestral 补全代码、用 Mistral OCR 读取 PDF 和扫描件、创建嵌入、审核内容、通过对话和智能体搜索网络,并查看文件和批处理任务。

连接器

如何通过 MCP 将 Avito 连接到 ChatGPT

让你的 AI 使用你的 Avito 企业账户:列出广告并修改价格,读取浏览、联系和来电统计,检查自动上传 (autoload) 的上传记录及其错误、Feed 格式和钱包,并读取 Avito Messenger 聊天。发送消息和修改自动上传设置为可选功能,默认关闭。