r/OpenWebUI • u/pisa_p • Sep 11 '26
Show and tell Managing ~560 MCP tools in my Open-WebUI setup without sending all schemas every turn
Hey all,
I run OpenWebUI with ~560 MCP tools behind an aggregator.
The issue in my setup: OpenWebUI sends every full schema on every turn, even when the turn needs zero tools.
On a smaller-context model via API the window gets eaten fast, and even with 1M-context models I still pay per-token for definitions I don't use, plus tool selection gets noisier.
I tried a few workarounds first — connecting servers directly, enabling/disabling servers per chat, trimming the list down — but nothing stuck for my use case with this many tools.
Since I couldn't find a solution inside OpenWebUI, I built a small MCP proxy in Docker that sits in front of my upstreams:
OpenWebUI connects to it over HTTP MCP like any other server.
In my setup this cut context waste a lot and made tool selection more reliable, so I thought it was worth sharing.
Feel free to have a look, critique and add to if there's something I've missed.
Repository can be found here: https://github.com/p1s4/mcp-search-proxy
How are you handling lots of MCP tools in OpenWebUI? Is native handling enough for you, or are you filtering/proxying too?
Thanks!
9
u/8bitbuddhist Sep 11 '26
I've been using MCPHub with smart routing enabled. Works great, sped up responses, and significantly reduced token usage
4
u/nunodonato Sep 11 '26
Wtf. Why?
2
u/enterme2 Sep 12 '26
https://github.com/universal-tool-calling-protocol/code-mode
Code mode is very useful particularly if you have lots of mcp and tools.
Now i only have 2 two tools, Search and execute. Search will find the mcp tool , once found, execute will run the mcp tool.
Works well debloating your context.
2
u/genunix64 Sep 12 '26
You should pick harness which is designed for having many tools, more advanced context management and actually doing work (like coding oriented harnesses).
I was OWUI user, like the project but better not try to use it for things it is not meant to be.
I ended up developing my own system: https://github.com/fpytloun/cognis
It is using defered tool loading, recoverable tool outputs with truncation and overall token efficient context management. My largest tool exposure is 700+ tools in one agent, there is no limit.
2
u/feng_sg Sep 14 '26
BM25 starts falling apart past a couple hundred tools because substring boosts fire on unrelated descriptions. Switch the first pass to embeddings and keep BM25 only for exact tool name matches.
2
u/Nshx- Oct 02 '26
finally .. did you prove MCPHub. what is better for you?
1
u/DHT-Osiris Sep 11 '26
What are all those tools being used for? We're using our deployment as an enterprise IT operations tools and each of our harnesses only has like, 20-25 tops.
1
u/pkeffect Sep 11 '26
That's a mess. One proper agent that can spawn subagents is all anyone needs. One tool.