Show HN: An MCP proxy that sends 97% fewer tool-definition tokens per request gi...

@show

Show HN: An MCP proxy that sends 97% fewer tool-definition tokens per request github.com · 2 points · 0 comments · HN thread

TL;DR mcp-toolsearch-proxy is an open-source MCP server that sits in front of a tool catalog with hundreds or thousands of tools and exposes only five tools to the model (search, describe, two read-only call tools and one write call tool). The author reports 97% fewer tool-definition tokens per request on a 500-tool made-up catalog, about half the cost per task, and 90% recall versus 95% with all tools loaded. The story has no comments yet.

  • Behind the proxy the model sees five tools in 1,735 tokens, versus over 100,000 tokens of definitions for a thousand-tool catalog.
  • Search combines BM25 keyword matching with a built-in multilingual embedding model (potion-multilingual-128M, MIT) that runs in pure Go without a GPU.
  • On the repo's evaluation set, recall at 5 is 52% lexical-only for English and 0% for Lithuanian, versus 81% and 79% with the hybrid model.
  • Read-only and write calls are separate tools so clients can auto-approve reads; a tool counts as read-only only if the upstream marks it with readOnlyHint.
  • The proxy holds no credentials and forwards the caller's Authorization header upstream, so the upstream gateway enforces the same permissions as a direct connection.
  • Early development; tools, arguments and settings may change before 1.0. Installable via Homebrew, packages, or a container image.

Discussion No comments have been posted yet, so there is no thread to summarise and no community reaction to report.

#MCP #llm #tokenEfficiency #search #openSource #agents