Skip to main content
Glama

web-research-mcp

A read-only MCP server that fetches public web pages and extracts clean text, metadata, headings, and focus-matched facts.

Demo

Related MCP server: sifthound

Quickstart

Requires Node.js 20 or newer.

git clone <repository-url>
cd web-research-mcp
npm install
npm run build
npm run smoke

Replace <repository-url> with this repository's clone URL. npm run smoke spawns the built server over stdio, lists its tools, and calls both tools against https://example.com/. It requires internet access but no API key.

Run the offline test suite with:

npm test

Connect to Cursor

Create .cursor/mcp.json in your project (or use your global Cursor MCP configuration) and replace the path with the absolute path to this checkout:

{
  "mcpServers": {
    "web-research": {
      "command": "node",
      "args": ["/absolute/path/to/web-research-mcp/dist/index.js"]
    }
  }
}

Restart Cursor after saving the file.

Connect to Claude Desktop

Add the server to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "web-research": {
      "command": "node",
      "args": ["/absolute/path/to/web-research-mcp/dist/index.js"]
    }
  }
}

On Windows, use an absolute path such as C:\\path\\to\\web-research-mcp\\dist\\index.js. Restart Claude Desktop after saving the file.

Test with MCP Inspector

From the repository root, after building:

npx @modelcontextprotocol/inspector node dist/index.js

The Inspector opens a browser UI where you can list the tools and invoke them interactively.

Tool reference

Tool

Inputs

Output example

fetch_page

url (string, required)maxChars (number, 1–20,000, default 8,000)

{"finalUrl":"https://example.com/","status":200,"contentType":"text/html","title":"Example Domain","text":"This domain is for use in documentation examples ...","truncated":false}

extract_facts

url (string, required)focus (string array, optional)maxFacts (number, 1–25, default 10)

{"metadata":{"title":"Example Domain","description":null,"canonicalUrl":null,"author":null,"publishedDate":null,"siteName":null,"language":"en"},"headings":[],"jsonLdTypes":[],"facts":[{"text":"This domain is for use in documentation examples without needing permission.","heading":null}]}

extract_facts includes the facts array only when focus is supplied. On failure, both tools return an MCP error result whose text body is JSON:

{ "code": "INVALID_INPUT", "message": "url: Too small: expected string to have >=1 characters" }

How it works

Placeholder: document the end-to-end flow here (input validation, SSRF checks, HTTP fetch with redirects and limits, Cheerio content extraction, and JSON result formatting).

Known limitations

  • No JavaScript-rendered pages. The server fetches and parses the initial HTML response; content rendered client-side by a SPA or infinite scroll is not available.

  • No login or authenticated requests. Only public, unauthenticated pages can be fetched.

  • DNS rebinding is not fully prevented. Hostnames are resolved and checked before fetch() connects, but the resolve-then-fetch sequence is not atomic, so a malicious DNS server could change the answer in between.

  • Main-content extraction is heuristic. The parser prefers article, then main, then body, and removes common chrome; it can still include or omit the wrong content on unusual layouts.

  • Responses are limited to HTML, 2 MB, and 10 seconds per fetch. Non-HTML content types and oversized responses are rejected.

Example prompts

  1. "Fetch https://example.com and summarize the main points in three bullets."

  2. "Extract the title, author, publication date, and JSON-LD types from https://research.example/blog/post."

  3. "Find every sentence about pricing on https://example.com/pricing and show the nearest heading for each quote."

Available Tools

2 tools
extract_factsExtract factsA
Read-only

Fetch one public http(s) page and extract compact, structured facts without returning the whole page. Returns JSON with metadata (title, description, canonical URL, author, published date, site name, language) gathered from meta tags, Open Graph and JSON-LD; the first 20 h1-h3 headings; all JSON-LD @type values in jsonLdTypes; and, when focus terms are supplied, up to maxFacts matching sentences in the facts array, each with its text and nearest preceding heading. Use this for quick factual lookups, citation details, or scanning a page for specific terms; prefer fetch_page when you need the full readable text.

Inputs: url (required), focus, maxFacts.

fetch_pageFetch pageA
Read-only

Fetch one public http(s) page and return its readable main content as clean text. Use this when you need the full body of a page to read, quote, or summarise. Returns JSON with the final URL after redirects, HTTP status, content type, page title, up to maxChars characters of cleaned text, and a truncated flag. Prefer extract_facts instead when you only need metadata, headings, structured data, or sentences about specific terms, because it returns a smaller result.

Inputs: url (required), maxChars.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 2 tools

    Disambiguation4/5

    Both tools fetch a page, but the descriptions draw a sharp line: fetch_page returns full readable text, extract_facts returns metadata/headings/JSON-LD/focus sentences, and each explicitly says when to prefer the other. Only residual risk is an agent choosing full text when a compact fact set was needed, but the cross-references make that unlikely.

    Naming Consistency5/5

    Both names follow the same snake_case verb_noun pattern (fetch_page, extract_facts) with verbs that accurately signal the operation.

    Tool Count3/5

    Two tools is thin for a server branded as web research; the pair is coherent but leaves little surface area beyond single-page retrieval. It sits at the borderline where the set feels under-scoped rather than well-scoped.

    Completeness3/5

    The domain is web research, and the surface covers only retrieval of known URLs — there is no discovery/search tool, no multi-page crawl, and no non-HTML handling. The two tools are solid and complementary, but the missing search operation is a notable gap for research workflows.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to fetch URLs and extract the main content as plain text, with optional HTTP/SOCKS5 proxy support and SSRF protection.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and MCP clients to fetch webpages and crawl sites, extract main content, and convert it into clean Markdown with preserved links for fast, token-efficient scraping.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and MCP clients to fetch and crawl webpages, extract main content, preserve links, and convert pages into clean Markdown to reduce token usage.
      MIT