# Context7 (npm · @upstash/context7-mcp)

Up-to-date code docs for any prompt

- Trust score: 61/100 (medium)
- Change this week: +37
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- npm · `@upstash/context7-mcp`: 61/100 (this document), [markdown](https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp.md), [page](https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp)

## Channel facts

- Registry: `npm`
- Package: `@upstash/context7-mcp`
- Version: `1.0.31`
- Transport: `stdio`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Supply Chain Security**: 87/100
  - No malware found by supply-chain analysis.
  - Only part of the dependency tree could be resolved (108 of 109), so this covers what we could see, not the whole tree.
  - No install/post-install scripts declared.
  - Only part of the dependency tree could be resolved (108 of 109), so this covers what we could see, not the whole tree.
- **Provenance & Transparency**: 45/100
  - Source repository is publicly reachable at the declared URL.
  - Provenance check failed: no build-provenance attestation is published.
  - Clear OSI-approved license (MIT).
  - Actively maintained (last published 9 days ago).
  - Disclosure check failed: no security disclosure policy was found in the source repository.
- **Schema Quality & AI Usability**: 35/100
  - AI-judged instruction clarity (fair).
  - Context-footprint check failed: tool/resource definitions use about 567 tokens (~283/item across 2 items; 2 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 23/100
  - Stability observed for 7 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add upstash-context7 -- npx -y @upstash/context7-mcp
```

### Codex

```bash
codex mcp add upstash-context7 -- npx -y @upstash/context7-mcp
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "upstash-context7": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@upstash/context7-mcp"
      ],
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add upstash-context7 --command npx --arg -y --arg @upstash/context7-mcp
```

### Hermes

```yaml
mcp_servers:
  upstash-context7:
    command: "npx"
    args: ["-y", "@upstash/context7-mcp"]
```

### Other

```json
{
  "mcpServers": {
    "upstash-context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}
```

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 61, +4)

- [functional improvement] Stability: unverified → 0.23

### 2026-08-02 (score 57, +12)

- [security regression] Install scripts: pass → unverified
- [security regression] Known CVEs: partial → unverified
- [security regression] Provenance: fail → unverified
- [security improvement] Malware scan: unverified → pass
- [functional regression] Maintenance: pass → unverified
- [functional regression] Dependency health: partial → unverified
- [functional regression] License: pass → unverified
- [functional] Licence: MIT

### 2026-08-01 (score 45, +10)

- [security improvement] Known CVEs: unverified → partial
- [functional improvement] Dependency health: unverified → partial

### 2026-07-31 (score 35, +29)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 6, −64)

- [security regression] Known CVEs: partial → unverified
- [security regression] Malware scan: pass → unverified
- [security regression] Provenance: fail → unverified
- [security regression] Install scripts: pass → unverified
- [functional regression] License: pass → unverified
- [functional regression] Tool coverage: 100 → unverified
- [functional regression] Dependency health: partial → unverified
- [functional regression] Maintenance: pass → unverified
- [functional] Licence: MIT

### 2026-07-29 (score 70, +45)

- [security regression] Provenance: unverified → fail
- [security improvement] Known CVEs: unverified → partial
- [security improvement] Install scripts: unverified → pass
- [functional regression] Security disclosure: unverified → fail
- [functional improvement] Maintenance: unverified → pass
- [functional improvement] License: unverified → pass
- [functional improvement] Tool coverage: unverified → 100
- [functional] First check of Tool coverage: 100
- [functional] First check of Schema quality: fail
- [functional] First check of Schema quality: fair
- [functional] First check of Schema quality: fail
- [functional] Licence: MIT

### 2026-07-28 (score 25, +1)

- [functional regression] Security disclosure: fail → unverified
- [functional improvement] Dependency health: unverified → partial

### 2026-07-27 (score 24)

First indexed and scored.

## MCP tools (2)

### `resolve-library-id` (~263 tokens)

Resolve Context7 Library ID

Resolves a package/product name to a Context7-compatible library ID and returns a list of matching libraries.

You MUST call this function before 'get-library-docs' to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query.

Selection Process:
1\. Analyze the query to understand what library/package the user is looking for
2\. Return the most relevant match based on:
\- Name similarity to the query (exact matches prioritized)
\- Description relevance to the query's intent
\- Documentation coverage (prioritize libraries with higher Code Snippet counts)
\- Source reputation (consider libraries with High or Medium reputation more authoritative)
\- Benchmark Score: Quality indicator (100 is the highest score)

Response Format:
\- Return the selected library ID in a clearly marked section
\- Provide a brief explanation for why this library was chosen
\- If multiple good matches exist, acknowledge this but proceed with the most relevant one
\- If no good matches exist, clearly state this and suggest query refinements

For ambiguous queries, request clarification before proceeding with a best-guess match.

Input parameters:

- `libraryName` (string, required): Library name to search for and retrieve a Context7-compatible library ID.

### `get-library-docs` (~285 tokens)

Get Library Docs

Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Use mode='code' (default) for API references and code examples, or mode='info' for conceptual guides, narrative information, and architectural questions.

Input parameters:

- `context7CompatibleLibraryID` (string, required): Exact Context7-compatible library ID (e.g., '/mongodb/docs', '/vercel/next.js', '/supabase/supabase', '/vercel/next.js/v14.3.0-canary.87') retrieved from 'resolve-library-id' or directly from user qu…
- `mode` (string): Documentation mode: 'code' for API references and code examples (default), 'info' for conceptual guides, narrative information, and architectural questions.
- `page` (integer): Page number for pagination (start: 1, default: 1). If the context is not sufficient, try page=2, page=3, page=4, etc. with the same topic.
- `topic` (string): Topic to focus documentation on (e.g., 'hooks', 'routing').

## Diagnostics

Captured diagnostic sections: Provenance, Dependencies. The full working is on the page: https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp#diagnostics

## Score history

- 2026-08-03: 61
- 2026-08-02: 57
- 2026-08-01: 45
- 2026-07-31: 35
- 2026-07-30: 6
- 2026-07-29: 70
- 2026-07-28: 25
- 2026-07-27: 24

## Links

- npm package: https://www.npmjs.com/package/@upstash/context7-mcp
- Socket report: https://socket.dev/npm/package/@upstash/context7-mcp
- Repository: https://github.com/upstash/context7
- Changelog RSS feed: https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/upstash-context7/upstash-context7-mcp
