MCP server · Org-owned · Audited from source
Context7 MCP server
by upstash/context7MIT licenceAudited 19 Sep 2026 · source 1a8f35415149
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
Cite
Cite this page
ModelsAtlas. “Context7 MCP server (upstash/context7)”. Retrieved 19 Sep 2026. https://modelsatlas.com/mcp/upstash/context7-1
Copy of mcp/upstash/context7: identical text; the original is the page to read and cite.
Trust audit
Audit 0.4.1 · full source read 19 Sep 2026
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 4 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 19 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 2 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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-sdkat version 1.0.1 - LicenceMITFrom the repository, as read at the audited commit.
- Last pushTodayActivity of the repository when we read it.
- Source commit read1a8f35415149The audit covers exactly this commit, read on 19 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
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
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
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
Excerpt withheld: it is a secret, and we never print one.
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · packages/cli/src/__tests__/find-docs-skill-alignment.test.ts:6
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
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
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
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
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
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
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
`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
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
return new Request("http://127.0.0.1/mcp", {- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@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
@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
@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
@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
@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
| `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
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
| Tool | Risk | What it does |
|---|---|---|
React | read | A UI library |
context7-mcp | read | desc |
query-docs | read | No description in the source |
Install
Package version 1.0.1 · audited commit 1a8f354
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.1); the audit covers commit 1a8f35415149. 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. Give it the narrowest token it needs.
Audit history
- !CAUTION D 68 / 100
Source changed, verdict held ·
1a8f35415149 - !CAUTION D 68 / 100
First audit ·
c31743b7a5e4
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?
What tools does Context7 expose?
Is Context7 safe to connect to an agent?
What credentials does Context7 need?
How does Context7 run?
How current is this page?
Sources
- upstash/context7 on GitHub — the source we read, its licence, stars and activityObserved · 19 Sep 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 1a8f35415149Observed · 19 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.
- What is the Context7 MCP server?
- What tools does Context7 expose?
- Is Context7 safe to connect to an agent?