Context7 MCP server data privacy

Context7 sends only the queries the MCP client formulates to its API, and its vendor documentation says Enterprise teamspace queries are never stored for benchmarking. On-premise deployments still forward public documentation lookups to Context7 Cloud when needed.

On this page

Context7 MCP server data privacy: what leaves the machine and who can use it

A privacy or security reviewer approving developers and coding agents for the Context7 MCP server should start from a defined data set: the vendor's data privacy page says only queries formulated by the MCP client are sent to the Context7 API, and that the full prompt, source code and conversation history are never transmitted. Those queries are also sent to LLMs for reranking, and outside Enterprise teamspaces they are stored anonymously for benchmarking. On-premise deployments still forward public documentation lookups to Context7 Cloud when needed, so an air-gapped claim does not cover every lookup. Treat the on-premise path as a network dependency to test, not a closed system.

The fields listed on the same page are the first thing to verify against your own traffic: the query, the library name or ID, the API key if one is provided, the MCP client name and version, the session ID, the server version and the transport type (stdio or http). Hosted HTTP deployments also send the client IP address as a short-lived AES-256-GCM assertion used for rate limiting. Confirm with the vendor how long the assertion and session identifiers persist, which LLM providers receive reranking traffic, and whether those providers' no-training terms are contractual or only stated. Ask which Enterprise teamspace settings change benchmarking behavior and whether they apply to on-premise deployments.

Vendor terms also bind your organization. The security overview says the Context7 Addendum and the Upstash Terms and Privacy Policy apply to all users, so your legal team should read them before approval rather than relying on the product pages. Ask for the Addendum in writing, confirm whether an Enterprise agreement changes any of these terms, and record which version applies on the approval date. Security questions can go through GitHub Issues, Discord or, for Enterprise customers, a dedicated support team, so route data-handling questions through the channel that produces a written answer.

Data privacy controls by plan and deployment

This table compares how the Context7 MCP server handles each data category under the hosted default, Enterprise teamspaces and on-premise deployments. Where the vendor's documentation does not address a plan or deployment, the cell tells you what to confirm with Context7 instead of assuming a default. The main takeaway is that the documented data sent to the API is limited to query metadata, while teamspace exclusion and on-premise log handling need written confirmation for your contract.

Data controlHosted defaultEnterprise teamspaceOn-premise
Data sent to the Context7 APIQuery, library name or ID, API key if provided, client name and version, session ID, server version, transport typeConfirm with Context7 whether the same fields apply to teamspace queriesConfirm what leaves the network; public documentation lookups are forwarded to Context7 Cloud when needed
Full prompt, source code and conversation historyDocumented as never transmittedConfirm with Context7 in writingConfirm with Context7 in writing
Query use for rerankingQueries go to LLMs for reranking; only trusted providers that do not train on the data are usedConfirm which LLM providers process teamspace queriesConfirm whether reranking runs in Cloud for forwarded queries
Benchmarking storageQueries are stored anonymously for benchmarkingQueries are never stored for benchmarking; no setting is neededConfirm with Context7 whether any queries are retained for benchmarking
Client IP handlingHosted HTTP sends the client IP as a short-lived AES-256-GCM assertion used for rate limitingConfirm with Context7 how IP assertions are handled for teamspace trafficConfirm whether client IPs reach Context7 Cloud on forwarded lookups
On-premise forwardingNot applicableConfirm with Context7 whether teamspace traffic is ever forwardedPublic documentation lookups are forwarded to Context7 Cloud when needed
Application log handlingConfirm with Context7 how long query text and request logs are keptConfirm with Context7 whether teamspace queries appear in any logCloud leaves query text out of application logs for forwarded lookups
Open source forkThe MCP server is open source, so you can fork it and edit tool input descriptions in packages/mcp/src/index.tsConfirm with Context7 that the same code applies to Enterprise teamspacesRun a custom server locally to control the client-side code path

Which fields leave the machine with each Context7 query

