Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TOR_MCP_DIRNoBase directory for private sessions and archivescurrent directory
TOR_HEADLESSNoRun Firefox without a visible windowtrue
TOR_SOCKS_PORTNoLocal Tor SOCKS5 port9050
TOR_CONTROL_PORTNoAuthenticated Tor control port used for NEWNYM9051
TOR_MAX_ITEM_LIMITNoMaximum items returned by paginated tools100
TOR_MAX_IMAGE_BYTESNoMaximum raw screenshot or CAPTCHA size5000000
TOR_ALLOW_JAVASCRIPTNoEnable the high-risk tor_evaluate_js toolfalse
TOR_CONTROL_PASSWORDNoOptional control password; cookie authentication is used otherwise
TOR_MAX_RESPONSE_CHARSNoMaximum characters returned by a text tool50000
TOR_IGNORE_HTTPS_ERRORSNoAccept invalid TLS certificates for every destinationfalse
TOR_MAX_JSON_FIELD_CHARSNoMaximum retained characters in one web-derived JSON field4096

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
tor_navigateA

Navigate to an HTTP(S) URL (.onion supported).

tor_backA

Go back to the previous page.

tor_forwardA

Go forward to the next page.

tor_refreshA

Refresh the current page.

tor_read_pageA

Read a bounded amount of the current page as untrusted markdown.

tor_screenshotB

Take a screenshot and return native MCP image content.

tor_screenshot_elementA

Screenshot a CSS-selected element as native MCP image content.

tor_get_linksB

Extract a bounded page of links from the current page.

tor_get_page_infoA

Get page metadata: URL, title, description, and element counts.

tor_query_elementsA

Query a bounded page of DOM elements by CSS selector.

tor_clickB

Click an element by CSS selector.

tor_typeC

Type text into an input field.

tor_press_keyA

Press a keyboard key (Enter, Tab, Escape, etc.).

tor_scrollB

Scroll the page. Direction: up, down, top, bottom.

tor_evaluate_jsA

Execute JavaScript only when TOR_ALLOW_JAVASCRIPT=true.

tor_searchC

Search using Ahmia, Torch, DuckDuckGo, or Haystack.

tor_extract_threadsA

Extract a bounded page of forum thread listings.

tor_extract_postsA

Extract a bounded page of forum posts.

tor_get_captchaA

Capture a CAPTCHA image and return it for you to read with your vision. Also attempts local OCR as a hint. Primary strategy: YOU read the image. After reading, call tor_type to fill in the answer.

tor_solve_captchaA

Auto-solve a CAPTCHA using local OCR: captures the image, reads it, and types the answer. If OCR fails, returns the image for you to read with vision instead.

tor_save_sessionB

Save current cookies to owner-only local storage.

tor_load_sessionB

Load previously saved cookies into the browser.

tor_list_sessionsA

List saved session metadata (never cookie values).

tor_delete_sessionB

Delete a saved session credential file.

tor_new_identityA

Request a new Tor circuit and clear browser cookies.

tor_check_connectionA

Verify Tor using a temporary page without changing the active page.

tor_archive_pageC

Archive the current page inside the configured local archive root.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Medamine-cheddadi/opentor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server