Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Bypasses Claude Desktop sandbox network restrictions by providing tools to fetch any URL, execute network-capable CLI commands (yt-dlp, curl, ffmpeg), and read files created by those tools.

README.md

mcp-proxy

MCP server that bypasses Claude Desktop sandbox network restrictions.

Claude Desktop runs in a restricted sandbox that blocks many network operations and CLI tools that need internet access. This MCP server provides three tools that run outside the sandbox, enabling Claude to:

  • Fetch any URL (API calls, web scraping, downloads)
  • Execute network-capable CLI tools (yt-dlp, curl, ffmpeg, etc.)
  • Read files created by those tools (subtitle files, downloads, etc.)

Installation

Quick Install (via GitHub)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "proxy": {
      "command": "npx",
      "args": ["-y", "github:CodefiLabs/claude-desktop-skills-proxy"]
    }
  }
}

Restart Claude Desktop for changes to take effect. The server will be automatically downloaded and run.

Local Development

git clone https://github.com/CodefiLabs/claude-desktop-skills-proxy.git
cd claude-desktop-skills-proxy
npm install
npm run build

Then configure Claude Desktop to use the local build:

{
  "mcpServers": {
    "proxy": {
      "command": "node",
      "args": ["/path/to/claude-desktop-skills-proxy/dist/index.js"]
    }
  }
}

Tools

proxy_fetch

Make HTTP requests to any URL. Supports all common HTTP methods.

Parameters: | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | Yes | The URL to fetch | | method | string | No | HTTP method: GET, POST, PUT, DELETE, PATCH, HEAD (default: GET) | | headers | object | No | Custom HTTP headers as key-value pairs | | body | string | No | Request body for POST/PUT/PATCH | | timeout | number | No | Timeout in milliseconds (default: 30000) | | approve | string | No | Domain approval: "once" or "always" |

Example - Simple GET: ``json { "url": "https://api.github.com/users/octocat" } ``

Example - POST with headers: ``json { "url": "https://api.example.com/data", "method": "POST", "headers": { "Content-Type": "application/json", "Authorization": "Bearer token123" }, "body": "{\"key\": \"value\"}" } ``

Example - Approve new domain: ``json { "url": "https://newsite.com/api", "approve": "always" } ``

network_exec

Execute CLI commands that require network access. Uses secure spawn() instead of shell execution.

Parameters: | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | command | string | Yes | The command to execute (e.g., "yt-dlp", "curl") | | args | array | No | Command arguments as array | | cwd | string | No | Working directory | | env | object | No | Additional environment variables | | timeout | number | No | Timeout in milliseconds (default: 60000) | | approve | string | No | Command approval: "once" or "always" |

Example - Download video with yt-dlp: ``json { "command": "yt-dlp", "args": ["--output", "video.mp4", "https://youtube.com/watch?v=dQw4w9WgXcQ"], "cwd": "/Users/kk/Downloads", "approve": "always" } ``

Example - Fetch with curl: ``json { "command": "curl", "args": ["-s", "https://api.ipify.org?format=json"], "approve": "once" } ``

Example - Convert video with ffmpeg: ``json { "command": "ffmpeg", "args": ["-i", "input.mp4", "-c:v", "libx264", "output.mp4"], "cwd": "/Users/kk/Videos", "timeout": 300000 } ``

read_file

Read files from the host filesystem. Useful for reading files created by network_exec (e.g., subtitle files from yt-dlp).

Parameters: | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | path | string | Yes | Absolute path to the file to read | | encoding | string | No | "utf8" (default) or "base64" for binary files | | maxSize | number | No | Maximum file size in bytes (default: 5MB) |

Example - Read subtitle file: ``json { "path": "/tmp/video.en.vtt" } ``

Example - Read binary file as base64: ``json { "path": "/tmp/image.png", "encoding": "base64" } ``

Workflow for yt-dlp subtitles:

  1. Download subtitles with network_exec:
   {
     "command": "yt-dlp",
     "args": ["--write-auto-sub", "--skip-download", "-o", "/tmp/%(id)s", "VIDEO_ID"],
     "approve": "always"
   }
  1. Read the subtitle file with read_file:
   {
     "path": "/tmp/VIDEO_ID.en.vtt"
   }

Blocked paths: Sensitive files like ~/.ssh/, ~/.aws/, /etc/shadow, .env files, and credential files are blocked for security.

Approval Flow

When accessing a new domain or running a new command, the tool returns a needs_approval status:

{
  "status": "needs_approval",
  "domain": "example.com",
  "message": "Domain \"example.com\" is not in your allowlist. To proceed, call proxy_fetch again with approve: \"once\" for this request only, or approve: \"always\" to remember this domain."
}

Approval options:

  • "once" - Allow for this single request only
  • "always" - Add to allowlist and remember for future requests

Once approved with "always", subsequent requests to that domain/command work automatically.

Security

Blocked Domains (SSRF Protection)

The following domains are always blocked to prevent Server-Side Request Forgery attacks:

  • localhost, 127.0.0.1, ::1 - Loopback addresses
  • 169.254.169.254 - AWS metadata endpoint
  • 10., 172.16-31., 192.168.* - Private IP ranges
  • fe80:, fc00:, fd00:* - IPv6 private/link-local

Blocked Commands

These commands are blocked for security:

  • Destructive: rm, rmdir, del, mv
  • Privilege escalation: sudo, su, doas
  • Permissions: chmod, chown, chgrp
  • System: mkfs, fdisk, dd, format
  • Package managers: apt, brew, yum, etc.
  • Shells: bash, sh, zsh, etc.
  • Network abuse: nc, netcat, telnet

Argument Validation

Shell operators are blocked in command arguments to prevent injection:

  • ;, |, &&, || - Command chaining
  • >, < - Redirects
  • $(, ` `, ${` - Command/variable substitution

Rate Limiting

Requests are rate-limited to prevent abuse:

  • 60 requests per minute per domain/command
  • Automatic cooldown with retry-after information

Configuration

Configuration is stored at ~/.config/mcp-proxy/config.json:

{
  "allowedDomains": ["api.github.com", "example.com"],
  "blockedDomains": ["localhost", "127.0.0.1", "..."],
  "allowedCommands": ["yt-dlp", "curl", "ffmpeg"],
  "blockedCommands": ["rm", "sudo", "..."]
}

The file is created automatically on first use. User-approved domains/commands are added to the allowlists. Security blocklists cannot be overridden.

Development

# Build
npm run build

# Watch mode
npm run watch

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Browser & Scraping servers.