
nextstat/chatgpt2md
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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
- Step 1: Export Your ChatGPT Data
- Step 2: Install chatgpt2md
- Step 3: Convert Your Export
- Step 4: Connect to Claude
- Step 5: Use It!
- Commands Reference
- Manual MCP Configuration
- Output Structure
- Building from Source
- License
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
- Go to chatgpt.com
- Click your profile icon (bottom-left) > Settings
- Go to Data controls
- Click Export data > Confirm export
- Wait for the email from OpenAI (usually arrives within a few minutes)
- 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
Option A: Pre-built binaries (recommended)
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
インストール
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"]
}
}
}