Skip to main content
Glama
devk86

MCP Internet Server

by devk86

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_DOMAINS allowlist and private IP blocking.

  • JSON-line audit logging (path configurable via AUDIT_LOG_PATH).

  • Unit tests using pytest.

Quick start

  1. Create and activate a virtualenv (recommended):

python -m venv .venv
# Windows
.venv\Scripts\activate
# Unix/macOS
source .venv/bin/activate
  1. Install dependencies:

python -m pip install -r requirements.txt
  1. Run a quick smoke test:

python run_test.py
  1. Run unit tests:

python -m pytest -q

Configuration

  • ALLOWED_DOMAINS: optional comma-separated list of domains that fetch_webpage_content is 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).

Notes

  • The project prefers the ddgs package for search; duckduckgo_search fallback 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 implementation

  • run_test.py — smoke tests

  • tests/test_server.py — pytest unit tests

  • requirements.txt — dependencies

License: Unspecified

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/devk86/mcp-internet-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server