mcp-web-tools
Give a budget or local-model assistant a search → read → cite workflow over MCP. Search for sources, read selected pages as Markdown, and use the existing GitHub tools when the source is a repository. Search and reading have independently configurable providers.
Install
You need Node.js ≥22.13.0, npm, and a client that can launch local MCP servers over stdio. No global npm installation or Docker is needed for the hosted setup.
One free Tavily key for search and reading
- Get a key from Tavily.
- Add the following illustrative configuration to a client using
mcpServersnotation, such as LM Studio. Replace the placeholder locally; keep the key out of source control. Merge the entry if the file already has servers. - Connect the server and confirm that
web_searchandweb_readappear.
{
"mcpServers": {
"mcp-web-tools": {
"command": "npx",
"args": ["-y", "mcp-web-tools"],
"env": {
"WEBTOOLS_SEARCH_PROVIDER": "tavily",
"TAVILY_API_KEY": "tvly-REPLACE_WITH_YOUR_KEY"
}
}
}
}
Selecting Tavily for search also selects it for reading unless you explicitly
override WEBTOOLS_EXTRACT_PROVIDER. Both reuse the same key.
Tavily documents 1,000 free credits every month, with no credit card required (policy checked 2026-11-20). Search and reading share those credits: basic search costs 1 credit; basic extraction costs 1 credit per 5 successful URL extractions. A credit is not a complete research task. Model inference is separate, and provider policies can change. Check your provider dashboard before enabling paid capacity.
See client setup for LM Studio's mcp.json editor,
OpenCode V2's different mcp.servers shape, and a generic stdio recipe.
These instructions are documentation-based, not a verified client/model compatibility matrix.
Checkout versus npm: the changelog describes each release.
npx runs the published package, which can lag this source tree between releases.
To run the latest source, build from the checkout.
How it works
- Call
web_searchwith a focused query and a smallmaxResults. - Choose useful sources, then call
web_readwith their URLs. Passquerywith what you want to find, and Tavily returns only the relevant passages instead of the whole page, at no extra cost. - Ask the assistant to cite those URLs and distinguish evidence from inference.
Each page is limited to 20,000 characters, cut at a paragraph boundary with a
notice, so a long page cannot silently fill the context. See
tool contracts for the query option and the length limit.
Model tool-use quality depends on the model and client.
Example Output
Illustrative tool call and output, not a live result or benchmark:
{
"name": "web_search",
"arguments": {
"query": "example documentation",
"maxResults": 1,
"includeAnswer": false
}
}
### 1. [Example documentation](https://example.com/docs)
> An illustrative search snippet.
---
Sources:
- [Example documentation](https://example.com/docs)
Then read a selected source with
web_read({"urls":["https://example.com/docs"]}).
Customizing backends
| Setup | Search / reading | What to expect |
|---|---|---|
| Recommended hosted start | Tavily / Tavily | One key; recurring free allowance shared across operations |
| Runtime defaults, no environment settings | Public SearXNG / keyless Firecrawl Cloud | Best-effort: public-instance access and daily per-IP scraping caps |
| Optional self-hosted setup | Your SearXNG / your compatible Firecrawl v2 | Operate infrastructure; outbound search and scraping traffic still required |
Runtime defaults remain https://search.mdosch.de for SearXNG and
https://api.firecrawl.dev for Firecrawl. Public SearXNG instances can disable
JSON or throttle requests. Firecrawl's keyless policy
has daily request and credit caps per IP; it is not a 1,000-credit monthly allowance.
There is no automatic provider or paid fallback.
Configuration and provider combinations · Provider capability differences
Self-hosting guide: SearXNG needs JSON enabled; Firecrawl
must support /v2/scrape. The guide links the official v2.11.162 deployment example.
Tools
| Tool | Purpose |
|---|---|
web_search | Titles, URLs, snippets, and an optional Tavily-generated answer |
web_read | Read 1–20 URLs; preserve successes and report per-URL failures |
credit_balance | Tavily account-plan allowance when Tavily is the search provider |
github_get_repo_structure | List one repository directory |
github_read_file | Read a text file up to 512 KiB |
github_search_repo | Search code, issues, and PRs; code search requires a GitHub token |
Setting WEBTOOLS_EXTRACT_PROVIDER=none removes web_read from the tool list.
The other five remain registered.
Security note
This is a trusted-client stdio server. Queries and URLs reach the selected providers; GitHub content reaches the client/model, including private content when your token permits it. URL validation is not SSRF protection. Debug logs include search queries. See security and data flows.
Guides
The npm package includes the executable, README, and the guides linked below.
- Client setup
- Configuration and tool contracts
- Self-hosting and troubleshooting
- Contributing and checks · Changelog