Repository Analysis

upstash/context7

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

14.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of upstash/context7, a TypeScript project with 59,073 GitHub stars. SynthScan v2.0 examined 37,832 lines of code across 201 source files, recording 165 pattern matches distributed across 6 syntactic categories. The overall adjusted score of 14.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

14.5
Adjusted Score
14.5
Raw Score
100%
Time Factor
2026-07-13
Last Push
59.1K
Stars
TypeScript
Language
37.8K
Lines of Code
201
Files
165
Pattern Hits
2026-07-14
Scan Date
0.54
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 108MEDIUM 6LOW 51

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 165 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Magic Placeholder Names108 hits · 448 pts
SeverityFileLineSnippetContext
HIGHplugins/copilot/context7/README.md29export CONTEXT7_API_KEY="your-api-key"CODE
HIGHplugins/claude/context7/README.md29export CONTEXT7_API_KEY="your-api-key"CODE
HIGHpackages/mcp/README.md110 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md126 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md142claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYCODE
HIGHpackages/mcp/README.md148claude mcp add --scope user --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.comCODE
HIGHpackages/mcp/README.md169amp mcp add context7 --header "CONTEXT7_API_KEY=YOUR_API_KEY" https://mcp.context7.com/mcpCODE
HIGHpackages/mcp/README.md187 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md201 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md226 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md241 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md276 "Authorization": "Bearer YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md296 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md341 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md380- **Value:** `Bearer YOUR_API_KEY`CODE
HIGHpackages/mcp/README.md401 "Authorization": "Bearer YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md410Replace YOUR_API_KEY with your actual Context7 API key.CODE
HIGHpackages/mcp/README.md435 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md449 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md471 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md485 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md507 "CONTEXT7_API_KEY": "YOUR_API_KEY",CODE
HIGHpackages/mcp/README.md522 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md546 "CONTEXT7_API_KEY": "YOUR_API_KEY",CODE
HIGHpackages/mcp/README.md561 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md587 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md608 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md622 "command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],CODE
HIGHpackages/mcp/README.md642args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md652http_headers = { "CONTEXT7_API_KEY" = "YOUR_API_KEY" }CODE
HIGHpackages/mcp/README.md667> "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md682> "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md706 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md745 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md758 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],CODE
HIGHpackages/mcp/README.md796 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md816 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md950 "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],CODE
HIGHpackages/mcp/README.md970 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md991 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],CODE
HIGHpackages/mcp/README.md1018 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1043 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1060 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1089 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1115 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1131 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1157 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1173 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1191 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1231 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1252 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1277 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/mcp/README.md1311 "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],CODE
HIGHpackages/mcp/README.md1330droid mcp add context7 https://mcp.context7.com/mcp --type http --header "CONTEXT7_API_KEY: YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1344droid mcp add context7 "npx -y @upstash/context7-mcp" --env CONTEXT7_API_KEY=YOUR_API_KEYCODE
HIGHpackages/mcp/README.md1375autohand mcp add context7 npx -y @upstash/context7-mcp --api-key YOUR_API_KEYCODE
HIGHpackages/mcp/README.md1457bun run dist/index.js --transport stdio --api-key YOUR_API_KEYCODE
HIGHpackages/mcp/README.md1486 "CONTEXT7_API_KEY": "YOUR_API_KEY"CODE
HIGHpackages/mcp/README.md1501 "args": ["tsx", "/path/to/folder/context7/src/index.ts", "--api-key", "YOUR_API_KEY"]CODE
HIGHpackages/cli/README.md84ctx7 setup --api-key YOUR_API_KEYCODE
48 more matches not shown…
Structural Annotation Overuse36 hits · 73 pts
SeverityFileLineSnippetContext
LOWplugins/copilot/context7/skills/context7-mcp/SKILL.md19### Step 1: Resolve the Library IDCOMMENT
LOWplugins/copilot/context7/skills/context7-mcp/SKILL.md26### Step 2: Select the Best MatchCOMMENT
LOWplugins/copilot/context7/skills/context7-mcp/SKILL.md34### Step 3: Fetch the DocumentationCOMMENT
LOWplugins/copilot/context7/skills/context7-mcp/SKILL.md43### Step 4: Use the DocumentationCOMMENT
LOWplugins/cursor/context7/skills/context7-mcp/SKILL.md19### Step 1: Resolve the Library IDCOMMENT
LOWplugins/cursor/context7/skills/context7-mcp/SKILL.md26### Step 2: Select the Best MatchCOMMENT
LOWplugins/cursor/context7/skills/context7-mcp/SKILL.md34### Step 3: Fetch the DocumentationCOMMENT
LOWplugins/cursor/context7/skills/context7-mcp/SKILL.md43### Step 4: Use the DocumentationCOMMENT
LOWplugins/claude/context7/skills/context7-mcp/SKILL.md19### Step 1: Resolve the Library IDCOMMENT
LOWplugins/claude/context7/skills/context7-mcp/SKILL.md26### Step 2: Select the Best MatchCOMMENT
LOWplugins/claude/context7/skills/context7-mcp/SKILL.md34### Step 3: Fetch the DocumentationCOMMENT
LOWplugins/claude/context7/skills/context7-mcp/SKILL.md43### Step 4: Use the DocumentationCOMMENT
LOWplugins/codex/context7/skills/context7-mcp/SKILL.md19### Step 1: Resolve the Library IDCOMMENT
LOWplugins/codex/context7/skills/context7-mcp/SKILL.md26### Step 2: Select the Best MatchCOMMENT
LOWplugins/codex/context7/skills/context7-mcp/SKILL.md34### Step 3: Fetch the DocumentationCOMMENT
LOWplugins/codex/context7/skills/context7-mcp/SKILL.md43### Step 4: Use the DocumentationCOMMENT
LOWplugins/context7-power/POWER.md29### Step 1: Resolve the Library IDCOMMENT
LOWplugins/context7-power/POWER.md38### Step 2: Select the Best MatchCOMMENT
LOWplugins/context7-power/POWER.md47### Step 3: Fetch the DocumentationCOMMENT
LOWplugins/context7-power/POWER.md56### Step 4: Use the DocumentationCOMMENT
LOWpackages/cli/src/setup/templates.ts79 const marker = "## Step 1: Resolve a Library";CODE
LOWpackages/cli/src/commands/skill.ts831 // Step 1: Detect dependenciesCOMMENT
LOWpackages/cli/src/commands/skill.ts843 // Step 2: Single API call to backendCOMMENT
LOWpackages/cli/src/commands/skill.ts945 // Step 4: Install (same pattern as searchCommand)COMMENT
LOWskills/context7-mcp/SKILL.md19### Step 1: Resolve the Library IDCOMMENT
LOWskills/context7-mcp/SKILL.md26### Step 2: Select the Best MatchCOMMENT
LOWskills/context7-mcp/SKILL.md34### Step 3: Fetch the DocumentationCOMMENT
LOWskills/context7-mcp/SKILL.md43### Step 4: Use the DocumentationCOMMENT
LOWskills/context7-cli/SKILL.md32ctx7 library <name> <query> # Step 1: resolve library IDCODE
LOWskills/context7-cli/SKILL.md33ctx7 docs <libraryId> <query> # Step 2: fetch docsCODE
LOWskills/context7-cli/references/docs.md7## Step 1: Resolve a LibraryCOMMENT
LOWskills/context7-cli/references/docs.md65## Step 2: Query DocumentationCOMMENT
LOWskills/find-docs/SKILL.md42# Step 1: Resolve library IDCOMMENT
LOWskills/find-docs/SKILL.md45# Step 2: Query documentationCOMMENT
LOWskills/find-docs/SKILL.md53## Step 1: Resolve a LibraryCOMMENT
LOWskills/find-docs/SKILL.md106## Step 2: Query DocumentationCOMMENT
Modern AI Meta-Vocabulary6 hits · 11 pts
SeverityFileLineSnippetContext
MEDIUMpackages/mcp/README.md1263See [Qodo Gen docs](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps) for CODE
MEDIUMpackages/tools-ai-sdk/README.md87See the [documentation](https://context7.com/docs/agentic-tools/ai-sdk/getting-started) for details.CODE
MEDIUMi18n/README.uk.md577Детальніше див. у [документації Qodo Gen](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agCODE
MEDIUMi18n/README.id-ID.md535Lihat [dokumentasi Qodo Gen](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mCODE
MEDIUMi18n/README.pt-BR.md818Veja mais em [docs do Qodo Gen](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-toolCODE
MEDIUMi18n/README.vi.md535Xem [tài liệu Qodo Gen](https://docs.qodo.ai/qodo-documentation/qodo-gen/qodo-gen-chat/agentic-mode/agentic-tools-mcps) CODE
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOWpackages/mcp/src/index.ts310function installTransportArgAliasing(transport: Transport): void {CODE
LOWpackages/mcp/src/lib/utils.ts89export function extractClientInfoFromUserAgent(CODE
LOWpackages/mcp/src/lib/client-ip.ts45function pickClientIpFromForwardedList(ipList: string[]): string | undefined {CODE
LOWpackages/cli/src/setup/templates.ts65export function customizeSkillFilesForAgent(CODE
LOWpackages/cli/src/utils/update-check.ts261export async function shouldShowUpdateNotification(CODE
LOWpackages/cli/src/utils/update-check.ts282export async function markUpdateNotificationShown(CODE
LOWpackages/cli/src/utils/ide.ts53async function detectVendorSpecificAgents(scope: Scope): Promise<IDE[]> {CODE
LOWpackages/cli/src/utils/ide.ts281export function getTargetDirFromSelection(ide: IDE, scope: Scope): string {CODE
LOWpackages/cli/src/utils/deps.ts94export async function detectProjectDependencies(cwd: string): Promise<string[]> {CODE
LOWpackages/cli/src/commands/setup.ts102async function authenticateAndGenerateKey(): Promise<string | null> {CODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpackages/cli/src/setup/templates.ts79 const marker = "## Step 1: Resolve a Library";CODE
LOWpackages/cli/src/commands/skill.ts831 // Step 1: Detect dependenciesCOMMENT
LOWpackages/cli/src/commands/skill.ts843 // Step 2: Single API call to backendCOMMENT
LOWpackages/cli/src/commands/skill.ts945 // Step 4: Install (same pattern as searchCommand)COMMENT
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/workflows/triage-library-report.yml1name: Triage library reportCOMMENT