Tokenectomy Razor — Claude Code MCP server: features and setup
Tokenectomy Razor trims dependency noise from error traces and redacts secrets such as JWTs and database URIs. Use it when logs are taking up an agent’s context.
claude mcp add razor -- npx -y tokenectomy-razorWhat Tokenectomy Razor does
Tokenectomy Razor is an MCP server paired with a local AI gateway. It processes error traces, removing framework output from paths such as node_modules, site-packages, and .cargo, and redacts API keys, JWTs, and database URIs. The gateway description lists support for nine programming languages.
Start the gateway with npx -y tokenectomy-razor --proxy and point an agent to 127.0.0.1:8080. Claude Code can also connect to the MCP server directly through npx. The listed platforms include Codex, Cursor, GitHub Copilot, and Gemini CLI. The gateway uses a local address, so its process must be running for an agent to send requests through it.
What it helps with
- strip dependency output from an error trace
- reduce context taken up by verbose logs
- redact credentials from logs and requests
- route an agent’s requests through a local AI gateway
Example prompts for the agent
- Trim dependency noise from this error trace while keeping the useful frames.
- Check this log for API keys, JWTs, and database URIs.
- Route Claude Code requests through the local Tokenectomy Razor gateway.
How to install Tokenectomy Razor
Platform CLI
claude mcp add razor -- npx -y tokenectomy-razorPlatform CLI
codex mcp add tokenectomy-razor -- npx -y tokenectomy-razorConfig file
{
"mcpServers": {
"tokenectomy-razor": {
"command": "npx",
"args": [
"-y",
"tokenectomy-razor"
]
}
}
}Config file
{
"servers": {
"tokenectomy-razor": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tokenectomy-razor"
]
}
}
}Platform CLI
gemini mcp add tokenectomy-razor npx -y tokenectomy-razorStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Tokenectomy Razor
How do I install Tokenectomy Razor in Claude Code?
Run claude mcp add razor -- npx -y tokenectomy-razor. This registers the MCP server with Claude Code.
What does Tokenectomy Razor do?
It cuts framework output from error traces and redacts API keys, JWTs, and database URIs. Its gateway accepts requests at the local address 127.0.0.1:8080.
Which agents can connect to Tokenectomy Razor?
The listed platforms include Claude Code, Codex, Cursor, GitHub Copilot, and Gemini CLI. The gateway setup also describes Cline, Zed, and Windsurf (Devin Desktop).