Skip to main content
Glama
Tranco MCP

Tranco MCP

by pipeworx-io
README.md
# @pipeworx/tranco

Exact popularity rank of a website domain in the Tranco top one million, with its recent daily rank history.

Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2082+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

## Tools

- `tranco_rank(domain, history_days?)` returns the domain's current rank (1 is the most visited site), the date of that rank, a daily history of about five weeks (37 days when measured on 2026-12-01), and the best, worst and net change over that window. It answers "how popular is this site", "is this domain established or obscure" and "which of these two sites ranks higher". A hostname or URL is accepted; a subdomain is resolved to its ranked parent domain and the answer says which name matched.

A domain outside the list returns `found: false` with `reason: "outside_top_million"`. Tranco answers the same way for a name that has never existed, so that result means "no rank", and says nothing about whether the site is live.

Every answer names `radar_domain_rank` (the `cloudflare-radar` pack) for a second, independent reading: Cloudflare Radar gives an exact rank inside its global top 100 and a size bucket below that, plus per-country ranks. The two rankings are built from different traffic data and will differ.

Fields Tranco does not publish are listed in `fields_unavailable` on every answer: an authority score, referring-domain counts and visit counts.

## Auth

Keyless.

## Data sources

- Tranco (KU Leuven DistriNet and partners), daily top one million sites ranking. Tranco combines several provider rankings over a 30-day window so that a rank is hard to move by manipulating one list.

Things the next person would otherwise rediscover:

- The list ranks registrable domains. A hostname under a ranked site (a news or shop subdomain, say) has no rank of its own; its registrable parent does. The pack walks up one label at a time, at most two extra lookups.
- An unranked name is an HTTP 200 with an empty series, the same as for a string that is no domain.
- Lookups are limited to about one per second per address, and the refusal is an HTML page. The pack spaces its own lookups and retries a refusal once.
- A day can be missing from a domain's series: it was outside the list that day. `history_window.days_ranked` counts the days present.

## Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

```json
{
  "mcpServers": {
    "tranco": {
      "url": "https://gateway.pipeworx.io/tranco/mcp"
    }
  }
}
```

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/tranco/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.

Add an option to the same URL:

- `https://gateway.pipeworx.io/tranco/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/tranco/mcp?meta=0` lists this pack's tools alone.

Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:

```json
{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}
```

Both URLs reach the same gateway and the same 2082+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).

## No MCP client? Call it over HTTP

```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/tranco_rank \
  -H 'Content-Type: application/json' \
  -d '{"domain":"wikipedia.org"}'
```

No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/tranco_rank`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.

## Run it from npm

`@pipeworx/mcp-tranco` is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with `npx`, and it forwards every call to the same
`https://gateway.pipeworx.io/tranco/mcp` endpoint shown above. It needs network access;
there is no offline mode.

```json
{
  "mcpServers": {
    "tranco": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-tranco"]
    }
  }
}
```

Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
`"env": { "PIPEWORX_API_KEY": "<your key>" }` to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.

It lists **only** this pack's tools by default. Set `PIPEWORX_META_TOOLS=1` to
also list `ask_pipeworx` and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in `fetch` does not read `HTTPS_PROXY` by
default. Newer Node releases honour it when `NODE_USE_ENV_PROXY=1` is set; check
your Node version's documentation.

## Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:

```
ask_pipeworx({ question: "your question about Tranco data" })
```

The gateway picks the right tool and fills the arguments automatically.

## More

- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)

## License

MIT