The vendor's data privacy page lists the fields Context7 documents as sent to the Context7 API with each query: the query formulated by the MCP client, the library name or ID, the API key if one is provided, the MCP client name and version, a session ID, the server version, and the transport type, which is either stdio or http. The page states that only queries formulated by the MCP client leave the machine, and that the full prompt, source code and conversation history are never transmitted. Reviewers should treat that list as the vendor's documented baseline, not as a guarantee for every client build, and should confirm it against their own traffic before approval.

The practical way to confirm the payload is a test session. Point one developer machine at the official server, run a few representative lookups from each client the organization plans to allow, and capture the outbound requests with a local proxy or an egress log. Compare the captured fields with the list above, check that no file contents or chat history appear, and record the client name and version the server reports. Repeat the test after each client or server upgrade, because the field list can change between releases. Hosted HTTP deployments also send the client IP address, which the page describes as a short-lived AES-256-GCM assertion used for rate limiting. Ask the vendor how long that assertion lives and whether the IP is retained beyond rate limiting.

The main content risk is the query text itself. An agent writes that text, and a model can place internal project names, customer identifiers, internal library names or fragments of proprietary logic into a lookup without anyone noticing. The api_key field is a second concern: if staff paste a personal key into configuration, it is sent with every request. Define a rule for what may appear in queries, prefer organization-issued keys, and check how the client stores those keys on disk. Because the query is what reaches the vendor, that rule matters more than the other fields in the payload.

How a Context7 query moves from the client to reranking and storage

The path starts in the MCP client, which formulates a query and sends it through the Context7 MCP server to the Context7 API. The query then goes to LLM reranking by trusted providers that do not train on the data. For non-Enterprise queries, the stored record is anonymous and used for benchmarking, while Enterprise teamspace queries are never stored for benchmarking. On-premise deployments forward public documentation lookups to Context7 Cloud, where query text stays out of application logs. Check which branch applies to your plan and deployment before approving use.

Query path from the MCP client to reranking, storage and the on-premise branch.

How the data answer changes by deployment and plan

In the standard hosted setup, the MCP client sends the query, library name or ID and any API key to the Context7 API. The vendor's data privacy page says queries are sent to LLMs for reranking, that Context7 uses only trusted LLM providers that do not train on the data, and that queries are stored anonymously for benchmarking. Hosted HTTP deployments also send the client IP address as a short-lived AES-256-GCM assertion, used for rate limiting.

  • Benchmarking storage: Queries from individual and team use are stored anonymously for benchmarking, so reviewers should treat query text as retained for that purpose.
  • Reranking providers: The page says trusted providers are used but does not name them in the facts, so ask Upstash which LLM providers receive query text.
  • Client metadata: The MCP client name and version, session ID, server version and transport type are sent with each request.
  • Retention periods: No retention period for stored queries or logs is given in the facts, so ask for it in writing.
  • Terms: The Context7 Addendum and the Upstash Terms and Privacy Policy apply to all users.

Confirm the retention period, the LLM provider list and the contractual data terms before approving hosted use for source-adjacent work.

How reranking and benchmarking use developer queries

The first question for a privacy reviewer is what happens to a query after the MCP client sends it. According to the Context7 data privacy page, queries are sent to LLMs for reranking, which is a step in choosing which documentation results to return. The vendor says Context7 uses only trusted LLM providers that do not train on the data. Treat that as the vendor's statement and get it confirmed in writing: ask Upstash to name the LLM providers involved, the contractual terms that bind them, and whether any provider in the path could retain the query text for its own purposes.

Benchmarking is a separate use. Outside Enterprise teamspaces, the vendor says queries are stored anonymously for benchmarking. Queries from Enterprise teamspaces are never stored for benchmarking, and the page says no setting is needed to get that outcome. Confirm that statement against the plan your organization would buy, because the exclusion is tied to Enterprise teamspaces and not to the open or individual use of the tool. Ask the vendor to show how the anonymization works, what fields survive it, and whether a developer who uses a personal account on a company machine would fall into the stored group.

