MCP Internet Server
Provides tools for searching the internet using DuckDuckGo and fetching web page content with SSRF protections.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Internet Server
Small MCP server exposing two tools for internet access:
search_internet(query, max_results=5)— perform a web search and return structured results.fetch_webpage_content(url)— fetch and extract text from an HTML page with SSRF protections.
Features
Structured (dict) responses for easier downstream processing.
SSRF protections: optional
ALLOWED_DOMAINSallowlist and private IP blocking.JSON-line audit logging (path configurable via
AUDIT_LOG_PATH).Unit tests using
pytest.
Quick start
Create and activate a virtualenv (recommended):
python -m venv .venv
# Windows
.venv\Scripts\activate
# Unix/macOS
source .venv/bin/activateInstall dependencies:
python -m pip install -r requirements.txtRun a quick smoke test:
python run_test.pyRun unit tests:
python -m pytest -qRun test coverage:
python -m pytest --cov=server --cov-report=term-missingMCP json to use in inference engine
{
"mcpServers": {
"internet_assistant": {
"command": "PATH TO YOUR PYTHON EXECUTABLE",
"args": [
"PATH TO YOUR server.py"
]
}
}
}Configuration
ALLOWED_DOMAINS: optional comma-separated list of domains thatfetch_webpage_contentis allowed to access. If unset, fetching is allowed for any public hostname (subject to IP checks).AUDIT_LOG_PATH: path to write newline-delimited JSON audit events (default:audit.log).METRICS_PORT: port to expose Prometheus metrics via HTTP. Set to0or unset to disable metrics export.
Notes
The project prefers the
ddgspackage for search;duckduckgo_searchfallback is supported.Audit log rotation, remote logging, or more advanced rate-limiting are not included but recommended for production deployments.
Files of interest
server.py— main MCP tools implementationrun_test.py— smoke teststests/test_server.py— pytest unit testsrequirements.txt— dependencies
License: MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Web search and clean-text page fetch for AI agents, with SSRF protection.
Web search and page fetch for AI agents. Results come from a shared cache; cached calls cost less.
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Related MCP Servers
- 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 gradedqualityDmaintenanceEnables web searching through Google, DuckDuckGo, and Bing using a headless Chrome browser, returning structured results with titles, URLs, and snippets. Also supports fetching and extracting text content from any webpage.16MIT
- AlicenseAqualityDmaintenanceEnables performing web searches and fetching web page content via Ollama's hosted APIs, providing search results and raw page data.21MIT
- FlicenseNot gradedqualityBmaintenanceEnables live web retrieval through MCP, allowing Claude to fetch and extract current web information with validations, SSRF protections, and structured results for grounded responses.-