ChatGPT2Md
Convert ChatGPT export to Markdown with full-text search and MCP server for Claude
What is ChatGPT2Md?
ChatGPT2Md is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to convert chatgpt export to markdown with full-text search and mcp server for claude
Convert ChatGPT export to Markdown with full-text search and MCP server for Claude
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Convert ChatGPT export to Markdown with full-text search and
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx chatgpt2mdConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use ChatGPT2Md
chatgpt2md is a Rust-based CLI tool and MCP server that converts your exported ChatGPT conversation history into organized Markdown files and makes them searchable from within Claude. It builds a full-text search index powered by Tantivy and exposes three MCP tools so Claude can search and read your past ChatGPT conversations natively. This is ideal for developers and power users who want to bring their years of ChatGPT history into their Claude workflow without manual copy-pasting.
Prerequisites
- A ChatGPT data export ZIP file (downloaded from chatgpt.com > Settings > Data controls > Export data)
- chatgpt2md binary installed: download a pre-built release for your platform from GitHub Releases, or build from source with Rust 1.85+ via `cargo install --git https://github.com/NextStat/chatgpt2md`
- Claude Desktop or Claude Code as your MCP client
- macOS or Windows operating system (Linux builds also available)
Download your ChatGPT export
Log in to chatgpt.com, click your profile icon, go to Settings > Data controls > Export data, confirm the export, and wait for the email from OpenAI. Download the ZIP file from the link in that email. The ZIP contains conversations.json with all your chat history.
Install chatgpt2md
Download a pre-built binary for your platform from the GitHub Releases page, extract it, and move it to your PATH. Alternatively, build from source if you have Rust 1.85+ installed.
# macOS / Linux via pre-built binary
tar xzf chatgpt2md-*.tar.gz
sudo mv chatgpt2md /usr/local/bin/
# Or build from source (requires Rust 1.85+)
cargo install --git https://github.com/NextStat/chatgpt2mdConvert your ChatGPT export to Markdown
Run chatgpt2md with your export ZIP to convert all conversations to Markdown files organized by year/month and build a full-text search index. Output goes to ./chatgpt_chats/ by default.
chatgpt2md export.zip
# Custom output directory
chatgpt2md export.zip -o ~/Documents/chatgpt_history
# Flat structure (no year/month folders)
chatgpt2md export.zip --flatRegister the MCP server with Claude
Run the install command to auto-configure both Claude Desktop and Claude Code. This writes the MCP server entry to the appropriate config files. After running this command, restart Claude Desktop for changes to take effect.
chatgpt2md install --index ./chatgpt_chats/.index --chats ./chatgpt_chatsVerify the configuration (manual alternative)
If you prefer to configure manually, add the following entry to your claude_desktop_config.json. Adjust the paths to match where your converted chats and index are stored.
{
"mcpServers": {
"chatgpt2md": {
"command": "chatgpt2md",
"args": ["serve", "--index", "/absolute/path/chatgpt_chats/.index", "--chats", "/absolute/path/chatgpt_chats"]
}
}
}ChatGPT2Md Examples
Client configuration
Add this to your claude_desktop_config.json (after running chatgpt2md install, this is done automatically).
{
"mcpServers": {
"chatgpt2md": {
"command": "chatgpt2md",
"args": ["serve", "--index", "/Users/you/chatgpt_chats/.index", "--chats", "/Users/you/chatgpt_chats"]
}
}
}Prompts to try
Once connected, Claude can search and read your ChatGPT conversation history using the MCP tools.
- "Search my ChatGPT history for conversations about React hooks"
- "Find my old ChatGPT discussion about setting up a Postgres database"
- "What did I ask ChatGPT about machine learning last year?"
- "Show me all ChatGPT conversations where I talked about debugging Python"Troubleshooting ChatGPT2Md
Claude cannot find the chatgpt2md server after running install
Make sure to fully restart Claude Desktop (quit and reopen, not just close the chat window). The install command writes to claude_desktop_config.json but the app must reload to pick up changes.
The convert step reports 0 conversations or fails to find conversations.json
Ensure you pass the ZIP file downloaded from OpenAI's export email, not a manually created archive. The tool looks for conversations.json inside the ZIP. If the ZIP contains nested folders, try extracting it first and pointing chatgpt2md at the conversations.json directly.
Binary not found after moving to /usr/local/bin
Run `which chatgpt2md` to confirm the binary is on your PATH. If not found, add /usr/local/bin to your shell's PATH in ~/.zshrc or ~/.bashrc. On Windows, ensure the extracted .exe is in a directory listed in your system PATH environment variable.
Frequently Asked Questions about ChatGPT2Md
What is ChatGPT2Md?
ChatGPT2Md is a Model Context Protocol (MCP) server that convert chatgpt export to markdown with full-text search and mcp server for claude It connects AI assistants to external tools and data sources through a standardized interface.
How do I install ChatGPT2Md?
Follow the installation instructions on the ChatGPT2Md GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with ChatGPT2Md?
ChatGPT2Md works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is ChatGPT2Md free to use?
Yes, ChatGPT2Md is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
ChatGPT2Md Alternatives — Similar Developer Tools Servers
Looking for alternatives to ChatGPT2Md? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up ChatGPT2Md in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use ChatGPT2Md?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.