MCP.so
Sign In

TokenKnows — distill AI coding sessions into weekly reports, ADRs and a knowledge graph

@johnnywuj81

About TokenKnows — distill AI coding sessions into weekly reports, ADRs and a knowledge graph

Distill AI coding sessions (Claude Code / Codex / Cursor) into weekly reports, ADRs, incident reviews and a knowledge graph — local-first, evidence-linked.

Basic information

Category

Memory & Knowledge

License

MIT

Runtime

python

Publisher

johnnywuj81

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "tokenknows": {
      "command": "python3",
      "args": [
        "-m",
        "venv",
        ".venv",
        "&&",
        ".venv/bin/pip",
        "install",
        "-e",
        ".[dev]"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is TokenKnows?

TokenKnows automatically captures AI coding sessions (from tools like Claude Code, Codex, and Cursor) and distills them into structured knowledge assets such as weekly reports, ADRs, and a knowledge graph. It is for developers who want to preserve decisions and insights from AI pair-programming sessions.

How to use TokenKnows?

Install the TokenKnows backend (FastAPI) and web UI, then add the MCP plugin for your AI tool (Claude Code, Codex, Cursor, or VS Code). The plugin provides MCP tools like submit_session_events and distill_document, plus slash commands like /tokenknows:weekly. Run the backend with uvicorn app.main:app and frontend with npm run dev.

Key features of TokenKnows

  • Captures AI coding sessions from Claude Code, Codex, Cursor, and more.
  • Distills into seven asset types including weekly reports, ADRs, and incident reviews.
  • Every paragraph traces back to original PR, conversation, or commit.
  • Local-first with three-layer LLM egress gate for privacy.
  • Can run fully offline with Ollama and zero cloud keys.
  • All collectors run locally without webhooks or tunnels.

Use cases of TokenKnows

  • Automatically generate weekly reports from AI coding sessions.
  • Create Architecture Decision Records (ADRs) from design discussions.
  • Produce incident reviews with evidence from PRs and commits.
  • Build a knowledge graph of entities from multiple sessions.
  • Reusable agent skills (SKILL.md) for future automation.

FAQ from TokenKnows

Which AI tools does TokenKnows support?

It captures sessions from Claude Code, Codex, Cursor, VS Code, GitHub (PRs/commits/issues), and local documents.

Does TokenKnows require cloud LLM keys?

No. It can run fully locally with Ollama; optional cloud providers (Anthropic, OpenAI, MiniMax) require all three egress switches to be on.

How are citations ranked in documents?

Citations are ranked by cosine × trust × recency, requiring at least two distinct sources. Each paragraph links back to the original evidence.

Is TokenKnows local-first?

Yes. Zero egress by default; a three-layer LLM egress gate (instance, project, task) controls any cloud calls, with full audit logging.

What platforms are supported?

macOS provides a full experience with auto-starting collectors. Linux runs backend, frontend, and collectors manually. Windows is untested; WSL2 is recommended.

Comments

More Memory & Knowledge MCP servers