docs/resources/security.mdx
Context7 takes security and privacy seriously. This page outlines our security practices, data handling, and compliance measures.
Your original prompts and code stay with your AI assistant.
When you use Context7 through an MCP client, the AI assistant (not the user directly) formulates search queries to retrieve relevant documentation. Here is what happens:
What is sent to the Context7 API:
query — a search query formulated by the MCP client (not your original prompt)libraryName or libraryId — the library to look upstdio or http)The search queries formulated by the MCP client (not your original prompts) are used server-side in two ways:
Documentation Reranking
MCP-formulated queries are passed to LLMs to rerank and select the most relevant documentation for your request. Context7 uses well-known, trusted LLM providers for this purpose — including OpenAI, Google Gemini, and Anthropic.
Benchmarking and Quality Improvement
MCP-formulated queries are anonymously stored and used to benchmark retrieval accuracy and improve the documentation matching pipeline over time.
Enterprise Controls
Contact our sales team at context7.com for Enterprise and on-premise plan details.
The Context7 MCP server is open source. If you want full control over what is sent as the query parameter, you can:
packages/mcp/src/index.ts — these descriptions instruct the AI assistant on how to formulate the queryContext7 does not store your source files.
What we store:
What we don't store:
Context7 runs on SOC 2 compliant infrastructure provided by Upstash.
Context7's infrastructure is managed by the experienced Upstash team:
All security practices and certificates of Upstash apply to Context7 products:
Learn more about Upstash security: trust.upstash.com
Single Sign-On (SSO) is available for Enterprise plans.
Supported SSO providers:
Enterprise features include:
Contact our sales team at context7.com for Enterprise plan details.
Context7 provides:
All indexed documentation and metadata are stored within Upstash's SOC 2 compliant infrastructure in the United States and the European Union. Cross-border data transfers comply with the EU General Data Protection Regulation (GDPR) and the EU-U.S. Data Privacy Framework (DPF), and enterprise customers can request region-specific data residency to meet local regulatory requirements.
Context7 indexes documentation from public and private repositories. To protect against malicious content being served to AI assistants, Context7 employs a two-pass prompt injection detection pipeline.
This ensures that documentation retrieved through Context7 is safe to consume by both human developers and AI coding agents.
For more details on how Context7 handles quality and safety, see the Quality and Safety in Context7 blog post.
If you discover a security vulnerability:
We take all security reports seriously and will respond promptly.
The Context7 MCP server is open source:
Repository: github.com/upstash/context7
Context7 benefits from Upstash's compliance certifications:
For private repository access:
For security-related questions:
For privacy policy details, visit: context7.com/privacy
Last Updated: February 2026
We continuously improve our security practices. Check this page regularly for updates.