
tierproxy
io.github.tierproxyPublished by GitHub account tierproxyv0.4.0Updated Oct 24, 2026
Multi-provider proxy infrastructure for AI/ML. Geo, sessions, cost-aware routing, usage tools.
Overview
TierProxy's local MCP server lets an assistant fetch URLs through a multi-provider proxy with geo targeting, sessions, cost-aware routing, and usage checks.
- What you can do
- Fetch web pages through the proxy, optionally choosing a country and a sticky session ID for multi-step crawls. Route each request through the cheapest, fastest, most reliable, or balanced healthy upstream. Inspect gateway health and upstream status. Check usage and remaining quota, with a live usage stream. Apply cost guardrails such as a monthly budget that blocks requests before overspending.
- When to use it
- Useful when an assistant needs to retrieve web pages through rotating or geo-located proxy infrastructure, keep sessions across a crawl, or watch proxy cost and quota from within a chat client such as Claude Desktop, Cursor, Cline, or Windsurf.
- Requirements
- Runs locally over stdio as the tierproxy-mcp command, installed from PyPI with the mcp extra (pip install tierproxy[mcp]). Requires a TierProxy API key in the TIERPROXY_API_KEY environment variable. The README states the gateway is a preview release and live use requires an invitation or waitlist signup.
Installation
In SourceWeft
- Open tierproxy in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
tierproxy — Python SDK
🚧 Preview release. Gateway is not yet generally available. Join the waitlist at [email protected]. SDK is functional but
tierproxy doctoragainst a live gateway requires invitation.
[PyPI version] [Python versions] [Downloads] [CI] [codecov] [License: Apache 2.0] [OpenAPI 3.1] [MCP compatible]
Premium multi-provider proxy infrastructure for AI/ML pipelines. Built for engineers who measure cost, latency, and success rate twice — and write Python.
Install
Quickstart — five-second flavor
That's it. (Set TIERPROXY_API_KEY env var first.)
Three lines, persistent session
Auto-pick the cheapest healthy upstream every request
Cost guardrails
Power-user knobs
Raw modes (Playwright, curl, etc.)
Error handling
Every SDK error inherits from tierproxy.TierProxyError and carries a
request_id for support escalation:
See Errors reference for the full HTTP-status-to-exception mapping.
AI agent integration
The SDK exposes its response models as JSON Schema and as pre-built tool definitions for Anthropic Claude and OpenAI function-calling:
See the AI integration guide
and the MCP server in
examples/mcp_claude_desktop.md.
How tierproxy compares
Features
- Five-second quickstart —
import tierproxy; tierproxy.get(url, country="US") - Layered API — five integration levels from one-liner to power-user knobs
- Smart routing —
routing="cheapest"auto-picks healthy upstream per request - Cost guardrails —
monthly_budget_usd=refuses requests that would exceed budget - Per-request cost attribution —
client.cost_for(resp)returns USD; lazy 30s cache, no per-request overhead - Client-side response caching —
cache_ttl=300, cache_max_response_size=262144LRU with size cap - Multi-provider auto-failover —
auto_failover=Trueretries with next-best upstream on 429/5xx - Rate-limit learning —
client.rate_limits.get()surfaces gateway-aggregated 429s per target domain - JA3/JA4 TLS rotation — per-upstream fingerprint randomization (gateway side; see tls-fingerprint guide)
- Cookie persistence — cookies stick to
session_idacross multi-step crawls - Streaming responses —
client.get(url, stream=True)returns iterator (large files, SSE) - Live SSE stream —
for delta in g.usage.stream()tails month-to-date bytes - MCP server —
tierproxy-mcpexposes proxy as tools to Claude/Cursor/Cline - 8 framework integrations — LangChain, LlamaIndex, Crawl4AI, Playwright, Firecrawl, Browser-Use, CrewAI
- OpenTelemetry opt-in —
pip install tierproxy[otel]for distributed tracing - Geo + sticky sessions — countries, cities, 1-1440min session pins
- Dual URL syntax — headers (httpx/requests) AND username-encoding (Playwright)
- Type-safe end-to-end — Pydantic v2 models, mypy strict, full IDE autocomplete
See examples/ for LangChain/LlamaIndex/Crawl4AI/Playwright and
examples/levels.py for a runnable demo of every level.
Use with your favorite AI/agent framework
MCP server (Claude Desktop / Cursor / Cline / Windsurf)
Then add to your MCP client config:
Now your AI assistant can call fetch_url(url, country="US"), inspect health
and usage, and route through the cheapest healthy upstream — no glue code,
no httpx imports, no boilerplate.
Source: README.md at commit f168da1
Tools
0Version history
1- v0.4.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts