Show HN: Standalone SearXNG CLI+MCP (no server needed)

nikvdp1 pts0 comments

Hi HN, Codex and Claude are pretty good at (re)searching things on the web these days, but the open coding agents (OpenCode, pi coding agent and friends) don t have access to the labs proprietary search APIs. I wasn t happy with this state of affairs, and wanted a truly open source version that was portable and harness independent.I d previously implemented agentic web search using SearxNG for treechat.com with good results, so that was my first choice. The problem is that SearxNG expects to run as a standalone python service, which is a lot of overhead and infra to deal with just to give your agent reasonable web search functionality.So I built a standalone CLI that embeds SearxNG as a library and exposes its search tools as a CLI and over MCP without having to spin up any extra services. It also has built-in tools for retrieving and markdownifying arbitrary URLs, and is agent friendly with skills and agent onboarding info built directly into the CLI. Together with the search functionality, this gives an agent everything it needs to competently search the web so long as it can find the `searxng` binary on PATH.Getting all that to work was actually quite tricky but works reliably: I first have CI build a wheel of upstream SearxNG, then my CLI uses that wheel as a dep, and then I package the entire thing into an easy to deploy single-file binary using pybin[1] to avoid issues with pyinstaller.The result is a portable easy to use tool that gives agents like Hermes, Openclaw, pi coding agent, OpenCode, or whatever agent you prefer the ability to reliably search the web.[1]: https://github.com/nikvdp/pybin

agent search searxng standalone coding built

Related Articles