contextforge-mcp
Integrates Spec Kit for a structured SDD workflow: define specifications, plan, generate tasks, and implement with graph-aware indexing.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@contextforge-mcpIndex codebase and show architecture overview"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
contextforge-mcp
MCP compression middleware that connects codebase-memory-mcp + headroom + Spec Kit into a unified, token-efficient workflow.
Architecture
Claude Code
├── codebase-memory-mcp ← graph queries (cbm_* tools)
│ │
│ └── large result
│ │
└── contextforge-mcp ← YOU ARE HERE
│
cf_compress_cbm(result, tool_name)
│
└── compressed result (60-95% fewer tokens)ContextForge does NOT proxy codebase-memory-mcp — both servers run independently. The agent calls CBM for graph queries, then passes results through ContextForge for compression. This design is reliable, cross-platform, and works with any MCP client.
Related MCP server: ContextForge
Install
npm install -g codebase-memory-mcp
pip install "headroom-ai[all]"
pip install contextforge-mcpSetup
# Health check
contextforge-mcp doctor
# Configure Claude Code (writes .mcp.json with both servers)
contextforge-mcp install --target claudeWorkflow
# 1. Query the graph (via codebase-memory-mcp)
result = cbm_search_graph(name_pattern=".*Payment.*", label="Function")
# 2. Compress the result (via contextforge-mcp)
compressed = cf_compress_cbm(result=result, tool_name="search_graph")
# → [ContextForge ✓ search_graph: 8420→612 tokens (93% saved in 45ms)]
# 3. Use compressed result in your context
# 4. Check savings
cf_stats()Tools (9 total)
Compression
Tool | Description |
| Compress CBM tool output |
| Compress arbitrary text |
Stats
Tool | Description |
| Session token savings + cost estimate |
| Reset session counters |
Spec Kit
Tool | Description |
| Compressed spec.md |
| Compressed plan.md |
| Compressed tasks.md |
| Any artifact |
| Full bundle (spec+plan+tasks) |
| List all features + phase |
Supported CBM tool names for cf_compress_cbm
search_graph · search_code · get_architecture · find_dead_code · find_similar_code · get_impact · trace_path · trace_call_path · cypher_query · get_cross_service_links · get_node_details
Add to CLAUDE.md
## ContextForge MCP — Compression Workflow
After EVERY codebase-memory-mcp tool call that returns a large result,
immediately call cf_compress_cbm(result, tool_name) to compress it.
| CBM Query | Then compress with |
|-----------|-------------------|
| cbm_search_graph(…) | cf_compress_cbm(result, "search_graph") |
| cbm_get_architecture() | cf_compress_cbm(result, "get_architecture") |
| cbm_search_code(…) | cf_compress_cbm(result, "search_code") |
| cbm_trace_path(…) | cf_compress_cbm(result, "trace_path") |
| cbm_get_impact(…) | cf_compress_cbm(result, "get_impact") |
Call cf_stats() at end of session to measure total savings.Credits
codebase-memory-mcp — MIT
headroom — Apache 2.0
spec-kit — MIT
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Coordinate coding agents through MCP using existing AI plans, saved work, and independent checks.
AI-powered spec-to-task decomposition and execution orchestration for coding agents.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTransforms AI agents into spec-driven product engineers by managing the software project lifecycle through requirements, design, implementation, and archiving phases with state-aware MCP tools.17MIT
- AlicenseNot gradedqualityBmaintenanceMCP orchestrator combining code knowledge graph and context compression into a single pipeline to reduce token usage by 60-99%.MIT
- AlicenseBqualityBmaintenanceEnables coding agents to incrementally index project text and code, persist decisions and constraints with clear sources, and assemble focused project context across sessions via MCP.342005MIT
- AlicenseAqualityCmaintenanceEnables AI coding agents to intelligently index and search codebases with sub-20ms retrieval, 8x memory compression, and cross-encoder reranking via MCP stdio.5MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/capatinore/contextforge-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server