Skip to main content
Glama
MCP Web Utilities Server

MCP Web Utilities Server

by RocwoDev

MCP Web Utilities Server

Lightweight server exposing web search and page fetching through:

  • MCP (stdio) for MCP clients

  • OpenAPI HTTP (FastAPI)

Features

  • search_on_web and search_on_website using ddgs (DDGS | Dux Distributed Global Search, a multi-source search engine).

  • fetch_webpage that returns simplified Markdown using crawl4ai with stealth settings.

Requirements

  • Python 3.13+

  • uv installed

Setup

Install uv on Windows (PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv sync

Then activate the virtual environment and run the crawler setup:

.venv\Scripts\activate
crawl4ai-setup

Run the server

MCP (stdio):

uv run src\main.py

Or when developing:

start_mcp_server.cmd

OpenAPI HTTP (127.0.0.1:8000):

uv run uvicorn src.mainhttp:app --host 127.0.0.1 --port 8000

Or when developing:

start_mcp_server_http.cmd

OpenAPI schema:

http://127.0.0.1:8000/openapi.json

LM Studio Configuration

To use this server in LM Studio, add the following to your MCP settings (mcp.json):

{
  "mcpServers": {
    "web-utilities": {
      "command": "uv",
      "args": [
        "--directory",
        "D:\\Dev\\McpServer",
        "run",
        "src\\main.py"
      ]
    }
  }
}

Note: Replace D:\\Dev\\McpServer with the actual path to your project.

Tools

search_on_web(query: str, results: int = 10) -> str

  • Returns results formatted as:

[title](url)
description

search_on_website(query: str, sites: list[str], results: int = 10) -> str

  • Same format, restricted to the provided sites.

fetch_webpage(target_url: str) -> str

  • Returns simplified Markdown for the target page.

OpenAPI Endpoints

  • GET /search/web?query=...&results=10

  • GET /search/website?query=...&sites=example.com&sites=docs.python.org&results=10

  • GET /webpage?target_url=https://example.com

  • GET /date

Tests

python -m unittest src.tests

Notes

  • Avoid writing to STDOUT (e.g., print) when the server is running; it will break JSON RPC communication.

  • Network-dependent tests may fail if external services are blocked in the current environment.

Available Tools

4 tools
fetch_webpageB

Fetches a webpage and returns a simplified markdown representation.

Inputs: target_url (required). Returns: result

get_current_dateA

Returns current UTC and local date-time strings in ISO format.

Return format: { "utc": "YYYY-MM-DDTHH:MM:SSZ", "local": "YYYY-MM-DD HH:MM:SS" }

Inputs: no named parameters. Returns: result

search_on_webB

Searches the web for information related to the given query. Return format : result 1 title result 1 description result 2 title result 2 description ... Use relevants links with fetch_webpage to get all the page content

Inputs: query (required), results. Returns: result

search_on_websiteC

Searches the web for information related to the given query, restricted to specific sites. Return format : result 1 title result 1 description result 2 title result 2 description ... Use relevants links with fetch_webpage to get all the page content

Inputs: query (required), sites (required), results. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation2/5

    There is significant overlap between 'search_on_web' and 'search_on_website' - both perform web searches with nearly identical descriptions and return formats, differing only in site restriction. 'fetch_webpage' is distinct for content retrieval, but 'get_current_date' feels disconnected from the web utilities theme, creating conceptual ambiguity about the server's purpose.

    Naming Consistency4/5

    Three of four tools follow a consistent verb_noun pattern with snake_case ('fetch_webpage', 'search_on_web', 'search_on_website'), which is good. However, 'get_current_date' uses a different verb style ('get' vs 'fetch/search'), breaking the pattern slightly but maintaining readability.

    Tool Count3/5

    With only 4 tools, the count feels thin for a 'Web Utilities Server' - one would expect more comprehensive web-related functionality. However, the tools do cover basic web operations (fetching, searching), so it's borderline rather than severely inadequate.

    Completeness2/5

    For a web utilities server, there are significant gaps: no tools for analyzing webpage content (beyond fetching), no HTTP request utilities, no cookie/session management, and no web scraping capabilities beyond basic fetching. The inclusion of 'get_current_date' feels out of scope, further highlighting the incomplete coverage of web-related operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables web search through DuckDuckGo and webpage content fetching with intelligent text extraction. Features built-in rate limiting and LLM-optimized result formatting for seamless integration with language models.
      2
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Provides web search capabilities across multiple engines and webpage content fetching to simplified Markdown. It enables AI assistants to access real-time internet information and extract text from specific URLs.
      2
      13
      -
    • A
      license
      A
      quality
      Not graded
      maintenance
      Enables web searching via SearXNG, page content extraction with Crawl4AI, and image analysis using vision language models. It provides AI agents with tools for information synthesis and web-based data retrieval through OpenAI-compatible LLM endpoints.
      3
      Apache 2.0