torproxy MCP
A minimal, secure HTTP and SOCKS5 proxy routed through Tor that includes a built-in Model Context Protocol (MCP) server. It allows AI coding assistants like Claude Desktop and Cursor to access Tor tools natively, supporting dynamic circuit rotation and exit node selection via REST API while ensuring zero clearnet leaks through fail-closed protection.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Equip AI coding assistants with native Tor tools via MCP
- Route container TCP and DNS traffic through Tor transparently
- Rotate Tor circuits dynamically using REST API calls
- Select specific exit node countries for proxy connections
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
docker.io/hapheus/torproxy:2.7.11
{
"transport": "stdio",
"identifier": "docker.io/hapheus/torproxy:2.7.11",
"registryType": "oci",
"packageArguments": [
{
"type": "positional",
"value": "torproxy"
},
{
"type": "positional",
"value": "mcp"
}
],
"environmentVariables": [
{
"name": "TORPROXY_API_TOKEN",
"format": "string",
"description": "Optional secret token for authenticating REST and MCP requests."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"torproxy-mcp-2-7-11": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TORPROXY_API_TOKEN=<YOUR_TORPROXY_API_TOKEN>",
"docker.io/hapheus/torproxy:2.7.11",
"torproxy",
"mcp"
],
"env": {
"TORPROXY_API_TOKEN": "<YOUR_TORPROXY_API_TOKEN>"
}
}
}
}Cline
{
"mcpServers": {
"torproxy-mcp-2-7-11": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TORPROXY_API_TOKEN=<YOUR_TORPROXY_API_TOKEN>",
"docker.io/hapheus/torproxy:2.7.11",
"torproxy",
"mcp"
],
"env": {
"TORPROXY_API_TOKEN": "<YOUR_TORPROXY_API_TOKEN>"
}
}
}
}VS Code
{
"servers": {
"torproxy-mcp-2-7-11": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TORPROXY_API_TOKEN=<YOUR_TORPROXY_API_TOKEN>",
"docker.io/hapheus/torproxy:2.7.11",
"torproxy",
"mcp"
],
"env": {
"TORPROXY_API_TOKEN": "<YOUR_TORPROXY_API_TOKEN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"torproxy-mcp-2-7-11": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"TORPROXY_API_TOKEN=<YOUR_TORPROXY_API_TOKEN>",
"docker.io/hapheus/torproxy:2.7.11",
"torproxy",
"mcp"
],
"env": {
"TORPROXY_API_TOKEN": "<YOUR_TORPROXY_API_TOKEN>"
}
}
}
}Let your agent find its tools
Find servers like torproxy MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.