# URLGate

> Pay-to-open short links for humans and AI agents, charged in USDC over x402 v2.

- name: xyz.urlgate/mcp
- version: 2.0.0
- connection class: R0 (autonomous)
- trust: 95/100
- quality: 80/100 (new)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/xyz.urlgate%2Fmcp
- tools: https://api.protogrid.dev/v1/servers/xyz.urlgate%2Fmcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "urlgate": {
      "type": "http",
      "url": "https://urlgate.xyz/mcp"
    }
  }
}
```


## Trust

- hygiene: 100
- liveness: 98
- freshness: 100
- provenance: 85
- drivers: +repository +dns-namespace +website +reachable +uptime-96% +updated-6d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 80/100 (new)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 83 (weight 30)

- pass `tools.descriptions`: every tool has a description
- warn `tools.description_length`: 2 tools have descriptions over 1,024 characters, which crowds the context
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 37 of 38 tools declare readOnlyHint or destructiveHint
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: verify_ledger (destructiveHint, idempotentHint); open_link_instructions (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); points_rules (destructiveHint, idempotentHint); …
- pass `tools.token_cost`: about 5,590 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: n/a (weight 15)

- n/a `stability.changes`, `stability.rug_pull`, `stability.new_links`: tool history recorded for 6 of the 7 days needed

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 38, about 5,590 tokens to load them all
- tool set hash: 2fe50b0835c6750c331fabbc0083868f
- badge: [![protogrid quality](https://protogrid.dev/badge/xyz.urlgate/mcp.svg)](https://protogrid.dev/servers/xyz.urlgate/mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://urlgate.xyz/mcp (streamable-http, auth none, reachable true, uptime30d 0.96)

## Packages

_none_

## Tools (38)

- `agent_keys`: Manage agent keys for bots that have no wallet (signed in as the owner with the sign_in token; SIGN-IN-WITH-X is refused, even for list). action=list (default) | create (name, dailyCap, expiresInDays, networks; the key is returned once) | revoke (id). A key can only create links; they belong to your wallet.
- `buy_membership`: Buy (or extend by) 30 days of Premium (5.00 USDC). Call without a signature to get the x402 requirements; nothing renews automatically. Credited to the signed-in wallet, else the payer. Payment is ONE signature (no platform-fee leg): sign an accepts[] entry and call again with params._meta["x402/payment"] (PaymentPayload) or paymentSignature (base64). Settlement comes back in result._meta["x402/payment-response"].
- `create_link`: Create a paid short link. Signed in (sign_in token / Bearer; SIGN-IN-WITH-X does not count) or with an agent key (token = ugk_…): FREE within your daily quota (10 a day, 100 on Premium; see get_started), the link and its earnings are your wallet's (an agent key's owner). Anonymous, over quota, or free creation paused: 0.01 USDC via x402: the call returns isError with the PaymentRequired and a code (anonymous, free_quota_exhausted, …) plus nextSteps in _meta["urlgate/payment-error"]; call again with the payment. Limits: 429 rate_limited, 409 duplicate_link, 403 domain_blocked. Payment is ONE signature (no platform-fee leg): sign an accepts[] entry and call again with params._meta["x402/payment"] (PaymentPayload) or paymentSignature (base64). Settlement comes back in result._meta["x402/payment-response"].
- `dismiss_renewal_reminder`: Dismiss the "Premium ends soon" reminder for the current period.
- `get_link_info`: Public metadata for a link: price, title, description, options, status. Never reveals the destination.
- `get_my_link`: Owner view of one of your links, including destination, options and which premium options you can use.
- `get_receipt`: A receipt by id: paid at, amount, fee, explorer links, permanent URL.
- `get_started`: FREE, call this first. Returns JSON: pricing and limits, your tier and today's free-link quota (limit / used / remaining / resetsAt) when signed in or using an agent key, the three ways to create links (own wallet = free daily quota, earnings to you; agent key from a human = free within the key cap, earnings to the owner; anonymous or over quota = 0.01 USDC via x402), and nextSteps (sign_in, use_agent_key, pay_0.01, upgrade, create_link, compat_check).
- `link_analytics`: Analytics for one of your links, including the agent vs human split of sales (payerKinds) per day and in total (range 7d / 30d; 90d / all and referrer/country/buyer breakdowns need premium).
- `link_audit`: Audit trail for one of your links: 402 shown, paid, re-opened, edits, status changes. IP addresses are truncated.
- `link_grants`: Manage the allowlist / promo codes of one of your links (premium). action=list|create|revoke.
- `link_payments`: Payments for one of your links (buyer, amount, fee, tx links, payerKind agent/human/unknown). Optional payerKind filter.
- `link_qr`: QR code for a link as SVG markup.
- `link_status`: Availability of a link: active / paused / expired / sold_out / removed_by_seller / removed_by_admin, with the reason code and public note.
- `list_networks`: Payment networks this deployment accepts right now (CAIP-2), the USDC contract on each, which is the default, and the mode (mainnet on production, testnet on preview). A link's networks must be a non-empty subset of these.
- `membership_status`: Premium plan (price, period, features) and your membership: tier, state, period end, days left, renewal reminder.
- `my_analytics`: Your totals and daily earnings across all your links.
- `my_links`: Links you created: destination, options, status (with reason and when it changed), clicks, 402 views, sales, free unlocks, unique payers, gross, platform fees, earnings, conversion, failed payments, agent vs human sales, last sale and abuse report count.
- `my_points`: Your points: confirmed vs pending (7-day review), items with state and reason, not-eligible events, rank, adjustments.
- `my_preferences`: Your display preferences. Without arguments: read them. With theme (green | blue | system, or null to reset): save the colour scheme the URLGate website uses for your wallet.
- `my_unlocks`: Links you paid for, newest first, with access state (open / expired / unavailable + reason), receipt and tx links.
- `open_link`: Open a paid link. Without a payment signature you get the x402 v2 payment requirements; send them back signed to get the destination. Already paid, or your own link (signed in as that wallet: token, or a SIGN-IN-WITH-X header signed over this link's challenge)? You get the destination directly. Taken-down links return status 410 with a machine-readable reason. PAYMENT TAKES TWO SIGNATURES: (1) call without payment → isError result whose structuredContent is the x402 PaymentRequired; (2) sign one accepts[] entry (main leg, to the creator) AND the extensions["platform-fee"].accepts[] entry on the same network (0.3% fee leg, to URLGate), same wallet; (3) call again with both: params._meta["x402/payment"] + params._meta["x402/payment-fee"] (PaymentPayload objects) or the arguments paymentSignature + paymentSignatureFee (base64). Only the main leg → refused with fee_leg_missing before anything is charged. Balance must cover BOTH legs (else insufficient_funds, charged:false). If an earlier payment settled only one leg, the result has code partial_payment, partial { paid, owed } and accepts[] with ONLY the owed leg: sign that one and send it alone (fee owed: x402/payment-fee or paymentSignatureFee). Settlement comes back in result._meta["x402/payment-response"]. Test your client for free first with payment_compat_check. The preview testnet test link REQUIRES a wallet with Base Sepolia testnet + test USDC. If your wallet can't use testnet, follow the production path: run payment_compat_check on production (verify-only, no funds move) and, if you meet the two-signature requirements, proceed with the real paid tools.
- `open_link_instructions`: How to pay for and open a link over HTTP x402 v2 (returns the exact URL and steps).
- `payment_compat_check`: FREE, verify-only check that your x402 client can pay URLGate before you spend anything. Call without payment → isError result with a two-leg PaymentRequired (main accepts[] entry + extensions["platform-fee"] entry; tiny amounts, 30 s validBefore). Sign BOTH with the same wallet and call again with _meta["x402/payment"] + _meta["x402/payment-fee"] (or paymentSignature + paymentSignatureFee). Both legs are verified, NEVER settled; you get verdict ok | fee_leg_missing | main_leg_missing | wrong_network | bad_signature | amount_mismatch (or requirement_mismatch, payer_mismatch, expired, insufficient_funds, facilitator_unavailable). Signatures sent here can never pay for anything. The preview testnet test link REQUIRES a wallet with Base Sepolia testnet + test USDC. If your wallet can't use testnet, follow the production path: run payment_compat_check on production (verify-only, no funds move) and, if you meet the two-signature requirements, proceed with the real paid tools. Testnet path: 1. wallet on Base Sepolia with test USDC; 2. payment_compat_check on the preview deployment; 3. sign both legs, call again; 4. verdict ok = ready. Production path: 1. payment_compat_check on production (verify-only, no funds move); 2. sign both legs, call again; 3. verdict ok = proceed with the real paid tools.
- `points_leaderboard`: Public top-100 leaderboard ranked by confirmed (final) points only, ties to the earliest earner. Each row also shows pending: points whose review is still open (not voided, confirmed or expired), never used for rank. Banned wallets are excluded. Wallets are shortened. Page with limit (max 100) and offset or page.
- `points_leaderboard_me`: Your rank on the public leaderboard plus confirmed and pending points. rank is null when you have no confirmed points, opted out, or are banned (reason says which).
- `points_rules`: How points are earned, the caps, and every not-eligible reason.
- `pricing_and_limits`: FREE. Alias of get_started: creation fee, free daily quota (Free / Premium / new wallets), global ceiling, agent-key limits, per-minute limits, Premium perks, and your remaining free links today when signed in or using an agent key.
- `redeem_premium_code`: Redeem a URLGate premium code for the signed-in wallet. Adds the code’s cycles (30 days each) on top of your current period. Each wallet can use a code once; invalid, expired, withdrawn and used-up codes all return invalid_code.
- `report_link`: Report a link to URLGate moderators (scam / phishing, malware, illegal content, copyright, spam, child sexual abuse or exploitation). One report per reporter per link.
- `sessions`: List your sessions/tokens (action=list) or revoke them (action=revoke with scope current|all or a jti).
- `set_link_status`: Pause, resume, remove or restore one of your links. Buyers who already paid keep access while paused.
- `set_points_prefs`: Hide or show your wallet on the public leaderboard (points keep accruing).
- `sign_in`: Sign in with a wallet. Step 1: {address} → message to sign (EIP-191). Step 2: {message, signature} → token; pass it as Authorization: Bearer on the MCP connection (or as `token` on each tool call). This token is what every account change needs: a SIGN-IN-WITH-X header only re-opens paid links and reads (GET /api/v2/auth/siwx/challenge).
- `site_config`: FREE. The fees, prices, quotas, periods and limits in force right now, as JSON (the values every URLGate page and doc is rendered from). Personal quota usage: get_started.
- `update_link`: Edit one of your links. Free: price, title, description, afterPay, networks. Premium: receiptMessage, expiresAt, maxUses, accessTtlSeconds, destinationUrl after the first sale. null clears an option.
- `verify_ledger`: Verify the hash chain of the points ledger.
- `whoami`: The wallet this connection is signed in as, with tier and membership.