The facts supplied do not give a retention period for reranking inputs or for anonymized benchmarking records. Ask for both periods in writing, along with the deletion process and the logs that would show a deletion happened. Also ask whether reranking inputs are kept in any form after the response is returned. Without those answers, the review cannot close the question of how long developer queries persist, so record the gap as an open item and make it a condition of approval for any team outside an Enterprise teamspace.

Gaps a privacy review must close before approval

The Context7 data privacy page describes what leaves the machine, but several points a privacy review depends on are not stated in the documentation. Each card names one gap, why it matters for the Context7 MCP server, and the usual way to close it through written vendor answers, network controls or a reviewed fork.

Retention periods not stated

The data privacy page says queries are stored anonymously for benchmarking and that Enterprise teamspace queries are never stored for benchmarking, but it does not give a retention period for stored queries, logs or rate-limiting records. Ask Upstash for written retention periods for each data category, covering queries, API key metadata, session IDs and the client IP assertion used on hosted HTTP deployments. Record the answers in the approval file so the review does not rely on the public page alone.

Data privacy page

LLM providers and their contracts

Queries are sent to LLMs for reranking, and the page says Context7 uses only trusted LLM providers that do not train on the data. The provider names, the contract terms under which they process queries, and their data location are not listed. Request the list of subprocessors and the terms that apply to each, then confirm whether they match the data processing terms your organization already accepts.

Terms for individuals and Enterprise

The security overview says the Context7 Addendum and the Upstash Terms and Privacy Policy apply to all users. Enterprise teamspaces get a different benchmarking rule, so reviewers must confirm which terms cover hosted query text for each plan and whether the Addendum changes retention, reranking or subprocessor terms. Developers on individual accounts should not be able to send company queries under the consumer terms.

Security overview

On-premise forwarding path

On-premise deployments forward public documentation lookups to Context7 Cloud when needed, and the page says Cloud leaves query text out of application logs. It does not describe the destination hosts, the protocol or which lookups trigger forwarding. Map the outbound path before approval, then restrict egress from the on-premise server to the documented endpoints through a network allowlist and log the connections that remain.

API key handling in client configuration

The API key, if provided, is sent with each query, so it is an identity credential for the organization's Context7 usage. Client configuration files often store it in plain text in shared repositories or developer home directories. Set a rule that keys come from a managed secret store or environment variable, rotate them on staff departure, and confirm with the vendor how keys are scoped and revoked for teamspaces.

No documented way to stop forwarding

The data privacy page does not describe a setting that disables query forwarding on the hosted server, and the only documented way to change server behavior is to fork the open source repository and edit the tool input descriptions in packages/mcp/src/index.ts. A fork lets your team review the code and run it locally, but it still sends queries to the Context7 API unless the code is changed. Ask the vendor in writing whether a forwarding opt-out exists, and if not, approve only a reviewed fork with the egress controls above.

upstash/context7 repository

Order of work for a data privacy approval

