NC

nextstat/chatgpt2md

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

20 stars 1 forks Качество 62 Тренд 10MIT

Convert ChatGPT export to Markdown with full-text search and MCP server for Claude

Обзор

Take your ChatGPT history with you to Claude. Full-text search included. A fast CLI tool that converts your ChatGPT export into organized Markdown files, builds a search index, and provides an MCP server so Claude can search and read your conversation history natively. - Converts ChatGPT export (ZIP or JSON) to clean Markdown files - Built-in full-text search powered by Tantivy - MCP server with 3 tools for Claude integration - One-command auto-install for Claude Desktop and Claude Code - Works on macOS and Windows - Single binary, no runtime dependencies 1. Go to chatgpt.com 2. Click your profile icon (bottom-left) > 3. Go to 4. Click > 5. Wait for the email from OpenAI (usually arrives within a few minutes) 6. Download the ZIP file from the link in the email The ZIP file contains conversations.json with all your chat history. The export includes ALL your conversations — this may take a while if you have thousands of chats.

README

Показан фрагмент оригинального README. Открыть оригинал.

chatgpt2md

Take your ChatGPT history with you to Claude. Full-text search included.

A fast CLI tool that converts your ChatGPT export into organized Markdown files, builds a search index, and provides an MCP server so Claude can search and read your conversation history natively.

Key features:

  • Converts ChatGPT export (ZIP or JSON) to clean Markdown files
  • Built-in full-text search powered by Tantivy
  • MCP server with 3 tools for Claude integration
  • One-command auto-install for Claude Desktop and Claude Code
  • Works on macOS and Windows
  • Single binary, no runtime dependencies

Table of Contents

Quick Start

# Install
cargo install --git https://github.com/NextStat/chatgpt2md

# Convert your ChatGPT export
chatgpt2md export.zip

# Install MCP into Claude (auto-configures everything)
chatgpt2md install --index ./chatgpt_chats/.index --chats ./chatgpt_chats

# Restart Claude — done!

Step 1: Export Your ChatGPT Data

  1. Go to chatgpt.com
  2. Click your profile icon (bottom-left) > Settings
  3. Go to Data controls
  4. Click Export data > Confirm export
  5. Wait for the email from OpenAI (usually arrives within a few minutes)
  6. Download the ZIP file from the link in the email

The ZIP file contains conversations.json with all your chat history.

Tip: The export includes ALL your conversations — this may take a while if you have thousands of chats.

Step 2: Install chatgpt2md

Download the latest release for your platform from the Releases page:

Platform File
macOS (Apple Silicon) chatgpt2md-aarch64-apple-darwin.tar.gz
macOS (Intel) chatgpt2md-x86_64-apple-darwin.tar.gz
Windows chatgpt2md-x86_64-pc-windows-msvc.zip
Linux chatgpt2md-x86_64-unknown-linux-gnu.tar.gz
# macOS / Linux: extract and move to PATH
tar xzf chatgpt2md-*.tar.gz
sudo mv chatgpt2md /usr/local/bin/

Option B: Install from source

Requires Rust 1.85+:

cargo install --git https://github.com/NextStat/chatgpt2md

Option C: Build locally

git clone https://github.com/NextStat/chatgpt2md
cd chatgpt2md
cargo build --release
# Binary is at ./target/release/chatgpt2md

Step 3: Convert Your Export

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "chatgpt-history": { "command": "/path/to/chatgpt2md", "args": ["serve", "--index", "/path/to/chatgpt_chats/.index", "--chats", "/path/to/chatgpt_chats"] } } }