claude-fetch-setup
v0.1.2
Published
A tool to automatically setup fetch MCP and configure global CLAUDE.md for Claude Code in enterprise environments
Maintainers
Readme
Claude Fetch Setup
Background
This tool was inspired by the discussion in Issue #1217 and provides an automated solution for users experiencing "Domain not allowed" errors.
Error Example:
⏺ Fetch(https://zod.dev/v4)…
⎿ Error: Domain zod.dev is not allowed to be fetchedSolution
This tool bypasses this limitation by automatically setting up fetch-mcp as a custom MCP server, providing stable network fetch functionality.
Quick Installation
One-click install (Recommended)
npx claude-fetch-setupGlobal installation
npm install -g claude-fetch-setup
claude-fetch-setupAfter installation
After installation, run the following command to verify that fetch-mcp has been successfully added to your MCP list:
claude mcp list
cat ~/.claude/CLAUDE.mdHow it works
This tool automatically performs the following steps to solve the domain fetch problem:
- ✅ Check and create
~/.claude-custom-mcp/directory - 📦 Clone the fetch-mcp repository
- 📦 Run
npm installandnpm run buildto build the MCP server - ⚙️ Automatically configure Claude Code:
claude mcp add fetch node ~/.claude-custom-mcp/fetch-mcp/dist/index.js --scope user - 📝 Configure global
CLAUDE.mdfile in~/.claude/directory to ensure fetch-mcp is used instead of built-in fetch tools
Related Links
- 🔗 Original Issue #1217 - This tool specifically addresses this issue
- 🔗 fetch-mcp Repository - Underlying MCP server
- 🔗 Claude Code Documentation
License
MIT
