PTS security notes / MCP servers / Context7 MCP server

Is Context7 MCP server safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

Low local risk, with one thing to know: it sends your queries and library names to the Context7 service, and an API key is optional. The default tools read documentation, not your files. Pin the version, keep any API key out of shared config, and leave the experimental code tools off unless you need them.

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.

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.

ToolWhat it can doNotes
resolve-library-idNetworkResolves a library name to a Context7 library ID.
query-docsNetworkFetches documentation and examples for a library ID.
grep-codeNetworkExperimental. Searches library source on Context7 or a public GitHub repo, not your disk.
glob-codeNetworkExperimental. Lists files by name in that remote source.
read-codeNetworkExperimental. Reads lines of a remote file.
find-symbolNetworkExperimental. Finds definitions or references in remote source.
get-upgrade-guideNetworkFetches an upgrade guide from the service.
submit-docs-feedbackNetwork, SendsSends 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.

CredentialWhat it is forLeast privilege
CONTEXT7_API_KEYOptional 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

Safe-install checklist

Install command from the project's docs: npx -y @upstash/context7-mcp.

  1. 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.
  2. 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.
  3. Treat docs it returns as untrusted text, like any web content.
  4. Leave experimental tools off unless you need them, and re-snapshot the tool list after an update.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it context7:
    {
      "permissions": {
        "deny": [
          "mcp__context7__submit-docs-feedback"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages