Proxychains MCP Server
Enables dynamic management and execution of proxy chains on a remote Linux host via SSH, allowing AI assistants to route network traffic through proxies for privacy and security testing.
README
Proxychains MCP Server
MCP server for proxychains-ng (proxychains4) - route commands through proxy chains via SSH to a remote Linux host (e.g., Kali Linux).
Overview
This MCP server provides tools to manage and use proxychains configurations dynamically. It executes commands through SSH on a remote host where proxychains4 is installed, allowing AI assistants to route network traffic through proxy chains for privacy, security testing, or accessing geo-restricted resources.
Features
| Tool | Description |
|---|---|
proxychains_run |
Execute commands through the configured proxy chain |
proxychains_config |
Get, set, or reset the full configuration |
proxychains_add |
Add a proxy to the chain (SOCKS4, SOCKS5, HTTP, RAW) |
proxychains_remove |
Remove a proxy by index or host:port |
proxychains_mode |
Set chain mode (strict, dynamic, random, round_robin) |
proxychains_dns |
Configure DNS handling mode |
proxychains_test |
Test proxy chain connectivity and latency |
proxychains_list |
List all configured proxies |
proxychains_import |
Import proxies from file or URL |
proxychains_export |
Export configuration in various formats |
Installation
Prerequisites
- Node.js 18+
- SSH access to a Linux host with proxychains4 installed
- The SSH host should be configured in
~/.ssh/configor accessible by hostname
Setup
# Clone the repository
git clone https://github.com/schwarztim/sec-proxychains-mcp.git
cd sec-proxychains-mcp
# Install dependencies
npm install
# Build
npm run build
MCP Configuration
Add to your Claude Desktop or MCP client configuration:
{
"mcpServers": {
"proxychains": {
"command": "node",
"args": ["/path/to/sec-proxychains-mcp/dist/index.js"],
"env": {
"PROXYCHAINS_KALI_HOST": "kali",
"PROXYCHAINS_SSH_TIMEOUT": "30000"
}
}
}
}
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
PROXYCHAINS_KALI_HOST |
kali |
SSH hostname for the remote host |
PROXYCHAINS_SSH_TIMEOUT |
30000 |
SSH command timeout in milliseconds |
PROXYCHAINS_CONFIG_DIR |
~/.proxychains-mcp |
Local config storage directory |
Chain Modes
| Mode | Description |
|---|---|
strict_chain |
All proxies must work, used in order specified |
dynamic_chain |
Skip dead proxies, at least one must work |
random_chain |
Random proxy selection for each connection |
round_robin_chain |
Rotate through proxies sequentially |
Proxy Types
| Type | Description |
|---|---|
socks5 |
SOCKS5 proxy (recommended) |
socks4 |
SOCKS4 proxy |
http |
HTTP CONNECT proxy |
raw |
Raw TCP forwarding |
DNS Modes
| Mode | Description |
|---|---|
proxy_dns |
Route DNS through proxy (recommended, prevents leaks) |
proxy_dns_old |
Legacy mode using proxyresolv |
proxy_dns_daemon |
Daemon-based DNS resolution |
none |
No DNS proxying (may leak DNS queries) |
Usage Examples
Basic Setup
// Add a SOCKS5 proxy (e.g., Tor)
proxychains_add({ type: "socks5", host: "127.0.0.1", port: 9050 })
// Add an authenticated HTTP proxy
proxychains_add({
type: "http",
host: "proxy.example.com",
port: 8080,
user: "admin",
pass: "secret"
})
// Set dynamic chain mode (skip dead proxies)
proxychains_mode({ mode: "dynamic_chain" })
Testing the Chain
// Test connectivity
proxychains_test({ verbose: true })
// Test against specific target
proxychains_test({ target: "https://api.ipify.org" })
Running Commands
// Check your proxied IP
proxychains_run({ command: "curl https://httpbin.org/ip" })
// Run nmap through proxies
proxychains_run({ command: "nmap -sT -Pn target.com" })
// Custom timeout for long operations
proxychains_run({ command: "wget https://example.com/large-file", timeout: 120000 })
Importing Proxies
// Import from URL
proxychains_import({
source: "https://raw.githubusercontent.com/example/proxies/main/list.txt",
defaultType: "socks5"
})
// Import from file on remote host
proxychains_import({ source: "/tmp/proxies.txt" })
Exporting Configuration
// Export as proxychains.conf format
proxychains_export({ format: "proxychains" })
// Export as JSON
proxychains_export({ format: "json" })
// Export as simple ip:port list
proxychains_export({ format: "ip:port" })
Remote Host Setup
The remote host (e.g., Kali Linux) needs proxychains4 installed:
# Debian/Ubuntu/Kali
sudo apt update
sudo apt install proxychains4 curl
# Verify installation
proxychains4 --version
Ensure SSH access works without password prompts:
# Test SSH connection
ssh kali "echo 'Connection successful'"
Security Considerations
- SSH Keys: Use SSH key authentication instead of passwords
- DNS Leaks: Use
proxy_dnsmode to prevent DNS leakage - Proxy Trust: Only use trusted proxies; traffic is visible to proxy operators
- Authentication: Proxy credentials are stored locally in
~/.proxychains-mcp/config.json
Architecture
┌─────────────────┐ SSH ┌─────────────────┐ Proxies ┌─────────────┐
│ MCP Client │─────────────▶│ Remote Host │────────────────▶│ Target │
│ (Claude, etc) │ │ (Kali Linux) │ │ │
└─────────────────┘ │ proxychains4 │ └─────────────┘
└─────────────────┘
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- proxychains-ng - The proxychains implementation
- Model Context Protocol - The MCP specification
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。