Sipcode
@Anuj7411
About Sipcode
Open-source MCP server and PreToolUse hook for Claude Code. Exposes 15 MCP tools that let Claude inspect its own context-hygiene stats mid-session (token waste, duplicate reads, drift, cost forecasts), and caps verbose tool output plus dedups same-session file re-reads to keep co
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"sipcode": {
"command": "npx",
"args": [
"-y",
"-p",
"sipcode",
"sipcode-mcp"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is Sipcode?
Sipcode is an open-source (MIT) MCP server and PreToolUse hook for Claude Code. It keeps the AI’s context clean over long sessions and exposes context hygiene to Claude as MCP tools.
How to use Sipcode?
Install globally via npm: npm i -g sipcode && sipcode init. After setup, it runs automatically within Claude Code sessions.
Key features of Sipcode
- Caps verbose tool output (grep, npm install, git log, tsc) before it reaches the model.
- Deduplicates same-session re-reads of unchanged files using content-hash checks.
- Ships 15 MCP tools for inspecting context stats: token waste, duplicate reads, drift, cost forecasts.
- Reports ~62% median token savings on a reproducible benchmark.
- Open-source under MIT license.
Use cases of Sipcode
- Maintaining AI reliability during long Claude Code sessions.
- Reducing token consumption by filtering verbose command outputs.
- Avoiding redundant reading of unchanged files across multiple tool calls.
- Monitoring context health mid-session with provided MCP tools.
- Improving code generation quality by keeping the context window clean.
FAQ from Sipcode
What problem does Sipcode solve?
It addresses context window bloat by capping verbose output and deduplicating file reads, keeping the AI reliable over long sessions.
How does Sipcode deduplicate file reads?
It uses content-hash based deduplication and never serves stale bytes to the model.
What MCP tools does Sipcode provide?
It provides 15 MCP tools for inspecting context stats such as token waste, duplicate reads, drift, and cost forecasts.
What are the reported benefits?
A reproducible benchmark shows ~62% median token savings; Anthropic’s research reports a 29% quality lift and around 40% fewer agent errors when context stays clean.
Is Sipcode open source?
Yes, it is released under the MIT license.
Frequently asked questions
What problem does Sipcode solve?
It addresses context window bloat by capping verbose output and deduplicating file reads, keeping the AI reliable over long sessions.
How does Sipcode deduplicate file reads?
It uses content-hash based deduplication and never serves stale bytes to the model.
What MCP tools does Sipcode provide?
It provides 15 MCP tools for inspecting context stats such as token waste, duplicate reads, drift, and cost forecasts.
What are the reported benefits?
A reproducible benchmark shows ~62% median token savings; Anthropic’s research reports a 29% quality lift and around 40% fewer agent errors when context stays clean.
Is Sipcode open source?
Yes, it is released under the MIT license.
Basic information
More Other MCP servers
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

Figs, Relationship Expert
Figs O'Sullivan, LMFTCouples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Comments