NetLens logo

NetLens

Fetches web pages as clean Markdown and searches for real result links through MCP tools.

Install NetLens

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "netlens": {
      "command": "npx",
      "args": [
        "-y",
        "netlens-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y netlens-mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The NetLens MCP server searches the web and fetches pages as full, ad-stripped Markdown for AI agents. It sends browser-like requests through system curl, does not consult robots.txt, and converts selected page content locally without using a third-party reader or proxy. Use it when built-in web tools return blocked, empty, summarized, or cluttered results. JavaScript-rendered pages, Cloudflare challenges, and CAPTCHAs remain unsupported.

Use cases

  • Search for technical documentation and retrieve the source pages
  • Fetch articles that built-in web tools return as blocked or empty
  • Extract one section from a long reference page
  • Inspect page structure before loading a large document
  • Reduce web-page boilerplate before sending content to an agent

Key features

  • Web search with selectable engines and fallback reporting
  • Full-page conversion to clean Markdown
  • Browser-like direct fetching without robots.txt checks
  • Article, full-body, raw HTML, and outline modes
  • Heading-based section extraction
  • Configurable caching, limits, delays, and timeouts

Tools2

What NetLens lets your agent do. Expand a tool for its parameters.

Self-reported~41 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 83d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · netlens-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads338Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed2Callable tools this server registers over MCP.

How NetLens works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about NetLens

NetLens is an MCP server that connects AI agents to the public web through direct page fetching and web search. Its main tools are `web_search`, which returns real result links and snippets, and `web_fetch`, which returns page content as clean Markdown with optional section, outline, full-body, or raw HTML modes.

Install it with `npx -y netlens-mcp` or `uvx netlens-mcp` in an MCP client configuration. Add the selected command and arguments to the client's server settings, then restart the session so the tools load.

Yes, NetLens can be configured in Cursor as a standard MCP server. Use the npm or PyPI command in Cursor's MCP configuration and restart the session.

Yes, NetLens does not consult robots.txt when fetching a URL and sends browser-like request headers. It does not bypass JavaScript challenges, Cloudflare challenge pages, or CAPTCHAs.

Pass the target heading through the `section` argument of `web_fetch`. For very long pages, call `web_fetch` with `mode="outline"` first, then request the desired heading and its nested content.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNetLens AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/netlens?style=directory)](https://allmcps.com/mcp/netlens)
HTML Embed
<a href="https://allmcps.com/mcp/netlens"><img src="https://allmcps.com/api/badge/netlens?style=directory" alt="NetLens on AllMCPs" /></a>