tor-mcp
Local MCP server for LM Studio providing Tor network tools: search Ahmia's onion service index and fetch .onion URLs through a local SOCKS5 proxy with security boundaries.
README
THIS PROJECT IS MADE BY LLM
Tor Web MCP
Local MCP server for LM Studio with two tools:
tor_search(query, max_results=8)— searches Ahmia's indexed onion services.tor_fetch(url, max_chars=30000)— fetches a v3.onionURL through a local Tor SOCKS5 proxy.
Install
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Set TOR_SOCKS_URL if your Tor SOCKS listener is not 127.0.0.1:9050. Tor Browser commonly uses a different port, so verify your setup.
Test
mcp dev server.py
LM Studio
Configure a local stdio MCP server using absolute paths:
{
"mcpServers": {
"tor-web": {
"command": "/ABSOLUTE/PATH/tor-mcp/.venv/bin/python",
"args": ["/ABSOLUTE/PATH/tor-mcp/server.py"]
}
}
}
Error semantics
The fetcher deliberately returns LLM-readable error categories. In particular, a search result that is no longer reachable becomes:
[SEARCH_RESULT_STALE]
This means the URL was indexed but is currently unreachable; it does not prove the address is invalid. The model can then try another search result.
Other categories include INVALID_ONION_URL, TOR_SEARCH_TIMEOUT, TOR_SEARCH_HTTP_ERROR, TOR_SEARCH_NETWORK_ERROR, NO_RESULTS, TOR_FETCH_NETWORK_ERROR, TOR_REDIRECT, and TOR_REDIRECT_BLOCKED.
Security boundaries
- Only HTTP/HTTPS v3
.onionURLs are accepted bytor_fetch. - No automatic redirects outside
.onion. - Response size and network timeouts are bounded.
- No generic arbitrary proxy tool is exposed.
- Content returned by onion services must still be treated as untrusted web content.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.