Skip to main content
Glama
Aaditya-git

chatgpt-kg

by Aaditya-git

chatgpt-kg

Builds a personal knowledge graph from selected ChatGPT conversations (stored in Neo4j) and exposes it to Claude Code as an on-demand MCP search tool.

Setup

  1. Install Neo4j Desktop, create a local database, note its password.

  2. python -m venv .venv && source .venv/bin/activate && pip install -e ".[dev]"

  3. cp config.example.toml config.toml and edit as needed.

  4. export KG_NEO4J_PASSWORD=...

Related MCP server: Graph-Memory

Usage

  • Drop a ChatGPT export (conversations.json or its zip) into inbox/.

  • kg ingest — build/update the graph.

  • kg query "resume" — search from the terminal.

  • kg stats — counts.

  • kg rebuild — wipe and rebuild.

Claude Code integration

  1. Ensure Neo4j is running and the graph is built (kg ingest).

  2. Keep .mcp.json in the project root (it points Claude Code at the server's Python and module). The server reads the Neo4j password from .env, so no secret goes in .mcp.json.

  3. In Claude Code, run /mcp to confirm the chatgpt-kg server is connected.

  4. Ask a question about prior ChatGPT work; Claude calls search_knowledge_graph when relevant.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Self-hosted personal knowledge graph for Claude that persists across sessions, devices, and tools. Built on Neo4j with local semantic embeddings; OAuth 2.1 lets Claude Code, Claude Desktop, and claude.ai web all hit the same graph.
    23
    82 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Obsidian-backed knowledge graph with semantic search, entity extraction, and cross-session memory. 11 MCP tools. Works with Claude Code, Cursor, Windsurf, and any MCP-compatible editor.
    30 npm
    1
    MIT
  • F
    license
    Not graded
    quality
    A
    maintenance
    A self-hosted, temporal knowledge-graph memory for AI coding agents — shared across projects, queryable across time, written and read via MCP by any Claude Code session.
    -