# TokenKnows

> TokenKnows is an open-source MCP server. Distill AI coding sessions into weekly reports, ADRs and a knowledge graph - self-hosted. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/johnnywuj81/tokenknows
- **MCP Registry name:** io.github.johnnywuj81/tokenknows
- **Listing updated:** 2026-11-13

## About

Distill AI coding sessions into weekly reports, ADRs and a knowledge graph - self-hosted

## Install

### Claude Code (Terminal)

```sh
claude mcp add tokenknows --env TOKENKNOWS_API_TOKEN='<TOKENKNOWS_API_TOKEN>' -- uvx tokenknows-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tokenknows": {
      "command": "uvx",
      "args": [
        "tokenknows-mcp"
      ],
      "env": {
        "TOKENKNOWS_API_TOKEN": "<TOKENKNOWS_API_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tokenknows": {
      "command": "uvx",
      "args": [
        "tokenknows-mcp"
      ],
      "env": {
        "TOKENKNOWS_API_TOKEN": "<TOKENKNOWS_API_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "tokenknows": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tokenknows-mcp"
      ],
      "env": {
        "TOKENKNOWS_API_TOKEN": "<TOKENKNOWS_API_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "tokenknows": {
      "command": "uvx",
      "args": [
        "tokenknows-mcp"
      ],
      "env": {
        "TOKENKNOWS_API_TOKEN": "<TOKENKNOWS_API_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tokenknows": {
      "command": "uvx",
      "args": [
        "tokenknows-mcp"
      ],
      "env": {
        "TOKENKNOWS_API_TOKEN": "<TOKENKNOWS_API_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is TokenKnows free?

Yes. TokenKnows is open source, so you can use and self-host it for free.

### How do I add TokenKnows to Claude Code?

Run this command in your terminal: claude mcp add tokenknows --env TOKENKNOWS_API_TOKEN='<TOKENKNOWS_API_TOKEN>' -- uvx tokenknows-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/tokenknows
