ctx-profiler MCP
A zero-dependency Python stdio MCP server and CLI that profiles token waste and simulates compaction policies for coding-agent session logs. It replays multi-turn transcripts to attribute tokens across six MECE buckets (file rereads, tool output bloat, reasoning replay, system schemas, history replay, and useful work), enabling developers to identify context-bloat failure modes in tools like Claude Code, Codex, and Cline.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Profile token waste in Claude Code, Codex, Cline, or OpenClaw session logs
- Simulate five concrete compaction policies to estimate savings
- Analyze token distribution across six mutually-exclusive categories
- Generate benchmark visuals for context engineering
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ctx-profiler 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "ctx-profiler",
"runtimeHint": "uvx",
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"packageArguments": [
{
"type": "positional",
"value": "mcp"
}
]
}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": {
"ctx-profiler-mcp": {
"command": "uvx",
"args": [
"ctx-profiler==0.1.1",
"mcp"
]
}
}
}Cline
{
"mcpServers": {
"ctx-profiler-mcp": {
"command": "uvx",
"args": [
"ctx-profiler==0.1.1",
"mcp"
]
}
}
}VS Code
{
"servers": {
"ctx-profiler-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"ctx-profiler==0.1.1",
"mcp"
]
}
}
}Claude Desktop
{
"mcpServers": {
"ctx-profiler-mcp": {
"command": "uvx",
"args": [
"ctx-profiler==0.1.1",
"mcp"
]
}
}
}Let your agent find its tools
Find servers like ctx-profiler MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.