mcp-safe-fetch

sharkyger/mcp-safe-fetch
★ 0 stars Python Browser/Web Updated 1mo ago
MCP server that wraps fetched URLs in UNTRUSTED-WEB tags to prevent indirect prompt injection in Claude Desktop and any MCP client
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-safe-fetch": {
      "command": "uvx",
      "args": [
        "mcp-safe-fetch"
      ]
    }
  }
}

Or install with pip: pip install mcp-safe-fetch

README Excerpt

An MCP server that fetches URLs through a Layer-2 prompt-injection sanitizer and wraps every response in `<UNTRUSTED-WEB>` tags so the model treats the content as data, not as instructions. Companion to [safe-fetch](https://github.com/sharkyger/safe-fetch), which does the same job for Claude Code. This one is for **Claude