Tor Request MCP server
March 31, 2025 ยท View on GitHub
This is a simple MCP server, that allows your tools to do GET and POST requests to the internet through a Tor hidden service.
Installation
pip install -r requirements.txt
Running
brew services start tor
python server.py
Adding it to your Claude Desktop
Locate the ~/.claude/config.json file and add the following configuration:
{
"mcpServers": {
"tor-request": {
"command": "python",
"args": ["/path/to/tor-request/server.py"]
}
}
}
Possible location for the Claude config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage
Provides a tor-request tool that can be used in the chat.
Available commands:
tor-request get <url>: Perform a GET request to the given URL through a Tor hidden service.tor-request post <url> <data>: Perform a POST request to the given URL through a Tor hidden service with the given data.tor-request-with-headers get <url> <headers>: Perform a GET request to the given URL through a Tor hidden service with the given headers.tor-request-with-headers post <url> <data> <headers>: Perform a POST request to the given URL through a Tor hidden service with the given data and headers.
Response contains the following fields in JSON format:
status_code: The HTTP status code of the response.body: The body of the response.headers: The headers of the response.
Example:
{
"status_code": 200,
"body": "Hello, world!",
}