Toolforge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Toolforge
Progressive MCP tooling that keeps your context lean.
Toolforge measures the real token cost of MCP tool definitions and gives coding agents (Claude Code, Cursor, Codex, etc.) a progressive way to discover and load tools — so you stop paying the full context tax on every turn.
Why this exists
Every MCP tool definition (name + description + JSON schema) is loaded into the model context before any work happens. Real measurements from the community show:
Setup | Typical token cost |
Median single server | ~4.7k tokens |
Typical 5-server setup | ~55k tokens |
Heavy / unoptimized servers | 100k–247k tokens |
That cost is paid on every turn, shrinks the usable context window, raises your bill, and can degrade tool-selection quality.
Toolforge attacks this problem directly.
Related MCP server: token-lens-mcp
Features (v0.1)
Accurate audit – measure token cost of any set of MCP tool definitions (
cl100k_base)Clear breakdowns – per-tool and per-server tables so you know what is expensive
Progressive MCP server – register tools once, then expose only lightweight names + short descriptions until the agent asks for a full schema
Project config –
.toolforge.tomlprofiles for allow/deny and load policiesLocal-first – no required cloud services; optional Anthropic key only for future ranking features
Quick Start
# From source
git clone https://github.com/cliwireee/toolforge.git
cd toolforge
pip install -e ".[dev]"
# Or once published
pip install toolforgeAudit tool definitions
# Dump tools from your agent / MCP inspector into a JSON file, then:
toolforge audit --tools tools.json --server my-github-mcpStart the progressive MCP server
# Requires: pip install mcp
toolforge serveAdd to your Claude Code / Cursor MCP config:
{
"mcpServers": {
"toolforge": {
"command": "toolforge",
"args": ["serve"]
}
}
}Then the agent can:
register_tools– load a batch of tool definitions into the progressive registrylist_lightweight_tools– get names + short descriptions only (cheap)get_tool_schema– pull the full schema for tools it actually needsestimate_context_cost– see the token impact before loading everything
Create a project config
toolforge initDevelopment
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check src testsRoadmap
Live discovery of configured MCP servers (Claude Code / Cursor configs)
True proxy mode that sits in front of upstream MCP servers
Code-mode execution path for heavy tool sets
Security / abandonment signals for MCP packages
Smarter ranking of which tools to surface first
Contributing
See CONTRIBUTING.md. Good first issues are labelled.
License
MIT – see LICENSE.
Security
See SECURITY.md for how to report vulnerabilities.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Grade MCP tool definitions for agent-readiness: score, A-F grade, fixes, est. token cost.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceReduces token costs from MCP tool schemas by analyzing bloat, compressing descriptions, and selecting only relevant tools for AI agents.MIT
- AlicenseNot gradedqualityDmaintenanceEnables analyzing and optimizing context window token usage by measuring, compressing, and eliminating waste from MCP tool definitions.59 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to use many MCP servers without context bloat by exposing meta-tools (search, load, call, run_code) that reduce token usage via progressive disclosure and result trimming.MIT
- AlicenseBqualityBmaintenanceEnables LLM clients to select the most relevant MCP tools from a catalog within a context-token budget, without executing them or shipping keys.11MIT