ChatGPT2Md

v1.0.0Developer Toolsstable

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

aichatgptclaudeclimarkdown
Share:
17
Stars
0
Downloads
0
Weekly
0/5

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

ChatGPT export to Markdown conversion
Full-text search over conversations
NextStat

Maintainer

LicenseMIT
Languagerust
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx chatgpt2md

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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)
1

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.

2

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/chatgpt2md
3

Convert 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 --flat
4

Register 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_chats
5

Verify 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.

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.

Quick Config Preview

{ "mcpServers": { "chatgpt2md": { "command": "npx", "args": ["-y", "chatgpt2md"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides