secure-mcp-fetch is a secure URL fetching tool built on FastMCP. The project is hosted on GitHub and is mainly used in scenarios that require secure retrieval of external URL content.
In terms of purpose, the tool is aimed at secure URL fetching needs and can be used as a controlled web content retrieval component in AI tools or services.
Main capabilities include: securely fetching URLs; resolving domain names to IPs; checking whether the target is a private or internal IP; handling redirects, supporting up to 3; supporting custom HTTP methods and request headers; and using an allowlist to manage trusted domains or IPs. In terms of security mechanisms, the tool blocks access to private or internal IPs by default unless explicitly allowed; only HTTP and HTTPS protocols are allowed; for HTTPS connections, SNI is set to match the hostname.
In terms of usage, the project uses uv as the Python package installation and environment management tool. You need to install uv first, then create a virtual environment and install dependencies, optionally set the allowlist environment variable, and then run the script. After the script runs, you can call the fetch_url function to securely fetch a URL. This function returns a dictionary containing the status code, response body, and content length.
Applicable scenarios include development scenarios that require secure retrieval of external web content in AI tools or services, especially scenarios with security isolation requirements for internal network access.
In terms of limitations, the tool blocks access to private or internal IPs by default, only supports HTTP and HTTPS protocols, and handles at most 3 redirects. The project description reminds users to review and understand the code before use. Information such as fees, pricing, and platform support scope is not currently provided in the materials.