← All Comparisons (/vs)
HEAD-TO-HEAD TECHNICAL COMPARISON (2026)

context7 vs cost-xray

Side-by-side 2026 comparison in Coding, Skills & MCP: upstash/context7 leads both total GitHub adoption (★ 65.8k) and recent 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.

Cumulative Star Gain Chart (Embeddable SVG)

Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.

context7 vs cost-xray — 14-Day Star Velocity Comparison on RepoForAI.com 14-DAY CUMULATIVE STAR GAIN COMPARISON REPOFORAI.COM context7 ★ 65.8k (+333/7d) cost-xray ★ 5.4k (+209/7d) +622 +311 0 11-21 11-28 12-04 (D1 snapshot)
upstash/context7 (Health A+ 96/100) vs tigerless-labs/cost-xray (Health B+ 73/100) multi-day star momentum.
Compare different repos →

Key Metrics Matrix

Dimensionupstash/context7tigerless-labs/cost-xray
Total GitHub Stars★ 65,830★ 5,441
24h / 7d Velocity+39 / +333+0 / +209
7-Day Trend Curve
Engineering HealthA+ · 96/100B+ · 73/100
Deployment SignalsMCP · CLI · APISelf-Hosted · CLI
Primary LanguageTypeScriptPython
Commercial LicenseMIT · Commercial FriendlyMIT · Commercial Friendly
ActivityUpdated todayUpdated 22d ago
Latest Release@upstash/context7-mcp@4.9.3Rolling commits (main)
Best ForTeams using coding agents that frequently need version-specific library examples and can rely on a hosted documentation indexClaude Code or Codex users tuning MCP configuration, investigating context pressure, or tracing costs to a particular schema or tool result
Maintaining context7, cost-xray, or an open-source alternative? Reach engineers comparing this stack.
Feature Repo ($19)Sponsor Track

context7 · Highlights & Quickstart

Tool contract: resolve-library-id matches a name in the context of the task; query-docs retrieves by exact library ID.
Retrieval controls: Name the target version in the prompt, bypass matching with a known ID, or use the optional language argument to prioritize code examples.
Integration modes: CLI + Skills works without MCP; MCP gives compatible clients a native tool interface.
Package boundaries: Separate packages provide the MCP server, ctx7 CLI, TypeScript SDK, Vercel AI SDK tools, and pi.dev extension.
npx ctx7 setup

cost-xray · Highlights & Quickstart

Capture: Claude Code uses a base-URL override; Codex uses a forward proxy with command-scoped CA trust.
Processing: mitmproxy records redacted traffic; a separate materializer tokenizes and prices it.
Attribution: The TUI breaks out fresh input, cache reads, cache writes, and output down to individual tool calls.
Context occupancy: Identify MCP schemas injected on every turn even when their tools are never called.
curl -fsSL https://raw.githubusercontent.com/tigerless-labs/cost-xray/master/install.sh | bash

context7 vs cost-xray FAQ

How do context7 and cost-xray differ on commercial licensing?

upstash/context7 uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.), whereas tigerless-labs/cost-xray uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.).

Which is growing faster in 2026: context7 or cost-xray?

According to RepoForAI's 6-hour GitHub telemetry, context7 has 65,830 stars (+333 in 7d) vs. cost-xray with 5,441 stars (+209 in 7d).

When should engineering teams pick context7 vs cost-xray?

Choose context7 (TypeScript) for: Teams using coding agents that frequently need version-specific library examples and can rely on a hosted documentation index. Choose cost-xray (Python) for: Claude Code or Codex users tuning MCP configuration, investigating context pressure, or tracing costs to a particular schema or tool result.

More Head-to-Head Comparisons

WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare