Skip to main content

MCP server for reading webpages and web search

Project description

WebRead MCP

A Model Context Protocol (MCP) server that enables AI assistants to read webpages and perform web searches.

Tools

read_webpage

Fetches a webpage via GET request and returns its text content.

Parameters:

  • url (required) - The URL to fetch
  • max_chars (optional, default: 500) - Maximum characters to return
  • offset (optional, default: 0) - Starting character position for chunked reading
  • raw_html (optional, default: false) - Return raw HTML instead of extracted text

Example:

{
  "url": "https://example.com",
  "max_chars": 1000,
  "offset": 0
}

web_search

Performs a web search using DuckDuckGo and returns titles with links.

Parameters:

  • query (required) - The search query
  • page (optional, default: 1) - Page number (1-based)

Example:

{
  "query": "python tutorial",
  "page": 1
}

Installation

From PyPI

pip install webread-mcp

From Source

git clone <repository-url>
cd webreadmcp
pip install -e .

Configuration

Add the server to your MCP client configuration:

If installed via pip

{
  "mcpServers": {
    "webread": {
      "command": "python",
      "args": ["-m", "webread_mcp"]
    }
  }
}

Running Manually

python -m webread_mcp

The server communicates via stdio and will wait for MCP protocol messages.

Custom CA Bundle

{
  "mcpServers": {
    "webread": {
      "command": "python",
      "args": ["-m", "webread_mcp"],
      "env": {
        "SSL_CERT_FILE": "/path/to/corporate-ca-bundle.crt"
      }
    }
  }
}

Disable SSL Verification (Not Recommended)

{
  "mcpServers": {
    "webread": {
      "command": "python",
      "args": ["-m", "webread_mcp"],
      "env": {
        "WEBREAD_VERIFY_SSL": "false"
      }
    }
  }
}

Dependencies

  • mcp - Model Context Protocol SDK
  • httpx - HTTP client
  • beautifulsoup4 - HTML parsing
  • duckduckgo_search - Web search

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webread_mcp-1.3.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webread_mcp-1.3.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file webread_mcp-1.3.0.tar.gz.

File metadata

  • Download URL: webread_mcp-1.3.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for webread_mcp-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e54154e01902d994765620850f9465ef13dd6542bee8d6c6983b19758dc51e81
MD5 cad7502f48ff4d61362c377d36a18cef
BLAKE2b-256 caab0b4770c6eecf57b7566eca5a20b17cbc8b9ec12dd2492606234cc8b0f0c7

See more details on using hashes here.

File details

Details for the file webread_mcp-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: webread_mcp-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for webread_mcp-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3444578b2a8f51be08a1423c9660652bd8d7b6b2b4433dcf5fe16bbaeae2bdc
MD5 14ccdf0d1caf7269d4a3ca6a07436a6f
BLAKE2b-256 9b53c77caeb16e4099a7d59ca29c52e3918a1b6101173c5b001d2d1cc57b87c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page