PitchHut logo
Portably manage AI conversation history across platforms.
Pitch

opencontext offers a seamless solution for importing, managing, and exporting chat histories from any AI platform. With the innovative MCP server, Claude gains persistent memory across conversations, enabling effective context recall and management. Simplify AI interactions and preserve your conversational context effortlessly.

Description

๐Ÿ”Œ MCP Server available โ€” Enhance Claude's memory with persistent storage by setting up the opencontext MCP server. This allows Claude to automatically save, recall, and search your context across conversations. Jump to setup โ†’

opencontext logo

opencontext

Save your context, your way

Import chat history from any AI platform ยท Manage context with MCP ยท Export to Claude, ChatGPT, or Gemini

Documentation โ€ข Quick Start โ€ข Usage โ€ข Contributing


opencontext UI preview

๐Ÿ“– Overview

opencontext empowers users to manage and maintain a portable memory of AI interactions. With this tool, users can effortlessly transfer their entire conversation history while switching between AI assistants and enable Claude to use persistent memory through the MCP server.

  • ๐ŸŽฏ Preferences - Tailored communication style analysis for Claude.
  • ๐Ÿง  Memory - Relevant context derived from chat history.
  • ๐Ÿ’ฌ Conversations - All dialogues stored as easily readable markdown files.
  • ๐Ÿ”Œ MCP Server - Ensures continuity in conversations with Claude.

Why Use This?

Transitioning between AI assistants often results in the loss of vital context regarding previous interactions, communication styles, and personal nuances. opencontext addresses this challenge by:

  1. Importing chat histories from platforms like ChatGPT (Gemini support is on the horizon).
  2. Analyzing communication patterns with local AI (Ollama) to create memory and preference profiles.
  3. Providing export formats compatible with Claude, ChatGPT, or Gemini.
  4. Enabling Claude to save and recall context automatically using an MCP server.

Outcome: Claude retains knowledge about individual preferences and communication styles, tailoring each interaction based on historical context.

โœจ Features

๐Ÿค– AI-Powered Analysis

  • Generates personalized communication preferences.
  • Extracts contextual information relevant to user interactions.
  • Identifies key topics and focus areas for more effective dialogue.
  • Inherits compatibility with various LLM models.

๐Ÿ”’ Privacy First

  • Processes remain entirely local; data does not leave your device.
  • No third-party API interactions.
  • Simple dashboard option to anonymize personally identifiable information.

๐Ÿ“ฆ Complete Migration

  • Efficiently parses complex conversation trees.
  • Compatible with images and attachments, preserving all related metadata.
  • Facilitates export to Claude, ChatGPT, or Gemini formats.

๐Ÿ”Œ MCP Server

  • Provides seamless context management across interactions.
  • Context management includes saving, recalling, searching, and tagging memories.
  • Works in conjunction with Claude Code & Claude Desktop services.
  • Utilizes a local JSON storage system located at ~/.opencontext/.

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 25+ - Download from Node.js.
  • Obtain ChatGPT Export using the guidelines in the README.
  • Optional: Install Ollama for enhanced AI analysis capabilities.

Installation Steps

# Clone the repository
git clone https://github.com/adityak74/opencontext.git
cd opencontext

# Install CLI/MCP dependencies
npm install

# Build the project
npm run build

Option A: Run via Docker (Recommended)

The recommended approach is to utilize the official Docker image, which integrates the UI, server API, and MCP server into a single container, ensuring preferences and context are retained without relying on browser storage.

# Pull and run the Docker image (access UI at http://localhost:3000)
docker run -p 3000:3000 \
  -v opencontext-data:/root/.opencontext \
  adityakarnam/opencontext:latest

What gets stored in the volume (/root/.opencontext/):

FileContents
preferences.jsonUser-defined preferences format
preferences.mdMarkdown file for Claude preferences
memory.mdMarkdown file for Claude's memory management
contexts.jsonStored contexts from MCP

Usage Example

npm start -- convert path/to/chatgpt-export.zip

This command processes the exported ChatGPT data, producing formatted files for Claude.

๐Ÿ“š Documentation

Getting Your ChatGPT Export: Steps for exporting data can be found in the README. Users can migrate preferences and context into Claude through simple copy-paste actions from the generated markdown files.

Privacy & Security

All processing activities are local, assuring users that no data is shared externally, fostering a secure environment for sensitive information.

๐Ÿค Contributing

Participation and contributions are encouraged; options include reporting issues, suggesting features, improving documentation, or submitting code. See GitHub for guidelines and participation rules.

๐Ÿ“Š Performance and Future Features

Performance is based on export size and analysis; users can anticipate planned features such as support for additional AI platforms and improved context management capabilities.

0 comments

No comments yet.

Sign in to be the first to comment.