TokenKnows MCP
A self-hosted MCP server that distills AI coding sessions from tools like Claude Code, Codex, and Cursor into structured outputs including weekly reports, Architecture Decision Records (ADRs), incident reviews, and a local knowledge graph. It features a three-layer LLM egress gate with audit logging and supports local inference via Ollama.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Generate weekly reports from AI coding sessions
- Create Architecture Decision Records (ADRs)
- Build a local knowledge graph from code interactions
- Conduct incident reviews using session data
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
tokenknows-mcp 0.3.0
{
"version": "0.3.0",
"transport": "stdio",
"identifier": "tokenknows-mcp",
"registryType": "pypi",
"environmentVariables": [
{
"name": "TOKENKNOWS_API_BASE",
"format": "string",
"default": "http://127.0.0.1:8001",
"description": "Self-hosted TokenKnows backend URL"
},
{
"name": "TOKENKNOWS_API_TOKEN",
"format": "string",
"description": "API token (tkk_...) or JWT bearer for the backend; create one in the web UI under Project Settings - MCP Access (optional for default local deployments)"
},
{
"name": "TOKENKNOWS_DEFAULT_PROJECT",
"format": "string",
"default": "proj-demo-001",
"description": "Default project_id for event submission and distill"
},
{
"name": "TOKENKNOWS_WEB_BASE",
"format": "string",
"default": "http://127.0.0.1:5173",
"description": "Web UI base URL used to build view_url links returned by distill/list tools (login required to open them)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"tokenknows-mcp": {
"command": "uvx",
"args": [
"tokenknows-mcp==0.3.0"
],
"env": {
"TOKENKNOWS_API_BASE": "<YOUR_TOKENKNOWS_API_BASE>",
"TOKENKNOWS_API_TOKEN": "<YOUR_TOKENKNOWS_API_TOKEN>",
"TOKENKNOWS_DEFAULT_PROJECT": "<YOUR_TOKENKNOWS_DEFAULT_PROJECT>",
"TOKENKNOWS_WEB_BASE": "<YOUR_TOKENKNOWS_WEB_BASE>"
}
}
}
}Cline
{
"mcpServers": {
"tokenknows-mcp": {
"command": "uvx",
"args": [
"tokenknows-mcp==0.3.0"
],
"env": {
"TOKENKNOWS_API_BASE": "<YOUR_TOKENKNOWS_API_BASE>",
"TOKENKNOWS_API_TOKEN": "<YOUR_TOKENKNOWS_API_TOKEN>",
"TOKENKNOWS_DEFAULT_PROJECT": "<YOUR_TOKENKNOWS_DEFAULT_PROJECT>",
"TOKENKNOWS_WEB_BASE": "<YOUR_TOKENKNOWS_WEB_BASE>"
}
}
}
}VS Code
{
"servers": {
"tokenknows-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"tokenknows-mcp==0.3.0"
],
"env": {
"TOKENKNOWS_API_BASE": "<YOUR_TOKENKNOWS_API_BASE>",
"TOKENKNOWS_API_TOKEN": "<YOUR_TOKENKNOWS_API_TOKEN>",
"TOKENKNOWS_DEFAULT_PROJECT": "<YOUR_TOKENKNOWS_DEFAULT_PROJECT>",
"TOKENKNOWS_WEB_BASE": "<YOUR_TOKENKNOWS_WEB_BASE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"tokenknows-mcp": {
"command": "uvx",
"args": [
"tokenknows-mcp==0.3.0"
],
"env": {
"TOKENKNOWS_API_BASE": "<YOUR_TOKENKNOWS_API_BASE>",
"TOKENKNOWS_API_TOKEN": "<YOUR_TOKENKNOWS_API_TOKEN>",
"TOKENKNOWS_DEFAULT_PROJECT": "<YOUR_TOKENKNOWS_DEFAULT_PROJECT>",
"TOKENKNOWS_WEB_BASE": "<YOUR_TOKENKNOWS_WEB_BASE>"
}
}
}
}Let your agent find its tools
Find servers like TokenKnows MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.