# mcp-web-tools [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/paifas/mcp-web-tools  
**GitHub Stars:** 2  
**npm Downloads (last month):** 170  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-web-tools

## Description
MCP server providing web search tools for AI assistants

## Tools
Capabilities this server exposes over MCP:

- **web_search** — Search the web. Returns results with titles, URLs, and snippets. Supports filtering by domain, topic, time range, and search depth. Provider is configured server-side (Tavily or SearXNG).
- **web_read** — Extract clean content from web pages. Returns page text stripped of navigation, ads, and scripts. Supports up to 20 URLs per request.
- **credit_balance** — Check your provider API credit balance and usage.
- **github_get_repo_structure** — List the directory structure of a GitHub repository path (single level, non-recursive). Useful for understanding project layout and discovering files. Works without a token (anonymous rate limits apply — set GITHUB_TOKEN for higher limits).
- **github_read_file** — Read the full content of a file in a GitHub repository. Returns the decoded text. Files larger than 512 KB or detected as binary are rejected. Works without a token (anonymous rate limits apply — set GITHUB_TOKEN for higher limits).
- **github_search_repo** — Search a GitHub repository across code, issues, and pull requests in one call. Code search uses /search/code (requires the repo to be indexed by GitHub). Issues and PRs use /search/issues. Works without a token (anonymous rate limits apply — set GITHUB_TOKEN for higher limits).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-web-tools": {
    "command": "npx",
    "args": ["-y","mcp-web-tools"]
  }
}
```

## Documentation

## What mcp-web-tools does

mcp-web-tools exposes web discovery, webpage extraction, provider usage checks, and public GitHub repository tools over MCP. Web search returns titles, URLs, and snippets, while page reading removes common navigation, advertising, scripting, and other page clutter. GitHub access uses the GitHub REST API directly and is separate from the configured web search backend.

The server can run without API keys or configuration. Its default search path uses a public SearXNG instance, and its default extraction path uses Firecrawl's keyless service. For controlled availability, rate limits, or network isolation, the backends can be replaced with hosted or self-hosted services.

## How it works

Search and extraction are configured independently. `WEBTOOLS_SEARCH_PROVIDER` selects SearXNG or Tavily, while `WEBTOOLS_EXTRACT_PROVIDER` selects Firecrawl, Tavily, or `none`. Setting the extraction provider to `none` removes `web_read` from the available tools. `SEARXNG_URL`, `FIRECRAWL_URL`, and provider API keys point the server at alternate services.

The `web_search` tool accepts a query and can limit result count, select a topic, constrain dates, filter domains, and request an answer summary. Results can be limited to 20 items. `web_read` accepts one to 20 HTTP or HTTPS URLs and can request basic or advanced extraction, with optional image URLs. Credit accounting depends on the active provider; `credit_balance` reports usage where supported and returns an unsupported status for providers such as SearXNG.

## Setup and configuration

Run the package with `npx -y mcp-web-tools` from an MCP client. Claude Code can register it with `claude mcp add mcp-web-tools -- npx -y mcp-web-tools`; Claude Desktop uses the same command and arguments in its MCP server configuration. OpenCode supports a local server entry using the npx command.

No environment variables are needed for the default setup. To use Tavily for search, set `WEBTOOLS_SEARCH_PROVIDER=tavily` and provide `TAVILY_API_KEY`. Tavily can also handle extraction when selected with `WEBTOOLS_EXTRACT_PROVIDER=tavily`. A Firecrawl key can be supplied through `FIRECRAWL_API_KEY`, and `FIRECRAWL_URL` can target a self-hosted Firecrawl service.

A custom SearXNG deployment is selected with `SEARXNG_URL`. SearXNG must expose JSON search output. A fully local arrangement can combine self-hosted SearXNG with self-hosted Firecrawl; the Firecrawl stack requires Postgres, RabbitMQ, Redis, and Playwright.

## Tools and capabilities

- `web_search` searches the web through SearXNG or Tavily. It supports general, news, and finance topics; time ranges; date boundaries; included or excluded domains; result limits; and selectable search depth.
- `web_read` extracts content from up to 20 web pages per request. Advanced extraction removes navigation, ads, sidebars, and footers; image URLs can optionally be retained.
- `credit_balance` checks provider credits and usage when the selected provider offers that facility.
- `github_get_repo_structure` lists one directory level for a public repository path and accepts a branch, tag, or commit reference.
- `github_read_file` reads repository files up to 512 KB and rejects binary content.
- `github_search_repo` searches a repository's code, issues, and pull requests. Code search requires `GITHUB_TOKEN`; issue and pull-request searches can run anonymously.

## Limitations and notes

The default public SearXNG instance is volunteer-operated and may be unavailable or rate-limited. Replacing it with another instance or a self-hosted deployment avoids dependence on that endpoint. Provider credit costs vary by backend and extraction or search depth. GitHub tools access public repository content through GitHub's REST API, and anonymous code search is not supported by GitHub.

_Full upstream README: https://allmcps.com/mcp/mcp-web-tools/readme_

