NC

nextstat/chatgpt2md

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

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

GitHub에서 전체 README 보기

설치

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"] } } }