toolc
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.
toolc
Live playground — type a task, watch 42 tools collapse into 3.
MCP Context Compiler — turn a fat tool catalog into three tools the model can actually use.
search_tools · describe_tool · call_tool

42 tools → 3 meta-tools. 11.0x fewer tokens. Hit rate still 8/8. Cursor MCP handshake: PASS.
Install
npm install
npm run benchmark
npm run verify:cursorRelated MCP server: anygpt-discovery
Before / After
Mode | Tools exposed | Token estimate | Hit rate |
Raw | 42 | 2174 | 8/8 |
Compiled | 3 meta-tools | 198 | 8/8 |
The model stops swallowing every schema up front. It discovers on demand, expands only what it needs, and calls through a compiled facade.
Why toolc
Agent stacks keep hitting the same wall:
too many tools
too much schema
sibling-tool confusion
context burned before the task starts
Raw MCP is fine with a handful of tools. It gets expensive and noisy with dozens of servers.
toolc treats that as a compiler problem, not a prompt problem.
What it does
Collect tools from mocks or live MCP (
stdio/http/sse)Select task-relevant tools with domain + action ranking
Rewrite descriptions to cut ambiguity
Consolidate near-duplicates into families
Facade as
search_tools/describe_tool/call_toolServe over MCP stdio for Cursor and other hosts
Benchmark raw vs compiled tokens and hit rate
Use with Cursor
Merge
examples/mcp.cursor.jsoninto~/.cursor/mcp.json(setcwdto this repo).Reload MCP / restart Cursor.
Confirm the host only sees three tools:
search_tools,describe_tool,call_tool.
{
"mcpServers": {
"toolc": {
"command": "npx",
"args": [
"tsx",
"src/cli.ts",
"serve",
"--config",
"examples/config.example.json"
],
"cwd": "/absolute/path/to/toolc"
}
}
}Verify without opening the IDE:
npm run verify:cursorExpected:
tools/list: call_tool, describe_tool, search_tools
search_tools: hit filesystem.read_file
describe_tool: schema ok
call_tool: mock dispatch ok
Cursor-equivalent MCP handshake: PASSQuick start
npm install
npm run benchmark
npm run serveCompile one query:
npx tsx src/cli.ts compile --config examples/config.example.json --query "Find and read the repository README file."Live upstream collect + call:
npm run collect:live
npm run serve:liveCLI
toolc collect --config <path> [--live]
toolc compile --config <path> --query <text> [--limit <n>] [--live]
toolc serve --config <path> [--query <seed>] [--demo <query>] [--jsonl] [--live]
toolc benchmark --config <path> --tasks <path> [--limit <n>] [--live]servers with
mockToolsstay offline-friendly by default--livecollects from real MCP servers and forwardscall_toolservedefaults to MCP stdio--demoprints a one-shot search → describe → call walkthrough
Not another router
toolc is not just semantic search, lazy loading, or dynamic discovery.
Those stop at retrieval. toolc compiles the interface:
rewrites descriptions
merges duplicate families
emits facade tools
measures the before/after tradeoff
Who this is for
MCP-heavy agent builders
framework authors
local-model hackers
teams whose tool catalogs grow faster than their context windows
Skip it if you only have a few tiny tools, or your provider's built-in tool search is already enough.
Layout
src/
catalog/ collect + normalize
compile/ select → rewrite → consolidate → facade
runtime/ MCP server + upstream pool
benchmark/ raw vs compiled reports
examples/ mock catalog, live echo, Cursor config
bench/tasks/ example suite
tests/
.github/ CIStatus
MVP end-to-end:
collect from mocks or live MCP
compile with clean selection
serve three meta-tools over MCP stdio
forward live
call_toolto upstream serverspublishable numbers: 42 → 3 tools, 11.0x, 8/8
License
MIT
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
Stateless agentic tools over MCP: concept extraction, long-context, knowledge graph, planning.
Multiple MCP tools, persistent graph memory, token-saving data pointers, and more.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Patterns for designing and reviewing AI skills, agents, and multi-agent workflows. Find guidance on context economy, delegation, verification, and tool design; inspect claims, worked examples, maturity labels, and source references. Five read-only tools let agents discover relevant patterns, compare concise cards, read specific sections, and explore relationships. Hosted Streamable HTTP at https://agentic-atlas.dev/mcp/ — no installation, account, or API key required. Browse the atlas at https://agentic-atlas.dev/.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA context-efficient proxy that replaces individual tool schemas with three meta-tools for semantic search, schema retrieval, and tool routing. It enables agents to manage hundreds of backend tools while maintaining a constant context footprint of approximately 500 tokens.1-
- AlicenseNot gradedqualityDmaintenanceExposes 5 meta-tools that allow AI agents to autonomously discover and execute tools from 100+ MCP servers, reducing token usage by 99%.1MIT
- FlicenseAqualityDmaintenanceExposes 3 meta-tools to efficiently search and execute 174 backend CRUD tools, reducing context token usage by ~98%.3-
- AlicenseNot gradedqualityBmaintenanceA context-aware MCP proxy that reduces token usage by exposing only 3 tools (mcp_search, mcp_call, mcp_schema) to LLMs, with on-demand tool loading and BM25 search.149 npm2MIT