
Toolc
dev.toolcPublished by toolc.devv0.1.1Updated Oct 24, 2026
Optimizing compiler for agent tools: many MCP servers or REST APIs in, one lean endpoint out.
Overview
A local compiler that turns many MCP servers or REST APIs into one lean, cheaper tool surface served to an assistant over stdio.
- What you can do
- Compile a federation of MCP servers, OpenAPI specs or docs pages into one smaller tool surface, with each pass configurable as a toggle (R1, R17). Rewrite tool descriptions and merge near-duplicate tools into facade tools with deterministic routing (R4, R5). Optionally hide the whole catalog behind two meta-tools, search_tools and call_tool, for maximum context savings (R6). Summarize oversized results at serve time while keeping identifiers and sourcing details (R7). Log every call with arguments and results and cluster recurring errors into recommended fixes (R9).
- When to use it
- Useful when an assistant connects to several MCP servers or REST APIs and the combined tool definitions crowd the context window or degrade tool selection (R2). It suits setups that want lower per-task cost and more accurate tool choice without hand-pruning each server.
- Requirements
- Runs as a local process over stdio, installed from the npm package @toolc/cli; the README's quick start builds from source with pnpm. Needs a toolc.config.jsonc describing downstream servers or OpenAPI specs. The ANTHROPIC_API_KEY environment variable enables the LLM-assisted rewrite and consolidate passes; without it, toolc serves a mirror of the original tool surface.
Installation
In SourceWeft
- Open Toolc in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
toolc
The optimizing compiler for agent tool surfaces. Point it at your MCP servers, or just a REST API's OpenAPI spec, or even a docs page, and get back one endpoint that serves a smaller, smarter tool surface: cheaper for every agent that connects, more accurate on every task, with every call logged.
Connecting N MCP servers dumps every tool definition into the model's context, degrades tool selection, and forces improvised multi-hop call chains. toolc compiles the federation instead:
- Rewrite: LLM-optimized descriptions with sibling disambiguation
- Consolidate: families of near-duplicate tools (
search_x/find_x/get_x) merge into single facade tools with deterministic routing - Selection: the whole catalog compresses behind two meta-tools
(
search_tools/call_tool) when you want maximum context savings - Compaction: oversized results are summarized at serve time, preserving identifiers and sourcing details
- Compose: REST APIs join the pool straight from an OpenAPI spec, or from a drafted spec synthesized from their documentation
- Observe: every call logged with arguments and results; recurring errors cluster into recommended fixes
Benchmark
131 tools across 5 live servers, 30 tasks × 3 trials, judged answers (full grid · consolidation run):
Consolidation dominates both ends of the frontier: the selection surface is the cost lever, consolidation lifts accuracy everywhere. Every pass is a config toggle; pick the tradeoff per deployment.
Quick start
A downstream can be an MCP server or a bare REST API:
See SELF_HOSTING.md for Docker deployment.
Hosted
toolc.dev runs this same engine as a managed service: compiled HTTPS endpoints, a console with a playground and full-payload log explorer, docs-to-spec drafting, and error-driven fix recommendations.
Layout
packages/core: IR (Capability Graph), frontends (MCP, OpenAPI, docs synthesis), passes, emitpackages/gateway: runtime MCP server (mirror + compiled) with call logging and compactionpackages/cli: thetoolccommandpackages/harness: benchmark runner, grading, reportspackages/shared: config schema, errors
License
The engine (everything in this repository) is Apache-2.0, forever: anyone can compile and serve their own tool surfaces locally with the exact same compilation quality as the hosted product.
Source: README.md at commit 69f0bec
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts