OnionLens. MCP tools

Field Guide.

Official Tor guides and working test tools.

External links go straight to the Tor Project’s own documentation and specifications. Listing a guide here makes no claim about whether any third-party onion service is online or safe.

Let Tor resolve the .onion hostname.

Why normal DNS fails on .onion links. Normal internet DNS servers do not know how to look up a .onion address. If your HTTP client tries to resolve the hostname itself before talking to Tor, the connection fails immediately. In curl, pass --socks5-hostname so curl hands the raw .onion name straight to your local Tor SOCKS proxy (usually port 9050).

curl --socks5-hostname 127.0.0.1:9050 \
  http://pjzhmrhqlmjvhb5eeqmgnil7oztrbqkt45hay4zsvj5e6dblnfezopyd.onion/demo/api/v1/fixture

Pre-tagged as a demo. This command fetches our test document over Tor under the /demo/ path, so your test is tagged as a demo and never triggers an unsolicited research alert.

Compare one known document across HTTPS and Tor.

Check the fixed fields, ignore the notice field. When you wire up a script or AI agent to use Tor, the easiest sanity check is fetching the exact same test document over HTTPS and over .onion. This endpoint always returns the same ID (oo-retrieval-v1), keyword (moss), number (42), and multi-language string (onion · café · 東京). Check those fixed fields in your code; ignore the notice field, which changes on every fetch because it carries a fresh one-time canary token.

GET /demo/api/v1/fixture

fixture_id: oo-retrieval-v1
expected.keyword: moss
expected.number: 42
expected.unicode: onion · café · 東京
Open the test document