MCP Catalogs
首页

chatgpt2md

by NextStat·16·综合分 42

将ChatGPT导出转换为Markdown并提供全文搜索功能,通过MCP服务器让Claude访问对话历史。

ai-llmproductivityfile-system
1
Forks
1
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

chatgpt2md是基于Rust的CLI工具,可将ChatGPT导出数据转换为结构化的Markdown文件,并内置全文搜索索引。它提供MCP服务器,包含三个工具:search_conversations用于全文搜索所有对话,get_conversation用于读取特定对话,list_conversations按日期浏览对话。该工具支持Claude Desktop和Claude Code的自动和手动配置,提供一键安装功能,实现无缝集成。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:直接在Claude中访问ChatGPT对话历史进行上下文参考
:从大量ChatGPT导出中搜索和检索特定对话
:以可读的Markdown格式存档ChatGPT对话,并具备全文搜索功能
:chatgpt2md支持什么文件格式?
:能否在导出中排除系统消息?

什么时候选它

如果您正在从 ChatGPT 迁移到 Claude 并希望保持对对话历史的完整搜索能力,应选择此工具。

什么时候不要选它

如果您需要处理非 ChatGPT 平台的导出,或需要在 ChatGPT 和 Claude 之间实现双向同步,则不应选择此工具。

此 server 暴露的工具

从 README 抽取出 3 个工具
  • search_conversations

    Full-text search across all conversations by keywords

  • get_conversation

    Read the complete text of a specific conversation

  • list_conversations

    Browse conversations by year and/or month

可对比工具

chatgpt-exportmcp-chat-historyclaude-import

安装

安装

快速安装
cargo install --git https://github.com/NextStat/chatgpt2md
二进制文件安装
  1. 从[发布页](https://github.com/NextStat/chatgpt2md/releases)下载适合您平台的二进制文件
  2. 解压并移动到PATH:

``bash tar xzf chatgpt2md-*.tar.gz sudo mv chatgpt2md /usr/local/bin/ ``

Claude配置
chatgpt2md install --index ./chatgpt_chats/.index --chats ./chatgpt_chats
手动Claude Desktop配置

编辑Claude Desktop配置文件:

  • **macOS:** ~/Library/Application Support/Claude/claude_desktop_config.json
  • **Windows:** %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "chatgpt-history": {
      "command": "/path/to/chatgpt2md",
      "args": ["serve", "--index", "/path/to/chatgpt_chats/.index", "--chats", "/path/to/chatgpt_chats"]
    }
  }
}

FAQ

chatgpt2md支持什么文件格式?
它支持直接从ChatGPT导出的ZIP文件,以及ZIP中的JSON格式(conversations.json)。
能否在导出中排除系统消息?
可以,使用`--include-system`标志包含系统/工具消息,默认情况下会被排除。

chatgpt2md 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。