Skip to main content
Glama

WebFetch MCP Server

mpak NimbleBrain Discord License: MIT

A Model Context Protocol (MCP) server that fetches web pages, converts HTML to markdown, and uses Claude to answer questions about the content. Get AI-powered summaries and analysis of any web page from any MCP client.

View on mpak registry | Built by NimbleBrain

Install

Install with mpak:

mpak install @nimblebraininc/webfetch

Configuration

Get your API key from Anthropic Console, then configure:

mpak config set @nimblebraininc/webfetch anthropic_api_key YOUR_API_KEY

Claude Code

claude mcp add webfetch -- mpak run @nimblebraininc/webfetch

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "webfetch": {
      "command": "mpak",
      "args": ["run", "@nimblebraininc/webfetch"]
    }
  }
}

See the mpak registry page for full install options.

Related MCP server: fetch

Tools

web_fetch

Fetch a web page and answer questions about its content. The page is fetched, converted to markdown, and sent to Claude Haiku for analysis.

Parameter

Type

Required

Description

url

string

Yes

URL to fetch. HTTP URLs are auto-upgraded to HTTPS.

prompt

string

Yes

Question or instruction about the page content.

Example call:

{
  "name": "web_fetch",
  "arguments": {
    "url": "https://example.com",
    "prompt": "What is this page about? Summarize the main points."
  }
}

Example response:

This page is the IANA example domain, reserved for use in documentation
and examples. It contains a simple heading and a paragraph explaining
that the domain is established for illustrative purposes.

Features:

  • Automatic HTTP to HTTPS upgrade

  • HTML cleaned and converted to markdown (strips scripts, styles, nav, headers, footers)

  • 15-minute in-memory cache for repeated fetches of the same URL

  • Cross-host redirect detection (returns redirect URL for you to follow)

  • Content truncation for very large pages

Quick Start

Local Development

git clone https://github.com/NimbleBrainInc/mcp-webfetch.git
cd mcp-webfetch

# Install dependencies
uv sync

# Set API key
export ANTHROPIC_API_KEY=your-key-here

# Run the server (stdio mode)
uv run python -m mcp_webfetch.server

The server supports HTTP transport with:

  • Health check: GET /health

  • MCP endpoint: POST /mcp

Development

# Install with dev dependencies
uv sync --group dev

# Run all checks (format, lint, typecheck, unit tests)
make check

# Run unit tests
make test

# Run with coverage
make test-cov

About

WebFetch MCP Server is published on the mpak registry and built by NimbleBrain. mpak is an open registry for Model Context Protocol servers.

License

MIT

Available Tools

1 tool
web_fetchA

Fetch a web page and answer questions about its content.

Fetches the URL, converts HTML to markdown, and uses Claude to answer the prompt based on the page content.

Inputs: url (required), prompt (required). Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possibility of confusion between tools.

    Naming Consistency5/5

    The single tool name 'web_fetch' follows a clear verb_noun pattern, and there are no other tools to create inconsistency.

    Tool Count3/5

    The server has only one tool, which is at the low end of the range. While it covers the core function, more tools (e.g., for raw content or separate fetch and ask) could be expected.

    Completeness4/5

    The tool combines fetching and Q&A, covering the stated purpose well. However, it lacks flexibility for users who want only the raw page content or to customize fetching options.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude and other LLMs to read and parse web content, with smart fallback strategies to bypass access restrictions (e.g., paywalls, Cloudflare) and output Markdown.
      5
      35 npm
      48
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Fetches web pages and converts them to markdown for LLM consumption, supporting chunked reading and raw content extraction.
      MIT