This sequence turns the vendor's published data handling claims into a tested, signed-off decision on whether staff may send queries to Context7, and under which hosting and key rules. Each step produces a record the reviewer can check later.

  1. Collect the vendor documents and Addendum terms

    The security reviewer collects the Context7 data privacy page and the security overview, then obtains the Context7 Addendum and the Upstash Terms and Privacy Policy, which the vendor says apply to all users. Save dated copies of each document, because the vendor can revise them. Confirm which terms govern the plan in use, and note any gap between the public pages and the contract. The step is complete when every document is stored with its retrieval date and the reviewer has listed the terms that apply to the organization.

  2. Confirm the plan and teamspace in use

    Procurement and the platform owner confirm whether staff will use a personal account, a team account or an Enterprise teamspace. The vendor states that queries from Enterprise teamspaces are never stored for benchmarking and that no setting is needed for this, so the answer changes which retention statement applies. Ask the vendor in writing to confirm that the teamspace in scope is covered and where Enterprise support questions are routed. The step closes with a written record of the account type, teamspace name and the vendor's confirmation.

  3. Test the payload against the documented field list

    A security engineer runs a sample session with the MCP server, using a test library and a non-sensitive query, and captures the outbound requests with a proxy or network logging tool. Compare the captured fields with the vendor's list: the query, the library name or ID, any API key, client name and version, session ID, server version and transport type. Check that no full prompt, source code or conversation history appears. Any field not on the list is an open question for the vendor. The step closes when the captured payload is attached to the record and every extra field is either explained or escalated.

  4. Decide between hosted and on-premise deployment

    The architect compares the hosted HTTP path with the on-premise path. The vendor says hosted HTTP deployments send the client IP address as a short-lived encrypted assertion used for rate limiting, and that on-premise deployments forward public documentation lookups to Context7 Cloud when needed, with Cloud leaving query text out of application logs. Decide which path fits the data classes staff will use, and confirm with the vendor how the on-premise forwarding behaves in the organization's network. The step closes with a documented choice and the reasons for it.

  5. Set egress and API key policy

    The platform team defines which hosts and ports developer machines and build runners may reach, and which MCP clients are permitted to start the server. It also sets how API keys are issued, stored and rotated, since the API key is one of the fields sent to the Context7 API when provided. Confirm with the identity team whether keys are personal or shared, and where they are kept. The step closes when the egress rule and key policy are written, applied to a test device, and confirmed to block unlisted destinations.

  6. Record the reviewer's sign-off

    The accountable security or privacy reviewer signs a decision record that lists the documents reviewed, the terms that apply, the plan and teamspace, the captured payload, the hosting choice, the egress rule and the key policy. The record also states any accepted residual risk, such as the vendor's use of trusted LLM providers for reranking and anonymous benchmarking outside Enterprise teamspaces. The step is complete when the signed record is filed with the owner of the AI tool inventory.

  7. Schedule a recheck when documentation changes

    The compliance lead sets a review trigger tied to changes in the vendor's data privacy page, the security overview, the Addendum or the Upstash terms, and to any change in the open source server that the organization runs. Someone checks the vendor pages on a set cadence the organization chooses, and repeats the payload test after any update to the server version. The step closes when the recheck owner, the trigger list and the next review date are recorded with the approval.

Evidence a security reviewer asks for on Context7 data handling

This table lists each data handling claim a reviewer will need to see, where the claim is documented, and what still needs confirmation before approval. Use it as a checklist when you request written answers from Upstash or the Context7 team. The main takeaway is that most published statements describe default behavior, so the reviewer should confirm the plan, deployment mode and retention terms that apply to their own organization.

Evidence itemWhere it comes fromWhat the reviewer still confirms
Documented payload fieldsContext7 data privacy page list of fields sent with each query, including query, library name or ID, API key if provided, client name and version, session ID, server version and transport typeWhether the list is complete for the client version in use, and whether the API key field is sent in plain form or hashed
Client IP address handlingData privacy page states hosted HTTP deployments send the client IP as a short-lived AES-256-GCM assertion used for rate limitingRetention period for the assertion, who can access it, and whether IP data is kept in any log beyond rate limiting
LLM reranking provider statementData privacy page says queries go to LLMs for reranking and that only trusted providers that do not train on the data are usedNames of the providers in use, their retention terms, and whether the agreements allow zero retention
Benchmarking storage statementData privacy page says queries are stored anonymously for benchmarkingHow anonymization is performed, how long benchmark records are kept, and whether they can be deleted on request
Enterprise teamspace exclusionData privacy page says queries from Enterprise teamspaces are never stored for benchmarking and no setting is neededWritten confirmation that the exclusion covers reranking logs and support tickets, and which plan the exclusion requires
On-premise log behaviorData privacy page says on-premise deployments forward public documentation lookups to Context7 Cloud when needed, and Cloud leaves query text out of application logsWhich lookups are forwarded, what metadata still reaches Cloud, and where the on-premise logs themselves are stored
SOC 2 infrastructure statementSecurity overview says documentation is indexed inside SOC 2 compliant infrastructure operated by Upstash, with certifications listed at trust.upstash.comThe current SOC 2 report scope, the audit period, and whether it covers the Context7 service specifically rather than Upstash generally
Addendum and termsSecurity overview says the Context7 Addendum and the Upstash Terms and Privacy Policy apply to all usersWhich document controls on conflict, data processing terms for GDPR, and any HIPAA position, since neither is stated in the supplied pages
MIT license and fork abilityGitHub repository lists an MIT license, and the data privacy page says the MCP server can be forked and edited locallyWhether the packaged build used by staff matches the audited source, and who will maintain the fork and its dependency updates

