Context7 MCP enterprise setup: official server, OAuth and SSO

Context7 supports SSO with SAML 2.0, OAuth 2.0 and OpenID Connect on Enterprise plans, with audit logs and teamspace controls; the rest must be confirmed and configured by the organization.

On this page

Does Context7 MCP support enterprise SSO on Enterprise plans?

Context7 documents single sign-on for Enterprise plans, supporting SAML 2.0, OAuth 2.0 and OpenID Connect. The vendor's authentication page also lists centralized user management, teamspace access controls, audit logs for compliance and custom authentication policies as Enterprise features, and the security overview says Enterprise customers receive dedicated audit trails. On-premise deployment is documented separately, with a Microsoft Entra ID SSO guide for an On-Premise instance and a guide for proxying the Context7 MCP server through Azure APIM with Entra authentication, so a platform lead should treat on-premise and hosted SSO as two different configurations to review.

Enabling the protocol is not the same as having a working control. Before approval, the team should confirm with Upstash which identity protocol applies to its tenant, which claims or groups are mapped to teamspaces, how deprovisioning works when someone leaves, and whether user lifecycle is handled centrally or per user. The authentication page documents the feature list, but the exact configuration steps and any limits on group mapping are not something this page can confirm, so ask for them in writing. Then verify the setup in a test tenant: sign in with a user who is not in the approved group, confirm that access is refused, and check that the audit entry appears.

Pricing is not published. The Context7 data privacy page states that Enterprise and on-premise plan details come from the vendor's sales team, so the quote for SSO, audit trails and on-premise options should be requested from sales against a written list of required controls. Ask whether the quote covers the on-premise license, support for identity provider configuration and any recurring fees, and whether the Context7 Addendum and the Upstash Terms and Privacy Policy apply to the Enterprise agreement in the same way they apply to all users.

Enterprise capabilities by plan and deployment

This table compares which Context7 enterprise controls the vendor documents for Enterprise plans, On-Premise Enterprise plans and the open-source server, and whether each control is built in, paid only, handled by a component outside Context7, or needs confirmation with the vendor. Read each row against the plan you are actually buying, because several controls apply only to Enterprise or On-Premise. Treat any status marked as confirm with the vendor as an open question for your procurement and security review, not as an approved control.

CapabilityPlan or editionStatus
SSO via SAML 2.0, OAuth 2.0 and OpenID ConnectEnterprise plansPaid only: enable through the vendor's Enterprise plan, then confirm your protocol choice with the vendor
Centralized user managementEnterprise plansPaid only: listed as an Enterprise feature on the authentication page
Teamspace access controlsEnterprise plansPaid only: confirm how teamspaces map to your existing groups before rollout
Audit logs for complianceEnterprise plansPaid only: confirm log fields, retention period and export options with the vendor
Dedicated audit trailsEnterprise customersPaid only: the security overview states Enterprise customers receive them; confirm contents
Custom authentication policiesEnterprise plansPaid only: confirm which policy settings you can change yourself
SSO on On-Premise with Microsoft Entra IDOn-Premise instanceOutside component: follow the Entra ID SSO guide linked from the authentication page
Azure API Management proxy with Entra authenticationSelf-managed Azure deploymentOutside component: your Azure APIM setup, following the vendor's proxy guide; you own its configuration
Own LLM provider and disabled public documentationOn-Premise Enterprise plansPaid only: confirm which LLM providers are supported and how private indexing is loaded
Open-source MCP server forkOpen-source server (MIT license)Built in: you can fork and run a custom server locally, but you then maintain it yourself

How Context7 enforces sign-in, teamspaces and audit trails

Sign-in and access decisions for Context7 happen in two different places, and the reader needs to know which one applies to their deployment. On the Enterprise plan with the hosted service, the Context7 platform, operated by Upstash, is where single sign-on is enabled over SAML 2.0, OAuth 2.0 or OpenID Connect, where centralized user management sits, and where teamspace access controls and custom authentication policies are applied. The documentation index itself is served from infrastructure the vendor operates. For an on-premise Enterprise instance, the Microsoft Entra ID SSO guide the vendor links for that setup points to a configuration that the customer's own identity tenant and hosting environment govern. Confirm with the vendor's sales team which of these controls are available on your specific plan and deployment, because plan details are not published on the public pages.

Teamspaces are the access boundary to plan around, and the audit trail is only as useful as your questions about it. Before rollout, ask the vendor how teamspaces map to your business units or projects, who holds the administrator role that manages membership, and how removing a user from an identity group propagates to their Context7 access. Ask for the exact fields, retention period and export options of the dedicated audit trail that the security overview says Enterprise customers receive, and confirm whether it records MCP queries or only administrative and sign-in events. These answers determine whether you can later show an auditor who accessed which documentation space and when.

The open-source MCP server runs on each developer's machine, which means local configuration sits outside vendor controls. The server is published under the MIT license in the upstash/context7 repository, so a developer can run a modified copy, change the API key handling or point the client at a different endpoint. Enterprise sign-in governs the hosted service, not what a developer edits on a laptop. Set a policy that defines which MCP configuration files are approved, distribute the client configuration centrally where your tooling allows it, and test whether a locally modified server can still reach the Context7 API before you treat the SSO and audit controls as covering all use.

Decisions to make before connecting an identity provider

Before an organization connects Context7 to its identity provider, several choices are set and hard to change later. Each one affects who can sign in, where the MCP traffic and documentation are served, and what evidence reviewers can pull. Work through them in the order below and record the answers in the rollout plan.

Choose SAML 2.0 or OpenID Connect

Context7 documents single sign-on for Enterprise plans over SAML 2.0, OAuth 2.0 and OpenID Connect. Your identity provider decides which protocol is practical: many enterprise directories issue SAML assertions for applications, while newer apps often use OIDC. Confirm with Context7 which protocols your chosen plan and deployment support, and ask who configures the trust relationship and how group claims map to roles. Make this choice first, because the rest of the setup depends on it.

Authentication docs

Hosted Enterprise or On-Premise

The hosted Enterprise plan and the On-Premise option place the deployment in different locations and carry different controls. Context7 documents an Entra ID SSO guide for an On-Premise instance, while the data privacy page says On-Premise Enterprise plans can use their own LLM provider and disable public documentation usage. Ask the vendor sales team which features each option includes, where the documentation index runs, and who operates it. Plan and pricing details come from sales, not from the public pages.

Data privacy docs

Map teamspaces to teams and projects

Teamspace access controls decide which documentation and settings each group can reach. Decide before rollout whether teamspaces follow existing directory groups, business units or individual projects, and who approves membership changes. A mapping that mirrors your identity groups keeps joiners and leavers in one place. Confirm with Context7 how teamspace membership is synchronized from the identity provider and how removal takes effect for active sessions.

Set audit log destination and retention

Enterprise customers receive dedicated audit trails, and the authentication page lists audit logs for compliance. Before connecting, decide where the logs must land, such as your SIEM, and how long your policy requires them to be kept. Ask Context7 for the log fields, the export method, the retention period, and whether logs cover MCP tool calls or only administrative events. Without this answer, you cannot prove who queried what.

Define custom authentication policies

The Enterprise feature list includes custom authentication policies, but the public pages do not describe their options. Decide which policies you need, such as session length, required identity assurance, or restrictions by network or group, and write them down as requirements. Ask the vendor which policies can be set, who sets them, and whether changes are logged. Treat any policy you cannot confirm as a gap to be closed before rollout.

Decide whether to fork the server

The Context7 MCP server is open source under the MIT license, so an organization can fork it and run a custom server locally. A fork lets your team edit tool input descriptions in packages/mcp/src/index.ts and control the code path, but it also means your team owns updates, patching and testing. Weigh this against the hosted server and the On-Premise option, and confirm the upstream release process with the maintainers before you commit.

upstash/context7 repository

How a developer's Context7 session is authorized

The session starts in the developer's MCP client, which hands the sign-in to the company identity provider over SAML 2.0, OAuth 2.0 or OpenID Connect once Enterprise SSO is enabled. The Context7 Enterprise tenant then checks the user against centralized user management and teamspace access controls, and writes the activity to audit logs. Organizations with an On-Premise plan can instead route requests through a gateway they control, such as an Azure APIM proxy with Entra authentication, and choose whether public documentation is allowed or disabled. Check which path your plan actually uses and confirm each decision point with Context7 before approval.

Sign-in and access decisions for Enterprise SSO and the On-Premise gateway path.

How the answer changes by identity provider, plan and deployment

Context7's authentication page links a Microsoft Entra ID SSO guide for an On-Premise instance, and a separate guide for proxying the Context7 MCP server through Azure API Management (APIM) with Entra authentication. Those two documented paths are the clearest route for a Microsoft shop, but they are different architectures and they answer different questions. The guide for the On-Premise instance concerns the identity of people who sign in to your own deployment. The APIM guide concerns how the MCP endpoint is gated before a request reaches the server.

  • Two paths, two control points: the On-Premise guide governs sign-in to the instance, while the APIM proxy places Entra in front of the MCP endpoint.
  • Tenant scope: confirm which Entra tenants, groups and app registrations the guide requires, and whether guest users are admitted.
  • Token handling: ask who issues and validates tokens at the APIM layer and whether the API gateway logs caller identity.
  • Conditional access: confirm whether Entra conditional access policies apply to the proxied endpoint.
  • Version currency: the guides are vendor documents, so confirm they match the release you deploy.

Before approving this path, confirm with Upstash which of the two guides applies to your deployment model and obtain the exact app registration settings in writing.

Order of work to bring Context7 into production

This sequence moves Context7 from a vendor conversation to a controlled rollout in which identity, teamspace access, logging and client configuration are each confirmed before developers connect. Each step closes with evidence that the next one can rely on.

  1. Confirm plan and SSO scope in writing

    Procurement and the security lead ask Context7 to confirm, in writing, which plan you are buying, whether it is Enterprise or On-Premise, and which SSO protocols (SAML 2.0, OAuth 2.0 or OpenID Connect) and Enterprise features apply to your tenant. The vendor's authentication page states that these features are Enterprise capabilities, and pricing and plan details come from the sales team rather than the public pages. Done means you hold a written statement covering plan, SSO protocol, audit log scope and support path, filed with the approval record.

  2. Define the teamspace model and roles

    The engineering lead and the identity owner decide which teamspaces exist, which groups map to each one, and which users may administer them. The Enterprise feature list includes teamspace access controls and centralized user management, so access should follow your existing groups rather than individual invitations. Write the model down, including who approves membership changes. Done means each teamspace has a named owner, a group mapping and a documented reason for its access.

  3. Connect the identity provider and test sign-in

    The identity team configures your identity provider against the protocol confirmed in step one and tests sign-in with a small set of accounts in each teamspace, including one account that should be denied. If you use Microsoft Entra ID with an On-Premise instance, follow the vendor's linked Entra ID guide and confirm that the result matches your own conditional access policy. Done means successful and denied sign-ins are both recorded, and the test evidence shows that group membership, not manual setup, controls access.

  4. Configure audit log collection and retention

    The logging owner confirms what the dedicated audit trail records for your tenant, how it is exported, and how long the vendor keeps it. Ask Context7 for the retention period in writing, since the public pages do not supply one. Route the audit records into your existing log platform and set a retention period that matches your compliance requirements. Done means a test sign-in and a test teamspace change both appear in your log store with the expected user and time stamps.

  5. Decide on the gateway or On-Premise path

    The architecture owner chooses between the hosted service, a proxy of the Context7 MCP server through your own gateway, or an On-Premise Enterprise deployment. The vendor documents an Azure API Management proxy with Entra authentication as one option, and On-Premise plans can use their own LLM provider and disable public documentation usage. Record which path you chose, why, and which data flows remain outside your network. Done means a signed architecture note exists and the security reviewer has accepted the data path.

  6. Restrict developer clients to approved configurations

    The platform team publishes a single approved MCP client configuration per tool, with the endpoint and authentication method fixed, and asks developers not to add alternative servers. Because the MCP server is open source under the MIT license, decide whether your approved build is the official server or a forked copy, and if forked, pin the version and review changes to tool descriptions before deployment. Done means every developer client connects only to the approved endpoint, and a sample of workstations confirms that no unapproved configuration is in use.

  7. Verify each control with evidence before wider rollout

    The security lead runs a short verification plan against the controls from steps one to six, covering denied access, teamspace boundaries, log completeness and the approved client configuration. Store screenshots, test records and vendor confirmations together as the evidence pack. Expand the rollout only to groups whose checks passed, and repeat the verification after any plan, identity or client change. Done means the evidence pack is signed off by the security owner and the first rollout group is named.

Evidence a security reviewer will ask for

This table lists each piece of evidence a reviewer should request before approving Context7 MCP for Enterprise or On-Premise use, what to ask for, and where the vendor or your own environment supplies it. Read it as a checklist: several items come from the vendor's sales or contract process rather than from public documentation, so confirm them in writing before rollout.

ControlWhat to ask forWhere it comes from in the tool or vendor
SSO configuration record and protocolWhich protocol is enabled (SAML 2.0, OAuth 2.0 or OpenID Connect), the identity provider tenant, redirect settings and who can change themEnterprise SSO settings confirmed with Upstash, described on the Context7 authentication and access control page
Teamspace membership exportA dated list of teamspaces, members and their roles, plus the admin who approves changesTeamspace access controls in the Enterprise feature set, exported or confirmed with the vendor
Audit log sample and retention termsA redacted sample of audit events covering sign-in, membership and configuration changes, with the stated retention period in writingDedicated audit trails described for Enterprise customers in the Context7 security overview; retention length must come from the vendor
Enterprise contract and Addendum termsThe signed order form, the Context7 Addendum and the Upstash Terms and Privacy Policy that apply to your organizationThe Context7 Addendum and Upstash Terms and Privacy Policy, both stated in the Context7 security overview, plus the vendor's sales team
Vendor security overview and certifications pageCurrent SOC 2 report status or bridge letter, scope of the systems covered and the date of the latest reviewThe Context7 security overview points to trust.upstash.com for certifications; request the independent auditor's report through the vendor
Data flow for On-Premise versus hostedA written diagram showing which requests leave your network, which LLM provider is used and whether public documentation retrieval is disabledContext7 data privacy page, which covers On-Premise plans using their own LLM provider and disabling public documentation
Fork and change record for the MCP serverThe pinned commit or release of upstash/context7 you deploy, your fork location, and a diff of any edits to tool descriptionsThe MIT-licensed upstash/context7 repository and the source file packages/mcp/src/index.ts, kept under your own version control

Questions buyers ask before approving Context7 enterprise access

Is single sign-on included in every Context7 plan?

No. Single sign-on is listed as available for Enterprise plans only, and the vendor's authentication page says it supports SAML 2.0, OAuth 2.0 and OpenID Connect. Teams on other plans should not assume SSO, centralized user management or teamspace controls are available to them. Before approval, ask the vendor to confirm in writing which plan your organization would buy and which identity protocol your identity provider uses, since the supported protocols are documented at the Enterprise tier. The authentication page at Authentication and Access Control - Context7 MCP lists the Enterprise features in full.

How much does Context7 Enterprise cost?

Context7 does not publish Enterprise or on-premise pricing. The vendor's data privacy page states that those plan details come from its sales team, so the only way to get a number is a quote. Ask for the quote to list the plan tier, the number of seats or users, whether SSO and teamspace controls are included, whether on-premise deployment is part of the price, and what support level comes with it. Costs recur as subscription fees, while any internal effort to configure your identity provider and review the setup is a one-time cost paid by your own staff or a partner. Ask the vendor which items are optional add-ons, since those change the total.

How long does a Context7 enterprise setup take?

The vendor documentation does not give a timeline, so the duration depends on the scope you agree with the vendor and your own environment. The main drivers are whether you use the hosted service or an on-premise instance, how many identity providers and protocols you connect, whether you need the Microsoft Entra ID guide for an on-premise deployment or a proxy through Azure API Management with Entra authentication, and how many teamspaces and approval steps your policy requires. Ask the vendor for a written onboarding plan with named milestones, and confirm with your identity team how long their own change process takes before you commit to a date.

What must our own team do, and what could a partner handle?

Your team owns the decisions that the vendor cannot make for you: which identity provider and protocol to use, who gets access to which teamspace, which developers and coding agents may connect, and how your approval process records those choices. The vendor configures the Enterprise features on its side and documents the options. A partner such as DeployOpen can plan and implement self-hosted platforms inside your own infrastructure, run security testing of an AI agent rollout, and prepare evidence for compliance reviews, under a written, fixed scope. DeployOpen does not issue audit reports or certifications. Confirm with the vendor what its sales and support teams will do during onboarding so that gaps are not left to your staff.

Does Context7 provide dedicated audit logs for Enterprise customers?

The vendor's security overview says Enterprise customers can enable SSO with SAML, OAuth or OIDC and receive dedicated audit trails. The authentication page lists audit logs for compliance as an Enterprise feature. Treat this as the vendor's stated position and confirm the details before approval: ask which events are recorded, how long logs are retained, whether they can be exported to your SIEM, and who can read them. Ask for a sample log export during evaluation so your security team can check that the fields they need, such as user identity and time of access, are present.

Can Context7 run on-premise so that data stays inside our network?

The vendor's data privacy page says On-Premise Enterprise plans can use their own LLM provider and can disable public documentation usage, so retrieval is limited to privately indexed documentation. That is the documented route to keeping retrieval inside your environment, and it applies to the on-premise plan rather than the hosted service. Before relying on it, ask the vendor to describe in writing what still leaves your network, including any calls to the hosted Context7 API, telemetry, and the Upstash Terms and Privacy Policy that the vendor says apply to all users. The Microsoft Entra ID guide the vendor links for an on-premise instance is a starting point for your identity team to review.

Can we inspect or change the Context7 MCP server ourselves?

Yes, in part. The MCP server is published as open source under the MIT license in the upstash/context7 repository, and the vendor's data privacy page says an organization can fork it, edit the tool input descriptions in packages/mcp/src/index.ts and run a custom server locally. Forking gives your engineers code review and control over the tool descriptions, but it does not change the hosted documentation service, the vendor's identity controls or its audit trail. Ask your security team to decide whether a forked server would be maintained in your own pipeline, and who would pick up vendor updates and security fixes.

How DeployOpen helps roll out Context7 safely

DeployOpen helps security and platform teams decide how Context7 MCP fits their identity model before developers connect to it. We scope the rollout in writing, test the setup against the vendor's documented SSO, access and audit controls, and hand over the configuration and evidence your reviewers need.

How we scope

  • Confirm with Upstash which plan covers your SSO, teamspace and audit log needs, since the vendor's sales team provides Enterprise and on-premise details.
  • Agree in writing which identity protocol (SAML 2.0, OAuth 2.0 or OpenID Connect) and which identity provider your organization will use.
  • Define which deployment is in scope: the hosted service, an on-premise instance or a proxy in front of the MCP server, with the named access boundaries for each.

How we build

  • Configure SSO with your identity provider and check that sign-in, group mapping and teamspace access behave as the vendor documents.
  • Review the official upstash/context7 server version you deploy, and record any changes or local forks for the security review file.
  • Test access paths, including whether public documentation use can be disabled for on-premise plans and how API keys are stored on developer machines.

How we hand over

  • Deliver a written configuration record covering SSO settings, teamspace roles, audit log locations and the open items to confirm with the vendor.
  • Provide a findings report with fixes, a retest and a list of controls that rely on vendor statements rather than on settings you can verify yourself.
  • Walk your security, IT and procurement reviewers through the evidence so they can approve, restrict or revisit the rollout.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer when the vendor changes its authentication or plan terms.
  • Re-test after identity provider changes, new teamspaces or a move between hosted and on-premise deployments, so the approval record stays current.

Sources and further reading

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.