What it is
Context7 gives a coding agent up-to-date documentation and code examples for libraries. The @upstash/context7-mcp package talks to Context7's hosted API, and a hosted MCP endpoint is also available.
- Maintainer
- Official (vendor)upstash on GitHub (organisation account, project of the same name)
- Source
- upstash/context765,948 GitHub stars · MIT licence
- Transport
- stdio (npm package), Streamable HTTP (hosted endpoint, also self-hostable)Hosted endpoint: https://mcp.context7.com/mcp
- Packages
- @upstash/context7-mcp npm · latest 4.9.5
- Latest release
- @upstash/context7-mcp@4.9.5 2026-12-05
- Public advisories
- 0GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: no
- Writes: no
- Deletes: no
- Runs code: no
- Network: yes
- Sends: yes
Everything it does is a request to the Context7 service. The README describes the code tools as working on library or public GitHub source, not on your local files.
| Tool | What it can do | Notes |
|---|---|---|
resolve-library-id | Network | Resolves a library name to a Context7 library ID. |
query-docs | Network | Fetches documentation and examples for a library ID. |
grep-code | Network | Experimental. Searches library source on Context7 or a public GitHub repo, not your disk. |
glob-code | Network | Experimental. Lists files by name in that remote source. |
read-code | Network | Experimental. Reads lines of a remote file. |
find-symbol | Network | Experimental. Finds definitions or references in remote source. |
get-upgrade-guide | Network | Fetches an upgrade guide from the service. |
submit-docs-feedback | Network, Sends | Sends feedback on a docs answer to the service. |
Eight tool names are defined in the package source. The README documents two as the default and marks the code tools experimental, off unless you opt in.
Credentials and least privilege
A key is optional for basic use.
| Credential | What it is for | Least privilege |
|---|---|---|
CONTEXT7_API_KEY | Optional key for higher rate limits and private repositories. Also accepted as --api-key or an Authorization: Bearer header. | Create it from the Context7 dashboard, use a key just for this machine, and keep it in an environment variable, not in a committed config. |
Public security advisories
No published security advisory was listed for this project on GitHub or OSV as of December 5, 2026. That only means none had been published. It does not mean the code has been audited.
What stands out
- Your queries leave the machine, so do not put secrets or private code in a query.
- The README says
get-library-docswas renamedquery-docs, so any allowlist you wrote for the old name needs updating. - The hosted HTTP endpoint needs a credential on every request by default, per the self-hosting docs.
Safe-install checklist
Install command from the project's docs: npx -y @upstash/context7-mcp.
- Pin the version. Use an exact version, not
latest:npx -y @upstash/context7-mcp@4.9.5. Add --api-key only if you want higher limits or private repos. - Scope the credential. Create it from the Context7 dashboard, use a key just for this machine, and keep it in an environment variable, not in a committed config.
- Treat docs it returns as untrusted text, like any web content.
- Leave experimental tools off unless you need them, and re-snapshot the tool list after an update.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itcontext7:{ "permissions": { "deny": [ "mcp__context7__submit-docs-feedback" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can Context7 MCP server do on my machine or accounts?
Based on its public tool definitions, it can: reaches the open web or a third-party service beyond the account you connect it to; sends messages, posts or publishes for you. Everything it does is a request to the Context7 service. The README describes the code tools as working on library or public GitHub source, not on your local files.
Does Context7 MCP server need a token or API key?
Yes, depending on setup: CONTEXT7_API_KEY. A key is optional for basic use.
Has Context7 MCP server had public security advisories?
No published advisory was listed for it on GitHub or OSV as of December 5, 2026. That is not proof it has no issues, only that none had been published.
How do I keep Context7 MCP server from changing under me?
Pin the version, for example npx -y @upstash/context7-mcp@4.9.5. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