Questions procurement and security reviewers ask about Context7 data privacy

Does Context7 use our queries to train AI models?

The vendor's data privacy page says Context7 sends queries to LLMs for reranking and uses only trusted LLM providers that do not train on the data. That statement covers the providers Context7 names, so it does not settle how your own contract applies. Ask Upstash to confirm in writing which providers receive query text, whether any of them retain it, and whether the same rule holds for the Enterprise plan. Also confirm that the Context7 Addendum and the Upstash Terms and Privacy Policy, which the vendor says apply to all users, match the terms your legal team approved. Review effort is mainly legal and contract work, and it grows if you need custom data processing terms.

Does an Enterprise plan change how queries are used for benchmarking?

Yes, according to the vendor's data privacy page. Queries are stored anonymously for benchmarking on general use, but queries from Enterprise teamspaces are never stored for benchmarking, and no setting is needed to turn that on. Confirm this with your account team before signing, and ask whether the rule covers every query path your developers use, including the reranking step and any logs kept for support. Get the answer in the contract or order form, since a documentation page can change.

What still leaves our network when we run Context7 on-premise?

The vendor's data privacy page says on-premise deployments forward public documentation lookups to Context7 Cloud when needed. Cloud leaves query text out of application logs, according to the same page. So an on-premise install is not a fully offline setup for lookups that need the hosted index. Ask the vendor which lookups fall into that category, how the forwarded request is formed, what the on-premise server keeps locally, and whether you can block outbound traffic and still meet your needs. Network and proxy review is the main effort driver here.

Can our security team inspect exactly what the Context7 MCP client sends?

Yes, in part. The data privacy page lists the fields sent to the Context7 API: the query, the library name or ID, the API key if provided, MCP client name and version, session ID, server version and transport type (stdio or http). It also says the full prompt, source code and conversation history are never transmitted. Hosted HTTP deployments add a short-lived client IP address assertion used for rate limiting. Because the MCP server is open source under the MIT license shown on the upstash/context7 repository, your reviewers can read the code and capture traffic in a test environment to confirm the list matches what they see.

What drives the cost of outside help to review Context7 data flows?

Costs depend on the scope agreed in writing before work starts. The main components are the time to read the vendor terms, capture and review traffic in a test setup, check the on-premise and HTTP deployment options you plan to use, and document the results for your compliance file. Costs rise with the number of deployment modes, the number of MCP clients in use, and how much custom testing your review board requires. A quote should list which items are one-time and which recur, such as retesting after a client or server version change. DeployOpen runs security testing and prepares evidence for compliance assessments, but it does not issue audit reports or attestations, and independent auditors or certification bodies provide those.

Does forking the open-source Context7 server remove vendor data flows?

Not by itself. The vendor's data privacy page says the MCP server is open source, so an organization can fork it, edit the tool input descriptions in packages/mcp/src/index.ts and run a custom server locally. A fork lets you change what the server does on your side, but the queries the client formulates still go to the Context7 API unless your fork is changed to stop that. Documentation lookups on a fork also depend on the hosted index, so you would need to confirm the data path before assuming it is removed. Your engineers should trace each outbound call in the forked build and record any change you make to the request path.

