Skip to main content

Personal conversation knowledge base — import, search, and analyze conversations from ChatGPT, Claude, Gemini, and Claude Code

Project description

memex

Personal conversation knowledge base. MCP-first architecture for managing, searching, and analyzing chat conversations from multiple AI providers.

Install

pip install -e ".[dev]"

Quick Start

Import conversations:

memex import conversations.json          # auto-detects format
memex import export.json --format openai  # force format

Export:

memex export output.md --format markdown
memex export output.json --format json

Browse and search:

memex show                               # list conversations
memex show <id>                          # view a conversation

HTML export (self-contained SPA):

memex export ./site --format html        # outputs index.html + DB + assets

MCP server (for Claude Desktop, etc.):

memex mcp

Scripts:

memex run --list                         # available scripts
memex run redact --words "secret" --level word --apply
memex run enrich_trivial --apply

Supported Formats

Format Import Export
OpenAI Yes -
Anthropic Yes -
Gemini Yes -
Claude Code Yes -
Markdown - Yes
JSON - Yes
HTML (SPA) - Yes

MCP Tools

When running as an MCP server, memex exposes 4 tools:

  • execute_sql -- Primary read interface: all queries via SQL (read-only by default)
  • get_conversation -- Tree-aware retrieval + export (metadata, messages, markdown/JSON)
  • update_conversations -- Modify properties, tags, and enrichments (bulk)
  • append_message -- Add messages to conversation trees

Development

pytest tests/memex/ -v             # run tests
pytest tests/memex/ --cov=memex    # with coverage

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_memex-0.9.0.tar.gz (60.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_memex-0.9.0-py3-none-any.whl (69.7 kB view details)

Uploaded Python 3

File details

Details for the file py_memex-0.9.0.tar.gz.

File metadata

  • Download URL: py_memex-0.9.0.tar.gz
  • Upload date:
  • Size: 60.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for py_memex-0.9.0.tar.gz
Algorithm Hash digest
SHA256 8975c115219e2341f28357ef42adc4bd619e06cd66ea94bf1c10cfb2351b23b1
MD5 5817ba86ac0d6458d06b8c52e5ff1a65
BLAKE2b-256 1c40b291d730d504123f3de65763b56ade7c9073d3748836111d4d332bc4ef77

See more details on using hashes here.

File details

Details for the file py_memex-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: py_memex-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 69.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for py_memex-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd42a9e36bf6e82ccae6652758a7d60a8ca8767df9b534d726c4c702a3c844d4
MD5 f54eda2d9184f83abdd0426cc8681033
BLAKE2b-256 8c95e691e6d6ac31fd77715ec8592c5eb07a4a35d96437b9dadd79fdecdaf702

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page