MCP Web Tools
Enables web searching via DuckDuckGo to retrieve formatted search results including titles, URLs, and content snippets.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Web Tools search for 'how to build an MCP server' and fetch the first link"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Web Tools
A Model Context Protocol (MCP) server that provides web search and fetch capabilities for AI assistants like Claude Code.
This is useful when you want your code-generation tool to make web requests directly from your machine, rather than having those requests proxied through an external server you don't control. The MCP server runs locally on your host, so all web requests originate from your own network.
Features
web_search - Search the web using DuckDuckGo
Returns formatted results with titles, URLs, and snippets
Configurable result count and region
web_fetch - Fetch and extract content from web pages
Automatic HTML-to-text conversion (removes scripts, styles, navigation)
JSON response formatting
Configurable timeout
Related MCP server: DuckDuckGo MCP Server
Requirements
Python 3.13+
Installation
Quick Install (Recommended)
# Clone the repository
git clone <repo-url>
cd mcp-web-tools
# Install globally and configure Claude Code
make installThis will:
Install
mcp-web-toolsas a global executable viauv tool installRegister the MCP server with Claude Code using
claude mcp addThe executable will be available at
~/.local/bin/mcp-web-tools
Restart Claude Code after installation.
Manual Installation
# Install dependencies
uv sync
# Run directly from project
uv run mcp-web-toolsMakefile Targets
Target | Description |
| Install globally and configure Claude Code |
| Remove the global installation |
| Run tests with pytest |
| Remove build artifacts |
Claude Code Configuration
After running make install, you can verify the registration:
claude mcp listThe tools will be available in Claude Code as:
mcp__web-tools__web_searchmcp__web-tools__web_fetch
Manual Registration
If you prefer to register manually:
# User-wide (available in all projects)
claude mcp add --scope user web-tools mcp-web-tools
# Project-local (only current project)
claude mcp add --scope project web-tools mcp-web-toolsAlternative: Run from Project Directory
For development, you can register to run directly from the source:
claude mcp add --scope project web-tools uv run --directory /path/to/mcp-web-tools mcp-web-toolsTool Reference
web_search
Search the web using DuckDuckGo.
Parameters:
Parameter | Type | Required | Default | Description |
query | string | Yes | - | The search query |
max_results | integer | No | 10 | Maximum number of results |
region | string | No | "wt-wt" | Region for results (e.g., "us-en", "uk-en") |
Example response:
Search results for: python mcp server
1. Building MCP Servers in Python
URL: https://example.com/article
Learn how to build Model Context Protocol servers...
2. MCP Documentation
URL: https://modelcontextprotocol.io/docs
Official documentation for the Model Context Protocol...web_fetch
Fetch the content of a web page.
Parameters:
Parameter | Type | Required | Default | Description |
url | string | Yes | - | The URL to fetch |
timeout | integer | No | 30 | Request timeout in seconds |
Example response:
Content from https://example.com/article:
Building MCP Servers
This guide covers the basics of creating an MCP server...Development
Running Tests
make test
# Or directly
uv run pytest -vProject Structure
mcp-web-tools/
src/
mcp_web_tools/
__init__.py # Package metadata
server.py # MCP server implementation
tools.py # Tool implementations (search, fetch)
tests/
test_tools.py # Unit tests
pyproject.toml # Project configuration
Makefile # Install/uninstall automationDependencies
mcp - Model Context Protocol SDK
ddgs - DuckDuckGo Search API
httpx - Async HTTP client
lxml - HTML parsing (optional; falls back to regex-based extraction if not installed)
License
MIT
Available Tools
2 toolsweb_fetchB
Fetch the content of a web page. Returns the raw text content of the page, suitable for reading articles and documentation.
Inputs: url (required), timeout.
web_searchA
Search the web using DuckDuckGo. Returns a list of search results with titles, URLs, and snippets.
Inputs: query (required), max_results, region.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: web_fetch retrieves the content of a specific URL, while web_search queries a search engine for results. There is no overlap in functionality, making it easy for an agent to choose the correct tool based on the task.
Both tools follow a consistent 'web_' prefix and snake_case naming pattern (web_fetch and web_search). This predictable structure enhances readability and usability for agents.
With only 2 tools, the server feels thin for a 'Web Tools' domain. While fetch and search are core operations, the scope suggests potential for more functionality (e.g., parsing, navigation, or analytics), making the toolset appear incomplete.
The tools cover basic web interaction (fetching content and searching), but there are notable gaps. For a web tools server, missing operations like navigating links, extracting specific data, or handling web forms limit its utility for complex agent workflows.
Related MCP Connectors
Web search and clean-text page fetch for AI agents, with SSRF protection.
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Search the open web and Extract Raw Content for AI agents.
Live web search results and web pages as Markdown; page fetches use a residential network.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables web searching through DuckDuckGo and fetching content from webpages. Provides search capabilities with configurable result limits and webpage content extraction for AI assistants.-
- AlicenseBqualityDmaintenanceEnables 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.2MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to search DuckDuckGo and fetch web content with human-assisted CAPTCHA handling, designed for local use where humans can intervene when bot detection occurs.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search the web using DuckDuckGo and extract clean text content from websites for real-time research, with all processing happening locally for complete privacy.3MIT