Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Context7 MCP server

by upstash/context7-mcpMIT licenceAudited 29 Sep 2026 · source 36213efe423c

npm @upstash/context7-tools-ai-sdk 1.0.2stdiostreamable-http★ 62,510
!CAUTIONGrade D · 68/100 · 29 Sep 2026 · 36213ef
62,510GitHub stars

Is it safe? With care — CAUTION, grade D (68/100). It exposes 3 tools: 3 read, 0 write and 0 destructive. The audit recorded 34 findings (0 critical, 0 high, 4 medium, 30 low). Maintainer's description: Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Context7 MCP server (upstash/context7-mcp)”. Retrieved 29 Sep 2026. https://modelsatlas.com/mcp/upstash/context7

Trust audit

Audit 0.4.1 · full source read 29 Sep 2026

Trust score68/100!CAUTION D
0 critical0 high4 medium30 low0 info

34 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared4 observations
  • NetworkDeclared5 observations
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsFoundSee the findings

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 4 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 19 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 2 findings
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner upstashOrganizationAccount type recorded when we read the repository.
  • PackagePublished on npm@upstash/context7-tools-ai-sdk at version 1.0.2
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last pushTodayActivity of the repository when we read it.
  • Source commit read36213efe423cThe audit covers exactly this commit, read on 29 Sep 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory3 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (34)

Sorted by severity · the 25 most severe of 34 are listed

MEDIUMHard-coded secretssecret.generic · packages/cli/src/__tests__/setup-auth.test.ts:67
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · packages/mcp/test/integration.test.ts:339
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.generic · packages/tools-ai-sdk/src/agents/context7.ts:30
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
MEDIUMHard-coded secretssecret.private_key · docs/enterprise/integrations/other-git.mdx:71
F-03 Hard-coded secretsCWE-798 · CWE-321Layer L1

Excerpt withheld: it is a secret, and we never print one.

Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · packages/mcp/.prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · packages/opencode/.prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · packages/pi/.prettierignore
F-13 Inventory / provenanceCWE-1104Layer L0
.prettierignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · packages/cli/src/__tests__/find-docs-skill-alignment.test.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const repoRoot = join(dirname(fileURLToPath(import.meta.url)), "../../../..");
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · packages/mcp/src/lib/constants.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
const pkg = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · packages/pi/vitest.config.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
config({ path: path.resolve(__dirname, "../../.env") });
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · packages/sdk/vitest.integration.config.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
dotenv.config({ path: path.resolve(__dirname, "../../.env") });
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · packages/tools-ai-sdk/vitest.config.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
config({ path: path.resolve(__dirname, "../../.env") });
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · packages/mcp/test/integration.test.ts:135
F-04 Network egressCWE-200 · CWE-319Layer L1
resolve(`http://127.0.0.1:${address.port}/api`);
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · packages/mcp/test/integration.test.ts:173
F-04 Network egressCWE-200 · CWE-319Layer L1
metricsUrl = `http://127.0.0.1:${metricsPort}/metrics`;
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · packages/mcp/test/integration.test.ts:496
F-04 Network egressCWE-200 · CWE-319Layer L1
`OpenTelemetry metrics available at http://127.0.0.1:${defaultMetricsPort}/metrics`
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · packages/mcp/test/integration.test.ts:498
F-04 Network egressCWE-200 · CWE-319Layer L1
const response = await fetch(`http://127.0.0.1:${defaultMetricsPort}/metrics`);
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · packages/mcp/test/mcp-subscription-telemetry.test.ts:193
F-04 Network egressCWE-200 · CWE-319Layer L1
return new Request("http://127.0.0.1/mcp", {
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@inquirer/core, @inquirer/type, @changesets/cli, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, eslint-config-prettier
Why
12 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · packages/cli/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@inquirer/core, @inquirer/prompts, boxen, commander, figlet, open, ora, picocolors
Why
19 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · packages/mcp/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@opentelemetry/api, @opentelemetry/exporter-prometheus, @opentelemetry/instrumentation-runtime-node, @opentelemetry/resources, @opentelemetry/sdk-metrics, @types/express, commander, express
Why
18 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · packages/opencode/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@opencode-ai/plugin, @types/node, tsup, typescript
Why
4 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · packages/pi/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@earendil-works/pi-coding-agent, @types/node, dotenv, typebox, typescript, vitest
Why
6 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.authority_framing · docs/enterprise/api/authentication.mdx:50
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
| `admin` | Full access to all endpoints including settings, user management, and delete operations |
Why
No further detail recorded for this rule.
Fix
—
LOWPrompt injectionprompt.credential_read · docs/clients/cursor.mdx:191
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
If the private library can be read, the Cloud Agent is using the API key. If the agent reports **Monthly quota exceeded** even though the key has quota, the request is reaching Context7 anonymously; r
Why
asks the agent to read credentials
Fix
—

Tools it exposes

3 declared in source · 0 destructive

3 read0 write0 destructive
ToolRiskWhat it does
ReactreadA UI library
context7-mcpreaddesc
query-docsreadNo description in the source

Install

Package version 1.0.2 · audited commit 36213ef

Read the findings first. The most severe is Hard-coded secrets (medium) at packages/cli/src/__tests__/setup-auth.test.ts.

claude mcp add context7-mcp --env CONTEXT7_API_KEY=${CONTEXT7_API_KEY} -- npx -y @upstash/[email protected]

The command pins the package version recorded in the source (1.0.2); the audit covers commit 36213efe423c. Transport: stdio · streamable-http. Reads these environment variables: AUTH_SERVER_URL, CONTEXT7_API_KEY, GH_TOKEN, GITHUB_TOKEN, MCP_CLIENT_IP_ASSERTION_KEY, OAUTH_AUTH_SERVER_URL, OAUTH_JWKS_URL, OPENAI_APPS_CHALLENGE_TOKEN and 1 more. Give it the narrowest token it needs.

Audit history

  1. !CAUTION D 68 / 100

    First audit · 36213efe423c

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION DMODELSATLASCAUTION · D
[![ModelsAtlas: CAUTION D](https://modelsatlas.com/mcp/upstash/context7/badge.svg)](https://modelsatlas.com/mcp/upstash/context7/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Context7 MCP server

What is the Context7 MCP server?
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
What tools does Context7 expose?
3 in total: 3 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Context7 safe to connect to an agent?
With care. The audit graded it D (68/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Context7 need?
It reads AUTH_SERVER_URL, CONTEXT7_API_KEY, GH_TOKEN, GITHUB_TOKEN, MCP_CLIENT_IP_ASSERTION_KEY, OAUTH_AUTH_SERVER_URL, OAUTH_JWKS_URL, OPENAI_APPS_CHALLENGE_TOKEN and OPENROUTER_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Context7 run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @upstash/context7-tools-ai-sdk at 1.0.2.
How current is this page?
The grade is for one exact copy of the source (36213efe423c), read on 2026-09-29. The repository is watched and re-audited when it changes.

Sources

  • upstash/context7-mcp on GitHub — the source we read, its licence, stars and activityObserved · 29 Sep 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 36213efe423cObserved · 29 Sep 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.