# NetLens [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/pzalutski-pixel/netlens-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 338  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/netlens

## Description
Read any web page as clean, ad-stripped Markdown past robots.txt and bot blocks, plus web search.

## Tools
Capabilities this server exposes over MCP:

- **web_search** — Search the web and return real result links (title, URL, snippet), parsed locally —
- **web_fetch** — Fetch any page and return its full content as clean Markdown.

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

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

## Documentation

## What NetLens MCP server does

The NetLens MCP server provides two MCP tools for web research: `web_search` finds pages and returns result titles, URLs, and snippets, while `web_fetch` retrieves a URL and converts its content to Markdown. A typical workflow is to search first, then fetch one or more result pages for the complete source text.

`web_fetch` defaults to the main article or content region and removes common page boilerplate such as navigation, advertisements, cookie interfaces, and link-heavy related-content blocks. It can also return the whole body, raw HTML, or a heading outline. Section selection makes it possible to retrieve one heading and its nested content instead of loading a long page in full.

## How it works

NetLens MCP server sends requests directly to the target website through the system `curl`, with browser-like headers. If curl is unavailable, it falls back to Python's standard-library HTTP functionality. It does not use a proxy or external reader service, and it does not check `robots.txt` before requesting a page.

HTML is converted locally with a parser that handles headings, lists, links, code blocks, and GitHub-Flavored Markdown tables. The extractor first looks for semantic regions such as `<main>`, `<article>`, or `[role=main]`. If those are absent, it selects the subtree with the strongest prose-to-link ratio. Hidden and non-rendering elements, recognized ad-network slots, and blocks dominated by links are excluded. Relative links are resolved, and the response charset is respected.

Search uses a selectable engine registry. `auto` tries available engines in order and reports skipped engines and their observed outcomes. Supported choices include DuckDuckGo, Bing, Mojeek, and SearXNG. SearXNG can provide answers, infoboxes, and suggestions when configured.

## Setup and configuration

Install the package through npm with `npx -y netlens-mcp` or through PyPI with `uvx netlens-mcp`. Add the corresponding command and arguments to the MCP client's server configuration, then restart the session. The package uses Python 3.10 or newer and has no third-party runtime dependencies.

No environment variables are required. Optional settings include `NETLENS_SEARCH_ENGINE` for the default search backend and `NETLENS_SEARXNG_URL` for a SearXNG instance with its JSON API enabled. Other variables control the user agent, response-size limit, cache lifetime, per-host delay, SearXNG connection timeout, and overall request timeout.

## Tools and capabilities

- `web_search`: accepts a required query plus optional result limit, engine, page, time range, and SearXNG category.
- `web_fetch`: accepts a required URL and optional `article`, `full`, `raw`, or `outline` mode.
- Section extraction: returns a named heading and its subsections.
- Output controls: preserve inline link targets, remove URLs while keeping link text, or cap returned characters.
- Search fallback: exposes the engine that answered and records engines that were skipped.
- Caching and request pacing: configurable through environment variables.

## Limitations and notes

The NetLens MCP server does not solve JavaScript rendering, Cloudflare challenge pages, or CAPTCHAs. A client-rendered shell is reported as such rather than treated as a successful empty fetch, and hard HTTP blocks are returned honestly.

Each search call retrieves one result page, normally about ten results. There is no deep pagination, so queries may need refinement when the desired result is not on the first page. Large responses can be truncated by the configured byte or character limits. Disabling links can substantially reduce output on pages containing many cross-references, but removes their destinations from the returned Markdown.

_Full upstream README: https://allmcps.com/mcp/netlens/readme_

