Secure MCP Fetch
appsec-innovation-labs/secure-mcp-fetch
Fetcher de URLs seguro com proteção contra IPs internos e allowlist
Ver no GitHubServidor MCP que implementa um fetcher de URLs seguro com validação de IPs privados, allowlist de domínios, suporte a redirecionamentos controlados e métodos HTTP customizados. Ideal para integrar requisições web seguras em agentes Claude.
Instalação
npx convez-ai appsec-innovation-labs/secure-mcp-fetch1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Requisições web seguras em agents Claude
- Integração com APIs externas com validação
- Prevenção de SSRF em ambientes de produção
Veredito

Ferramenta bem fundamentada para o cenário crítico de segurança em agentes LLM. Implementação sólida de proteções contra SSRF e validação de domínios, mas requer configuração explícita da allowlist para produção.
README
A tradução para o português deste README ainda está na fila.
Secure Fetch
This project implements a secure URL fetching tool using FastMCP.
Prerequisites
- Python 3.7+
- uv (Python package installer and environment manager)
Installation
- Install uv if you haven't already:
pip install uv
- Create a new virtual environment and install dependencies:
uv venv
source .venv/bin/activate
uv pip install fastmcp requests
Usage
- Set the allowlist environment variable (optional):
export SECURE_FETCH_ALLOWLIST="example.com,trusted-domain.org"
- Run the script:
uv run main.py
Features
- Fetches URLs securely
- Resolves domains to IPs
- Checks for private/internal IPs
- Handles redirects (up to 3)
- Supports custom HTTP methods and headers
- Uses an allowlist for trusted domains/IPs
Security Considerations
- The tool prevents access to private/internal IPs unless explicitly allowed
- Only HTTP and HTTPS schemes are permitted
- SNI is set to match the hostname for HTTPS connections
Example Usage
Once the script is running, you can use the fetch_url function to securely fetch URLs. The function will return a dictionary containing the status code, response body, and content length.
Note
This tool is designed for secure URL fetching. Always review and understand the code before using it in your environment.