Where should we send security questions about Context7?

The vendor's security overview lists three routes: GitHub Issues on the Context7 repository, the Context7 Discord, and a dedicated support team for Enterprise customers. Public channels suit general product questions, but do not send confidential contract terms, customer data details or vulnerability reports through them without first checking the vendor's disclosure guidance. For questions that affect your approval, use the Enterprise support route and ask for written answers on training use, benchmarking, retention and on-premise forwarding. Keep the answers in your vendor risk file so the approval decision can be traced later.

Vendor pages to check each claim against

Before approving the Context7 MCP server, check every statement in this review against the vendor's own documentation. Two Context7 pages carry the data handling claims. The Data Privacy - Context7 MCP page lists the fields sent to the Context7 API, the handling of queries for reranking and benchmarking, and the separate treatment of Enterprise teamspaces and on-premise deployments. The Security - Context7 MCP page covers the hosting environment, the terms that apply to all users, and the support channels. The source code is in the upstash/context7 repository on GitHub, which is the place to confirm the server's license and the exact code that runs on a developer's machine.

Treat the documented field list and the Enterprise statement as the two items to verify first. The field list determines what leaves a workstation: the query, library name or ID, any API key, client name and version, session ID, server version and transport type. The Enterprise statement determines whether benchmarking storage applies to your teams. Pages change, so record the date you reviewed them, capture the current wording, and compare it with the version you tested. If the documented list differs from what you observe in network traffic or logs during a pilot, escalate that gap to Upstash before any broad rollout.

Ask Upstash to confirm in writing that the Enterprise handling and the on-premise behavior described on the data privacy page apply to your contract and plan, since the public page does not tie those statements to a specific order form. Also confirm which Addendum and terms version governs your organization, because the security overview says the Context7 Addendum and the Upstash Terms and Privacy Policy apply to all users. Store the reviewed pages, the repository commit you tested, and the vendor's written answers in your approval file so the decision can be reproduced at the next review.

How DeployOpen supports a Context7 data privacy review

DeployOpen plans, tests and documents the Context7 MCP server rollout inside your own environment, so your security and compliance teams can review what leaves the machine. Work starts from a written scope, and the findings and evidence stay with your organization.

How we scope

  • Agree in writing which Context7 MCP server deployments, clients and teams are covered by the review.
  • Map which fields reach the Context7 API, including queries, library IDs, client name and version, and session ID.
  • Confirm with your team whether hosted HTTP or on-premise deployment applies, and which Enterprise or Cloud terms cover each group.
  • Engagements are fixed-scope, with scope, deliverables and timelines agreed before work begins.

How we build

  • Set up the open-source upstash/context7 server under your control, with its MIT license reviewed by your legal team.
  • Test where queries travel, including reranking by LLM providers and anonymous benchmarking storage, against your data classification rules.
  • Review whether tool input descriptions in packages/mcp/src/index.ts need changes in a forked, locally run server.
  • Verify how API keys are supplied, stored and kept out of shared configuration files on developer machines.

How we hand over

  • Deliver a written findings report with data flow diagrams, each vendor claim marked as verified or open.
  • Document the settings, configuration choices and approvals your team needs to keep the rollout within policy.
  • Provide evidence packages that your auditors or customers can read, without DeployOpen issuing any audit report or attestation.
  • Retest after fixes are applied so the final report shows which items remain open and why.

How we support

  • Support your security questionnaire and vendor review with answers tied to tested behavior, not to marketing claims.
  • Offer retainers for ongoing support, upgrades of the self-hosted server and repeat testing when Context7 changes its data handling.
  • Track vendor documentation changes on the data privacy and security pages and flag items that need a new review.
  • Route questions the vendor cannot answer to the Enterprise support path documented by Context7 and record the response.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.