About Web MCP Server
Web MCP Server provides web search and page text retrieval for AI assistants. It combines DuckDuckGo result URLs with URL fetching and optional Mozilla Readability extraction.
Key features
- 01DuckDuckGo web search
- 02URL results with configurable limit
- 03Fetch URL text content
- 04Readability-based main-content extraction
- 05Configurable content length
Use cases
- 01Find pages for a search query
- 02Retrieve readable text from a URL
- 03Limit page content for context
MCP support
Exposes DuckDuckGo search and URL-reading tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeb MCP Server
A Model Context Protocol (MCP) server that provides web search and content retrieval capabilities for AI assistants.
Features
The server offers two primary tools:
- search_duckduckgo: Performs web searches using DuckDuckGo and returns URLs of the search results
- read_url: Fetches and processes content from URLs, removing HTML markup for better readability
Setup
# Install dependencies
npm install
# Development (with auto-reload)
npm run dev
# Production build
npm run build
npm start
Running locally
use
npx https://zgagnon.com/webmcp
or
nix run github:zgagnon.com/webmcp
API
search_duckduckgo
Performs a web search using DuckDuckGo and returns only the URLs of the search results.
Input:
query(string, required): The search query to be executedlimit(number, optional): Maximum number of results to return (default: 10)
Output:
- A list of URLs matching the search query
read_url
Fetches and returns the text content of a specified URL, with HTML markup removed. Uses Mozilla's Readability to extract meaningful content.
Input:
url(string, required): The URL to fetch content fromuseReadabilityMode(boolean, optional): Whether to use Mozilla's Readability to extract the main content (default: true)maxLength(number, optional): Maximum length of returned content in characters (default: 10000)
Output:
- The plain text content from the URL, potentially truncated to fit within context windows
Error Handling
The server will return an error if:
- Invalid arguments are provided to any tool
- URL fetching fails
- Search execution fails
Implementation Details
The server uses:
- JSDOM and Mozilla's Readability for HTML processing and content extraction
- Node-fetch for HTTP requests
- Zod for schema validation
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.