Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GATE402_API_KEYNoUse a funded account instead of the free tier.
GATE402_BASE_URLNoOverride the gateway (self-hosting / testing).https://gate402.app
GATE402_CONFIG_DIRNoWhere the cached free key is stored.~/.gate402-mcp

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
gate402_scrapeA

Fetch any public URL, render client-side JS, strip nav/ads, and return clean LLM-ready Markdown. Pay-per-call ($0.002) via Gate402; free tier on first runs.

gate402_scrape_stealthA

Hardened headless fetch for JS-heavy or lightly bot-protected pages. Use when gate402_scrape is blocked or returns little content. Pay-per-call ($0.05).

gate402_minifyA

Compress text to cut downstream LLM token spend (~40%): strips filler, collapses JSON, densifies prose. Pay-per-call ($0.005/10k tokens).

gate402_dedupA

Semantic vector-cache lookup: exact-match then 0.88 cosine similarity. Returns a cache hit/miss for a query, sub-10ms. Pay-per-call ($0.001 hit / $0.003 miss).

gate402_token_countB

FREE. Estimate the token count of a string (cl100k/o200k tokenizer). Use to budget context windows. No payment required.

gate402_html_to_mdA

FREE. Convert an HTML string you already have into clean Markdown. (To FETCH a live page instead, use gate402_scrape.) No payment required.

gate402_json_repairA

FREE. Coerce malformed / LLM-mangled JSON (trailing commas, single quotes, unquoted keys) into valid JSON. No payment required.

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/pgalyen1987/gate402-mcp'

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