Skip to main content
Glama

# web-tool-mcp

A stdio MCP server derived from web-search-mcp that separates lightweight discovery from on-demand page reading.

Tools

Searches through the inherited Bing → Brave → DuckDuckGo backend and returns only titles, URLs, and search snippets (five results by default). It does not fetch result pages. Query syntax is passed to the backend; operators such as site:, filetype:, intitle:, exclusions, and exact phrases work when supported by the selected engine.

web_extract

Fetches one to five supplied HTTP(S) URLs and returns cleaned page text with headings and links. It uses an inline character budget of 15,000 per page by default. Longer pages return a head-and-tail window and save the complete extracted text under the OS temporary directory (WEB_EXTRACT_SAVE_DIR can override it), with a path and a read_file paging hint. Images appear as [IMAGE: alt] placeholders with image links where available. HTML extraction tries HTTP first and the inherited browser extractor as a fallback. PDF URLs are recognized but PDF text extraction is not implemented in this build. Pages requiring JavaScript, login, or interaction may still need a browser tool.

Related MCP server: Web Search MCP Server

Run

Requires Node.js 24+.

npm install
npm install-scripts approve esbuild
npm install
npx playwright install
npm run build
# Test
npx @modelcontextprotocol/inspector node dist/index.js

or

pnpm install
pnpm approve-builds
pnpm install
pnpm dlx playwright install
pnpm run build
# Test
pnpm dlx @modelcontextprotocol/inspector node dist/index.js

If you want to use firefox;

pnpm dlx @modelcontextprotocol/inspector -e BROWSER_TYPES=firefox node dist/index.js

Example MCP configuration:

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

Useful environment settings inherited from the base project include DEFAULT_TIMEOUT, BROWSER_HEADLESS, BROWSER_TYPES, BROWSER_FALLBACK_THRESHOLD, ENABLE_RELEVANCE_CHECKING, and FORCE_MULTI_ENGINE_SEARCH.

Available Tools

2 tools
web_extractA

Extract readable page content from one or more web page URLs. Returns cleaned Markdown/text directly without LLM summarization. Pages within the character budget (15,000 by default) are returned whole; longer pages return a head-and-tail window and save the complete text to a local file, with a path and read_file instructions for paging through the omitted middle. PDF URLs are accepted as inputs, but PDF text extraction requires a PDF reader dependency not included in this build. Inline images are represented as [IMAGE: alt] and linked image URLs are preserved. If a page fails, times out, or requires JavaScript, login, or clicks, use a browser tool instead.

Inputs: urls (required), head_chars, char_budget.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 2 tools

    Disambiguation5/5

    web_search and web_extract have clearly distinct roles: discovery vs. full-page reading. The descriptions explicitly cross-reference each other, telling the agent to use web_search first and web_extract for detail.

    Naming Consistency5/5

    Both tools follow a strict web_verb pattern (web_search, web_extract) with snake_case throughout. The convention is predictable and easy to extend.

    Tool Count3/5

    Two tools form a coherent minimal pair but feel thin for a web utility server, lacking follow-up operations like opening/crawling many links or handling JS-heavy pages. It is borderline under-scoped rather than inappropriate.

    Completeness4/5

    The core search-then-extract workflow is complete, including pagination guidance for long pages. Minor gaps exist around JavaScript/login-protected pages and PDF extraction, though the descriptions explicitly point to external browser tools for those cases.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      C
      maintenance
      Provides web search and page fetch tools for LLM assistants, extracting content and enabling text search within fetched pages.
      3
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform web searches, extract webpage content, and conduct end-to-end search-and-extract operations using multiple search providers and content extraction methods.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to perform LLM-optimized web searches, retrieve recent news articles with full text, and extract clean readable content from URLs. It returns synthesized answers, ranked cited sources, and page text suitable for grounding RAG workflows.
      296 npm
      MIT