search and extract
tools available to an agent. This setup uses LibreChat’s MCP Tool Library.
Install on the LibreChat server
Use uv where LibreChat runs. Replace/absolute/path/to/webrouter with a directory writable by its
service account. On Docker, use paths inside the LibreChat container and keep
the install directory and any uv-managed Python on persistent storage.
webrouter entry from the example YAML
into mcpServers in your librechat.yaml. Set the two absolute paths to the
installed executable and the dedicated empty home, then restart LibreChat.
Keep the MCP child’s home empty. The example clears the inherited environment,
skips working-directory and remembered credential files, and disables the
load_env tool. WebRouter can then use keyless search and extraction without
using the LibreChat service’s provider keys.
Tool discovery and calls through LibreChat’s stdio connection were verified
with LibreChat 0.8.9 and WebRouter 0.17.0 on macOS arm64 and in the stock
LibreChat 0.8.9 Linux arm64 container. On that Alpine image, uv built the
Playwright dependency from source. Allow source builds when installing there.
Add the tools to an agent
- Open an agent in LibreChat’s Agent Builder and choose a model that supports tools.
- In Tools, select Add, filter to MCP servers, and add
searchandextractfromwebrouter. - Save the agent and ask it to find the official Python
asynciodocumentation, read the introduction, and cite the page it used.