# Context7 MCP > Up-to-date docs for AI agents. - [Intro](https://context7.com/docs/overview.md): Context7 brings up-to-date, version-specific library documentation into your AI coding agent - [Installation](https://context7.com/docs/installation.md): Add Context7 to your coding agent. It gives the agent current docs for the libraries you use. - [Search API](https://context7.com/docs/search-api.md): Search all Context7 documentation with one request - [CLI](https://context7.com/docs/clients/cli.md): The ctx7 CLI — fetch library documentation and configure Context7 MCP from your terminal - [Plans & Pricing](https://context7.com/docs/plans-pricing.md): What each Context7 plan includes, and what you can use for free - [Library Owners](https://context7.com/docs/library-owners.md): Claim your library and control how Context7 parses it with context7.json - [Best Practices](https://context7.com/docs/tips.md): Get the most out of Context7 with these best practices - [Adding Libraries](https://context7.com/docs/adding-libraries.md): Add a public library to Context7 so AI coding agents get up-to-date docs for it - [Keeping Libraries Fresh](https://context7.com/docs/library-updates.md): How Context7 ensures library documentation stays fresh - [Claim Your Library](https://context7.com/docs/howto/claiming-libraries.md): Verify ownership and manage your library's configuration via the admin panel - [Verify Your Library](https://context7.com/docs/howto/verification.md): Get your library verified to increase visibility and build trust with developers - [Add the Chat Widget](https://context7.com/docs/howto/chat-widget.md): Embed an AI-powered chat assistant on your documentation site - [Manage Rules](https://context7.com/docs/howto/rules.md): Prepend custom guidelines to the documentation your teamspace retrieves - [Add Private Sources](https://context7.com/docs/howto/private-sources.md): Add and manage private source documentation - [Research Preview](https://context7.com/docs/howto/research-preview.md): Turn on experimental Context7 MCP tools, such as documentation feedback - [Context7 Ask](https://context7.com/docs/ask/overview.md): See what AI agents ask about your product - [Quickstart](https://context7.com/docs/ask/quickstart.md): Add Context7 Ask to your website in about 2 minutes - [Questions and Analytics](https://context7.com/docs/ask/dashboard.md): See what AI agents ask about your product, and which questions your site can't answer - [Manage API Keys](https://context7.com/docs/howto/api-keys.md): Create and manage API keys for Context7 authentication - [Set Up OAuth](https://context7.com/docs/howto/oauth.md): Authenticate with Context7 MCP server using OAuth 2.0 - [Monitor Usage](https://context7.com/docs/howto/usage.md): Monitor your Context7 API usage and track costs - [Manage Your Teamspace](https://context7.com/docs/howto/teamspace.md): Invite members and manage teamspace permissions - [Manage Policies](https://context7.com/docs/howto/policies.md): Control which sources and libraries your teamspace can access - [Context7 Admin MCP](https://context7.com/docs/howto/admin-mcp.md): Manage teamspaces, libraries, Docs7 sites and Ask sites from an agent - [Enterprise](https://context7.com/docs/enterprise.md): Turn your internal documentation into LLM-ready context for developers, coding agents, and engineering leaders - [Azure API Management as MCP gateway](https://context7.com/docs/enterprise/enterprise-managed-auth/entra.md): Route Context7 MCP traffic through Azure API Management with per-user Microsoft Entra ID authentication. - [Enterprise-Managed Auth with Okta](https://context7.com/docs/enterprise/enterprise-managed-auth/okta.md): Centrally authorize the Context7 MCP server for your organization through Okta Cross-App Access, so developers connect on first login with no per-user OAuth. - [On-Premise Deployment](https://context7.com/docs/enterprise/on-premise.md): Run the Context7 stack inside your infrastructure with your chosen AI and storage services - [Changelog](https://context7.com/docs/enterprise/changelog.md): Release notes for the Context7 On-Premise image. - [GitHub Integration](https://context7.com/docs/enterprise/integrations/github.md): Connect Context7 to GitHub with a GitHub App or a personal access token for private repository access and push webhooks - [Other Git Integration](https://context7.com/docs/enterprise/integrations/other-git.md): Ingest private repositories from a self-managed Git host such as Gerrit, Gitea, or self-hosted Bitbucket over HTTPS or SSH - [Gerrit Integration](https://context7.com/docs/enterprise/integrations/gerrit.md): Index Gerrit repositories and submit generated code documentation as Gerrit changes - [Confluence Integration](https://context7.com/docs/enterprise/integrations/confluence.md): Index Confluence spaces from Atlassian Cloud or a self-hosted Data Center instance - [Google Drive Integration](https://context7.com/docs/enterprise/integrations/google-drive.md): Sync Google Docs and Google Slides from Drive folders, Shared Drives and single files, and keep them current every day - [AWS Bedrock](https://context7.com/docs/enterprise/integrations/aws-bedrock.md): Use Anthropic models and Amazon Titan embeddings through native AWS Bedrock APIs - [Microsoft Entra ID (SSO)](https://context7.com/docs/enterprise/security/entra-sso.md): Let your team sign in with Microsoft Entra ID instead of shared passwords. - [OpenID Connect (OIDC) SSO](https://context7.com/docs/enterprise/security/oidc-sso.md): Let your team sign in with any OIDC-compatible identity provider instead of shared passwords. - [SAML 2.0 SSO](https://context7.com/docs/enterprise/security/saml-sso.md): Let your team sign in with any SAML 2.0 identity provider, such as Okta, Microsoft Entra ID, ADFS, Ping or Keycloak. - [Library Access Control](https://context7.com/docs/enterprise/security/library-access.md): Restrict which libraries each user can query over the MCP and API, based on their SSO groups or individual grants. - [Docker Deployment](https://context7.com/docs/enterprise/deployment/docker.md): Deploy Context7 On-Premise with Docker Compose - [Kubernetes Deployment](https://context7.com/docs/enterprise/deployment/kubernetes.md): Deploy Context7 On-Premise on Kubernetes using raw manifests - [Scaling](https://context7.com/docs/enterprise/deployment/scaling.md): Run Context7 On-Premise as multiple replicas behind a load balancer - [Vector Stores](https://context7.com/docs/enterprise/deployment/vector-stores.md): Choose where Context7 On-Premise stores embeddings: embedded LanceDB, pgvector, or Milvus - [Library Import](https://context7.com/docs/enterprise/library-import.md): Move library content from Context7 Cloud into an airgapped on-premise install - [Automatic Repository Updates](https://context7.com/docs/enterprise/automatic-repository-updates.md): Keep indexed Git repositories current with schedules, GitHub push events, and cached refreshes - [GitOps](https://context7.com/docs/enterprise/gitops.md): Manage the list of indexed repositories declaratively from a Git repo and reconcile your on-premise instance to match it - [Backup and Restore](https://context7.com/docs/enterprise/backup-restore.md) - [Authentication](https://context7.com/docs/enterprise/api/authentication.md): How to authenticate requests to your on-premise Context7 instance - [Search for libraries](https://context7.com/docs/enterprise/api/search/search-for-libraries.md): Search locally indexed libraries by name - [Get documentation context](https://context7.com/docs/enterprise/api/context/get-documentation-context.md): Retrieve documentation snippets for a library ranked by relevance to your query - [Parse a Git repository](https://context7.com/docs/enterprise/api/parse/parse-a-git-repository.md): Queue a GitHub or GitLab repository for parsing and indexing - [Parse an OpenAPI spec by URL](https://context7.com/docs/enterprise/api/parse/parse-an-openapi-spec-by-url.md): Queue a remote OpenAPI specification (JSON or YAML) for parsing and indexing - [Upload an OpenAPI spec file](https://context7.com/docs/enterprise/api/parse/upload-an-openapi-spec-file.md): Upload an OpenAPI specification file directly for parsing and indexing - [Import a library bundle](https://context7.com/docs/enterprise/api/parse/import-libraries.md): Import pre-parsed libraries into an airgapped on-premise install, as a JSON body or a Context7 Cloud export file - [Parse a website](https://context7.com/docs/enterprise/api/parse/parse-a-website.md): Crawl and index a public website starting from the given URL - [Refresh a library](https://context7.com/docs/enterprise/api/parse/refresh-a-library.md): Re-parse an existing library using its stored settings - [Get parse status](https://context7.com/docs/enterprise/api/parse/get-parse-status.md): Returns the status of all active and queued parse jobs - [Security](https://context7.com/docs/security/overview.md): An overview of Context7's security practices, data handling, and compliance measures - [Data Privacy](https://context7.com/docs/security/data-privacy.md): How Context7 handles query storage, retrieval scope, and your data - [Infrastructure Security](https://context7.com/docs/security/infrastructure.md): The platform-level protections behind Context7, including hosting, abuse prevention, and secure development - [Authentication and Access Control](https://context7.com/docs/security/auth-and-access-control.md) - [Compliance and Reporting](https://context7.com/docs/security/compliance-and-reporting.md): How Context7 handles security reporting, transparency, and compliance certifications - [Data Safety](https://context7.com/docs/security/data-safety.md): How Context7 detects prompt injection and malicious content in indexed documentation - [Best Practices for Users](https://context7.com/docs/security/best-practices.md): Recommendations for using Context7 securely across credentials, repository access, and network usage - [Claude Code](https://context7.com/docs/clients/claude-code.md): Using Context7 with Claude Code - [Codex](https://context7.com/docs/clients/codex.md): Using Context7 with OpenAI Codex - [GitHub Copilot CLI](https://context7.com/docs/clients/copilot-cli.md): Using Context7 with GitHub Copilot CLI - [Cursor](https://context7.com/docs/clients/cursor.md): Using Context7 with Cursor - [OpenCode](https://context7.com/docs/clients/opencode.md): Using Context7 with OpenCode - [Pi](https://context7.com/docs/clients/pi.md): Use Context7 in Pi with built-in MCP support or the official extension - [VS Code](https://context7.com/docs/clients/vscode.md): Using Context7 with VS Code - [MCP Clients](https://context7.com/docs/resources/all-clients.md): Installation examples for MCP clients - [API Guide](https://context7.com/docs/api-guide.md): Authentication, rate limits, best practices, and integration guides for the Context7 API - [Search for libraries](https://context7.com/docs/api-reference/search/search-for-libraries.md): Search for libraries by name with intelligent LLM-powered ranking based on your query context. - [Search documentation in one request](https://context7.com/docs/api-reference/search/search-documentation-in-one-request.md): Select up to four relevant Context7 libraries, retrieve their documentation in parallel, deduplicate and globally rerank the evidence, and return one bounded response. Optional library, version, and language values improve routing and ranking. - [Read one web page, optionally narrowed to a question](https://context7.com/docs/api-reference/search/read-one-web-page-optionally-narrowed-to-a-question.md): Reads a public web page (rendered, converted to Markdown) for an agent that already has its URL. With `query`, returns only the parts of the page that answer it: the page is split into heading-aware sections, the most relevant ones are reranked, and the response stops once relevance drops, usually a… - [Get library usage metrics](https://context7.com/docs/api-reference/metrics/get-library-usage-metrics.md): Retrieve full usage metrics for a library: cumulative and daily request counters broken down by surface (web page, text docs, MCP, CLI), MCP client daily unique-user breakdown, and lifetime topic and country distributions. The API key must belong to a member of the teamspace that owns the library —… - [Get documentation context](https://context7.com/docs/api-reference/context/get-documentation-context.md): Retrieve intelligent, LLM-reranked documentation context for natural language queries. Returns the most relevant code snippets and documentation for your specific question. The text response lists them in relevance order across code and documentation; in JSON, `rank` gives that order. A version in t… - [Ask a registered website](https://context7.com/docs/api-reference/ask/ask-a-registered-website.md): Answer a question from the pages of one website registered with Context7 Ask. AI agents find this endpoint in the hidden note, llms.txt section or Link header the site publishes. No API key is needed. Without `query`, the endpoint returns a short description of itself. - [Refresh a library](https://context7.com/docs/api-reference/refresh/refresh-a-library.md): Trigger a refresh of an existing library to fetch the latest documentation. Library owners have dedicated refresh limits. - [Get teamspace policies](https://context7.com/docs/api-reference/policies/get-teamspace-policies.md): Retrieve the current policy configuration for the teamspace associated with the API key. Includes source type access settings and public repository filters. - [Update teamspace policies](https://context7.com/docs/api-reference/policies/update-teamspace-policies.md): Incrementally update policy configuration for the teamspace associated with the API key. Only the fields you include in the request body are modified — omitted fields remain unchanged. For source types, use `enable`/`disable` arrays (both allowed if no overlap). For library lists, use `add`/`remove`… - [Get API usage](https://context7.com/docs/api-reference/usage/get-api-usage.md): See your requests this month, what extra requests cost your teamspace, and the teamspace's requests per day. `member` is the member who owns the API key and has the same numbers as the `RateLimit-*` headers on search and docs responses. `teamspace` covers all members. Calls to this endpoint do not c… - [Add a GitHub repository](https://context7.com/docs/api-reference/add-library/add-a-github-repository.md): Submit a GitHub repository for documentation processing. Supports private repos via a gitToken or by connecting your GitHub account at https://context7.com/add-library. - [Add a GitLab repository](https://context7.com/docs/api-reference/add-library/add-a-gitlab-repository.md): Submit a GitLab repository for documentation processing. Supports private repos via a gitToken or by connecting your GitLab account at https://context7.com/add-library. - [Add a Bitbucket repository](https://context7.com/docs/api-reference/add-library/add-a-bitbucket-repository.md): Submit a Bitbucket repository for documentation processing. Supports private repos via a gitToken or by connecting your Bitbucket account at https://context7.com/add-library. - [Add from other Git providers](https://context7.com/docs/api-reference/add-library/add-from-other-git-providers.md): Submit a repository from any Git provider not covered by the dedicated GitHub, GitLab, or Bitbucket endpoints. Supports Gitea, Forgejo, Codeberg, self-hosted GitLab, and other Git servers. For private repos, provide a personal access token via the gitToken field. - [Add an OpenAPI specification by URL](https://context7.com/docs/api-reference/add-library/add-an-openapi-specification-by-url.md): Submit an OpenAPI specification URL for documentation processing. - [Upload an OpenAPI specification file](https://context7.com/docs/api-reference/add-library/upload-an-openapi-specification-file.md): Upload an OpenAPI specification file (JSON or YAML) for documentation processing. Requires a team project. File size limit is 10MB. - [Upload a PDF document](https://context7.com/docs/api-reference/add-library/upload-a-pdf-document.md): Upload a PDF file for documentation processing. Requires a teamspace. File size limit is 50MB. - [Upload documentation files](https://context7.com/docs/api-reference/add-library/upload-documentation-files.md): Upload one or more PDF or DOCX files as one library. Supports up to 50 files, 50MB per file, and 200MB total. - [Upload a Microsoft Word document](https://context7.com/docs/api-reference/add-library/upload-a-microsoft-word-document.md): Upload a DOCX file for documentation processing. Requires a teamspace. File size limit is 50MB. - [Add an llms.txt file](https://context7.com/docs/api-reference/add-library/add-an-llmstxt-file.md): Submit an llms.txt file URL for documentation processing. - [Add a website](https://context7.com/docs/api-reference/add-library/add-a-website.md): Submit a website URL for documentation processing. A URL that is a version of a website library already on Context7 (for example `https://docs.gitlab.com/18.4/` when `/websites/gitlab` exists) is added to that library as a version, and the response includes `version`. - [Add a Confluence space](https://context7.com/docs/api-reference/add-library/add-a-confluence-space.md): Submit a Confluence space for documentation processing. Requires a connected Confluence account and a team project. You can optionally specify specific page IDs to index only a subset of the space. - [Add Notion pages](https://context7.com/docs/api-reference/add-library/add-notion-pages.md): Submit selected Notion pages for documentation processing. Requires a connected Notion account and a team project. - [List teamspaces](https://context7.com/docs/api-reference/teamspaces/list-teamspaces.md): The teamspaces the caller is a member of, oldest first. An API key sees only its own teamspace. - [Get a teamspace](https://context7.com/docs/api-reference/teamspaces/get-a-teamspace.md) - [List members and invitations](https://context7.com/docs/api-reference/teamspace-admin/list-members-and-invitations.md): Members of the teamspace and its pending invitations. Any member can call it. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Invite a member](https://context7.com/docs/api-reference/teamspace-admin/invite-a-member.md): Creates a pending invitation and sends the invitation email. Owners and admins only. Refused when the teamspace is full (30 seats on Pro, 200 on Enterprise, counting pending invitations), when the email is already a member or invited, and on Vercel Marketplace teamspaces (409 `marketplace_managed`). - [Remove a member or leave](https://context7.com/docs/api-reference/teamspace-admin/remove-a-member-or-leave.md): Owners and admins remove other members. Any member can remove themselves (leave). The owner cannot be removed. - [Change a member's role](https://context7.com/docs/api-reference/teamspace-admin/change-a-members-role.md): Owners and admins only. The owner's role cannot change. - [Cancel an invitation](https://context7.com/docs/api-reference/teamspace-admin/cancel-an-invitation.md): Owners and admins only. - [Change an invitation's role](https://context7.com/docs/api-reference/teamspace-admin/change-an-invitations-role.md): Owners and admins only. - [List rules](https://context7.com/docs/api-reference/teamspace-admin/list-rules.md): Teamspace Rules that Context7 adds to answers. Any member can call it. - [Create a rule](https://context7.com/docs/api-reference/teamspace-admin/create-a-rule.md): Owners and admins only, on a teamspace whose owner has a paid plan (403 `paid_plan_required`). - [Delete a rule](https://context7.com/docs/api-reference/teamspace-admin/delete-a-rule.md): Owners and admins only. Works on every plan. - [Update a rule's text](https://context7.com/docs/api-reference/teamspace-admin/update-a-rules-text.md): Replaces the text. Send the rule's `libraryId` for a library rule (the id does not move a rule between libraries). Owners and admins only, paid owner plan. - [Get library policies](https://context7.com/docs/api-reference/teamspace-admin/get-library-policies.md): Source types and public library filters of the teamspace, with the number of libraries they allow. Any member can call it. - [Update library policies](https://context7.com/docs/api-reference/teamspace-admin/update-library-policies.md): Incremental update with the same body as `PATCH /v2/policies`. With `dryRun: true` nothing is saved and the response shows the result and its library count. Owners and admins only. Teamspace name and deletion are not part of this API. - [List library requests](https://context7.com/docs/api-reference/teamspace-admin/list-library-requests.md): Pending requests from members to change the library filters, newest first. Any member can call it. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Request a library filter change](https://context7.com/docs/api-reference/teamspace-admin/request-a-library-filter-change.md): Any member can ask the owners and admins to allow, block or except a library. A repeated request returns the existing one. - [Reject a library request](https://context7.com/docs/api-reference/teamspace-admin/reject-a-library-request.md): Removes the request without changing the filters. Owners and admins only. - [Approve a library request](https://context7.com/docs/api-reference/teamspace-admin/approve-a-library-request.md): Applies the filter change the request asks for, then removes the request. Owners and admins only. - [Get usage and cost](https://context7.com/docs/api-reference/teamspace-admin/get-usage-and-cost.md): Daily requests, parse tokens and costs for the dashboard usage window, with the quota, plan and credit balance. Any member can call it. - [Get the spending limit](https://context7.com/docs/api-reference/teamspace-admin/get-the-spending-limit.md): Any member can call it. - [Set the spending limit](https://context7.com/docs/api-reference/teamspace-admin/set-the-spending-limit.md): Caps billed API usage per month; requests over the cap are refused. Owners and admins only. - [Get the invite link](https://context7.com/docs/api-reference/teamspace-admin/get-the-invite-link.md): Whether the teamspace has an active invite link, with its URL and expiry. The link lets anyone join, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Reset the invite link](https://context7.com/docs/api-reference/teamspace-admin/reset-the-invite-link.md): Replaces the invite link with a new one; the old link stops working (owner or admin). - [Create the invite link](https://context7.com/docs/api-reference/teamspace-admin/create-the-invite-link.md): Returns the active invite link, creating one when there is none (owner or admin). - [Disable the invite link](https://context7.com/docs/api-reference/teamspace-admin/disable-the-invite-link.md): Turns the invite link off (owner or admin). - [List libraries](https://context7.com/docs/api-reference/teamspace-libraries/list-libraries.md): The teamspace's private sources and the libraries it has claimed, each with its parse state. Use the library details for versions and the progress of a running parse. - [Add a library](https://context7.com/docs/api-reference/teamspace-libraries/add-a-library.md): Submit a source for parsing; `source` selects its kind. Any member can add a public source; it does not join the teamspace. A private source (`private: true`, Confluence, Notion) joins this teamspace and needs the owner or admin role. The call returns once the parse has started (up to about 30 secon… - [Get a library](https://context7.com/docs/api-reference/teamspace-libraries/get-a-library.md): The library's parse state, counts, versions and the active parse task. Poll it after adding or refreshing a library. Works for the teamspace's private and claimed libraries, and for any public library. - [Remove a library](https://context7.com/docs/api-reference/teamspace-libraries/remove-a-library.md): For a private source: remove it from the teamspace; Context7 deletes it when no other teamspace has it. For a claimed public library: give up the claim; the library stays on Context7. Needs the owner or admin role. - [Update library settings](https://context7.com/docs/api-reference/teamspace-libraries/update-library-settings.md): Change the owner settings of a library the teamspace has claimed. The next refresh uses them. - [Refresh a library](https://context7.com/docs/api-reference/teamspace-libraries/refresh-a-library.md): Parse the library (or one branch) again from its source. Works for the teamspace's private and claimed libraries, and for any public library. Owners can refresh a limited number of times per period. Uploaded files cannot be refreshed. - [Add a version](https://context7.com/docs/api-reference/teamspace-libraries/add-a-version.md): Parse a tag or branch of a repository, or a docs URL of a website, as a version of its own. Any public library takes versions; the teamspace does not need to own it. The call returns once the parse has started; poll the library details. - [Delete a version](https://context7.com/docs/api-reference/teamspace-libraries/delete-a-version.md): Delete a tag or branch version of a library the teamspace has claimed. - [Get claim instructions](https://context7.com/docs/api-reference/teamspace-libraries/get-claim-instructions.md): The `context7.json` to publish to claim a library for this teamspace, with the teamspace's public key. The library need not belong to the teamspace yet. Publish the file, then call the verify operation. - [Verify a claim](https://context7.com/docs/api-reference/teamspace-libraries/verify-a-claim.md): Read the published `context7.json`. When its `url` and `public_key` match, the library becomes owned by this teamspace. Libraries on shared hosting platforms cannot be claimed automatically. - [Get library analytics](https://context7.com/docs/api-reference/teamspace-libraries/get-library-analytics.md): Usage of a library the teamspace has claimed. - [List library suggestions](https://context7.com/docs/api-reference/teamspace-libraries/list-library-suggestions.md): Questions the library's docs answered badly in Context7's benchmark, newest first, with what to add and the doc files to change. Only the teamspace that owns the library can read them. - [List library benchmarks](https://context7.com/docs/api-reference/teamspace-libraries/list-library-benchmarks.md): The library's benchmark score and its latest graded questions, newest first (up to 100): real questions asked about the library, each with the score Context7's grader gave the answer from its docs and the grader's explanation. Low scores show what the docs miss. Only the teamspace that owns the libr… - [Set library visibility](https://context7.com/docs/api-reference/teamspace-libraries/set-library-visibility.md): Makes a library the teamspace owns public or private, as the library admin page does. - [Redirect the library](https://context7.com/docs/api-reference/teamspace-libraries/redirect-the-library.md): Sends readers of a library the teamspace owns to another library. - [Remove the redirect](https://context7.com/docs/api-reference/teamspace-libraries/remove-the-redirect.md): Removes the library's redirect. - [Get chat widget settings](https://context7.com/docs/api-reference/teamspace-libraries/get-chat-widget-settings.md): Whether the library's chat widget is on, and the sites allowed to embed it. - [Update chat widget settings](https://context7.com/docs/api-reference/teamspace-libraries/update-chat-widget-settings.md): Turns the chat widget on or off and sets the domains allowed to embed it (up to 20). - [Check verification](https://context7.com/docs/api-reference/teamspace-libraries/check-verification.md): Whether the library qualifies for the verified badge, without applying. - [Apply for verification](https://context7.com/docs/api-reference/teamspace-libraries/apply-for-verification.md): Applies for the verified badge; the library is verified at once when it meets the criteria. - [Block the library](https://context7.com/docs/api-reference/teamspace-libraries/block-the-library.md): Stops Context7 from indexing a library the teamspace owns and deletes its parsed docs and versions (owner or admin). It cannot be undone. - [Transfer ownership](https://context7.com/docs/api-reference/teamspace-libraries/transfer-ownership.md): Moves the claim on a library the teamspace owns to another teamspace. The caller must be owner or admin of both; an API key reaches only its own teamspace, so it cannot transfer. - [List Docs7 sites](https://context7.com/docs/api-reference/docs7-sites/list-docs7-sites.md): The teamspace's Docs7 sites. GitHub sites are in `data`, sites deployed with the `docs7 deploy` CLI in `localSites`. Any member. - [Add a Docs7 site](https://context7.com/docs/api-reference/docs7-sites/add-a-docs7-site.md): Connect a GitHub repository. Docs7 checks that both the Docs7 GitHub App and the caller's own GitHub account can read the repository. The caller must have connected GitHub in the Context7 dashboard once (the dashboard stores the GitHub authorization); without it the answer is 400 `github_access_miss… - [Get a Docs7 site](https://context7.com/docs/api-reference/docs7-sites/get-a-docs7-site.md): One site, GitHub or CLI. Any member. - [Delete a Docs7 site](https://context7.com/docs/api-reference/docs7-sites/delete-a-docs7-site.md): Delete a GitHub or CLI site with its deployments, previews, custom domain and analytics. Calling it again after a partial cleanup retries the cleanup. Owner or admin. - [Update a Docs7 site](https://context7.com/docs/api-reference/docs7-sites/update-a-docs7-site.md): Change settings of a GitHub site. Send only the fields to change. Owners and admins can send every field; a developer can only send `{ "hosting": "on" }` to publish a site added for the agents only. A new slug or custom domain path starts a rebuild. A new Code Watch repository is checked against the… - [Check a custom domain again](https://context7.com/docs/api-reference/docs7-sites/check-a-custom-domain-again.md): Check the custom domain now: the ownership TXT record when it waits for proof, else the DNS and certificate state. A verified path domain starts a rebuild. Owner or admin. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [List deployments](https://context7.com/docs/api-reference/docs7-sites/list-deployments.md): One page (20 builds, newest first) of the site's build history, with its live targets. Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [Start a deployment](https://context7.com/docs/api-reference/docs7-sites/start-a-deployment.md): Build production, or build a branch preview. Developers can only rebuild production or an existing preview. Owner or admin for the rest. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [List CLI site deployments](https://context7.com/docs/api-reference/docs7-sites/list-cli-site-deployments.md): The builds and live targets of a site deployed with the `docs7 deploy` CLI, to follow its build state. Read the log lines of a build with get build logs. Only for CLI sites: a GitHub site answers 404. Any member. - [Get a deployment](https://context7.com/docs/api-reference/docs7-sites/get-a-deployment.md): One build. Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [Get build logs](https://context7.com/docs/api-reference/docs7-sites/get-build-logs.md): The log lines of one build, oldest first. Works for GitHub and CLI sites. Any member. - [Get a build health report](https://context7.com/docs/api-reference/docs7-sites/get-a-build-health-report.md): The issues one build found: page errors, broken links, unknown components and warnings. 404 when the build wrote no report. Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [Get a build origin](https://context7.com/docs/api-reference/docs7-sites/get-a-build-origin.md): The GitHub account that caused a webhook build and, for a pull request preview, its number and changed files. 404 when the build has no origin (for example a build started from the dashboard). Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. Returns personal data, so an… - [Delete a branch preview](https://context7.com/docs/api-reference/docs7-sites/delete-a-branch-preview.md): Remove the preview of one branch. Owner or admin. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [List agent runs](https://context7.com/docs/api-reference/docs7-sites/list-agent-runs.md): Runs of one agent, newest first: `improve` (Context7 Agent, default), `review` (PR Review Agent) or `watch` (Code Watch Agent). Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [Get agent usage](https://context7.com/docs/api-reference/docs7-sites/get-agent-usage.md): Whether the site reached its monthly agent run limit. Any member. Only for GitHub sites: a CLI site (`source: "local"`) answers 404. - [List feature requests](https://context7.com/docs/api-reference/docs7-sites/list-feature-requests.md): What agents and readers asked the product for, most votes first. Works for GitHub and CLI sites. Any member. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Delete a feature request](https://context7.com/docs/api-reference/docs7-sites/delete-a-feature-request.md): Delete a request and its votes for good. Owner or admin. - [Ship or reopen a feature request](https://context7.com/docs/api-reference/docs7-sites/ship-or-reopen-a-feature-request.md): Mark a request `shipped` with an optional docs link, or `requested` again. Owner or admin. - [Get GitHub App access](https://context7.com/docs/api-reference/docs7-sites/get-github-app-access.md): Whether the Docs7 GitHub App can still do everything the site's builds and agents need. `data` is null when GitHub could not be read. - [Get the way to hosting](https://context7.com/docs/api-reference/docs7-sites/get-the-way-to-hosting.md): For a site without hosting: its stage on the way to hosting (setup, publish, migrate, migrating, review, publishing or hosted), with the docs folder found in the repository and the migration pull request and preview when there is one. - [Check the analytics script](https://context7.com/docs/api-reference/docs7-sites/check-the-analytics-script.md): For a site hosted elsewhere: whether the page at its `analyticsUrl` serves the Docs7 analytics script tag. 400 `no_analytics_url` when the site has none. - [List open pull requests](https://context7.com/docs/api-reference/docs7-sites/list-open-pull-requests.md): The open pull requests of the site repository, one entry per head branch (the branches that get previews). An empty list when GitHub could not be read. - [List agent pull requests](https://context7.com/docs/api-reference/docs7-sites/list-agent-pull-requests.md): Every pull request the Docs7 agents opened on the site repository, all time, with open, merged and closed counts, read from GitHub. - [Connect a CLI site to GitHub](https://context7.com/docs/api-reference/docs7-sites/connect-a-cli-site-to-github.md): Changes a site deployed from the CLI to build from a GitHub repository, keeping its id and address. The Docs7 GitHub App must be installed on the repository. - [Get Example Check variables](https://context7.com/docs/api-reference/docs7-sites/get-example-check-variables.md): The names of the variables the Example Check Agent's code examples may read (values are never returned), and the variables pages still wait for. - [Replace Example Check variables](https://context7.com/docs/api-reference/docs7-sites/replace-example-check-variables.md): Replaces the whole variable list. A variable sent without `value` keeps its stored value. An https URL is passed to the agent; any other value is a secret sent only as a bearer header to the host of its `_URL` variable. Saving variables that complete a page's needs starts a check of those page… - [List Example Check runs](https://context7.com/docs/api-reference/docs7-sites/list-example-check-runs.md): The Example Check Agent's checks, newest first: state, progress, counts and pull request. - [Get visitor analytics](https://context7.com/docs/api-reference/docs7-analytics/get-visitor-analytics.md): Visitors and page views of people (known bots left out): totals, a series per day (per hour for `days=1`), the top 5 pages and referrers and the top 8 countries. Works for GitHub and CLI sites. Any member. - [Get AI crawler analytics](https://context7.com/docs/api-reference/docs7-analytics/get-ai-crawler-analytics.md): Requests from AI crawlers and agents (ClaudeBot, GPTBot, ChatGPT-User and others): totals, requests per provider, a series per day with one column per provider, and distinct bots per day. Works for GitHub and CLI sites. Any member. - [Get top AI paths](https://context7.com/docs/api-reference/docs7-analytics/get-top-ai-paths.md): The 5 paths that AI crawlers requested most. Works for GitHub and CLI sites. Any member. - [Get recent AI requests](https://context7.com/docs/api-reference/docs7-analytics/get-recent-ai-requests.md): The 10 newest AI crawler requests. Works for GitHub and CLI sites. Any member. - [Get search and question analytics](https://context7.com/docs/api-reference/docs7-analytics/get-search-and-question-analytics.md): What readers search for, what agents ask the docs, and the assistant questions grouped by topic. Works for GitHub and CLI sites. Any member. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Get page feedback analytics](https://context7.com/docs/api-reference/docs7-analytics/get-page-feedback-analytics.md): Page ratings (helpful or not) from readers and agents: totals, pages and every rating with its comment. Works for GitHub and CLI sites. Any member. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Explore analytics records](https://context7.com/docs/api-reference/docs7-analytics/explore-analytics-records.md): Query the raw records of one dataset (`searches`, `questions`, `ai-requests`, `page-views`) in a time range, with filters and an optional group, 20 rows per page. Send `Accept: text/csv` to download up to 10,000 rows as CSV. The range must be inside the plan's history (7 days on Free, 90 on Pro). An… - [Get an assistant conversation](https://context7.com/docs/api-reference/docs7-analytics/get-an-assistant-conversation.md): The turns of one recorded assistant conversation. The id comes from a `questions` record of explore. Any member. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [List Ask sites](https://context7.com/docs/api-reference/ask-sites/list-ask-sites.md): The teamspace's Ask sites, oldest first, each with the setup markup to install and its index status. - [Add an Ask site](https://context7.com/docs/api-reference/ask-sites/add-an-ask-site.md): Register a website. The response holds the `` verification tag for the site's `` and the hidden note for the top of ``. Add both to the site, deploy, then call verify. Free teamspaces allow 3 sites; paid plans have no site limit. Owner or admin. - [Get an Ask site](https://context7.com/docs/api-reference/ask-sites/get-an-ask-site.md): One site with its verification state, index status, and the exact tag and note the site must serve. - [Remove an Ask site](https://context7.com/docs/api-reference/ask-sites/remove-an-ask-site.md): Remove the site, its question log and its counters. The endpoint stops answering. Owner or admin. - [Verify an Ask site](https://context7.com/docs/api-reference/ask-sites/verify-an-ask-site.md): Fetch the site's URL and look for the verification tag in `` and the note (with this site's endpoint) in ``; both are required. A site that does not verify is not an error: the response is 200 with `verified: false` and the reason in `data.verification.reason`. A verified site stays veri… - [Get Ask site analytics](https://context7.com/docs/api-reference/ask-sites/get-ask-site-analytics.md): Requests over time by client, the clients that asked, the questions with no answer (gaps), the top questions and the most recent questions. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [List Ask site questions](https://context7.com/docs/api-reference/ask-sites/list-ask-site-questions.md): One page of the site's question log, newest first, 25 rows per page. Every filter is optional; an empty value means no filter. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Get the answer to an Ask question](https://context7.com/docs/api-reference/ask-sites/get-the-answer-to-an-ask-question.md): The text one logged question was answered with. A question that was not answered, is not known to this site, or whose answer has expired returns `answer: null`, not an error. Returns personal data, so an API key needs **Write access** (other keys get 403 `write_access_required`). - [Agentic Tools](https://context7.com/docs/agentic-tools.md): Build AI agents with up-to-date library documentation - [Getting Started](https://context7.com/docs/sdks/ts/getting-started.md): Get started with the Context7 TypeScript SDK - [Search](https://context7.com/docs/sdks/ts/commands/search.md): Find relevant documentation without resolving a library first - [Search Library](https://context7.com/docs/sdks/ts/commands/search-library.md): Search available libraries - [Get Context](https://context7.com/docs/sdks/ts/commands/get-context.md): Retrieve documentation context for a library - [Getting Started](https://context7.com/docs/agentic-tools/ai-sdk/getting-started.md): Add Context7 documentation tools to your Vercel AI SDK applications - [resolveLibraryId](https://context7.com/docs/agentic-tools/ai-sdk/tools/resolve-library-id.md): Search for libraries and resolve them to Context7-compatible IDs - [queryDocs](https://context7.com/docs/agentic-tools/ai-sdk/tools/query-docs.md): Fetch up-to-date documentation for a specific library - [Context7Agent](https://context7.com/docs/agentic-tools/ai-sdk/agents/context7-agent.md): Pre-built AI agent for documentation lookup workflows - [GitHub Actions](https://context7.com/docs/integrations/github-actions.md): Automatically refresh your Context7 library when your docs change - [CodeRabbit](https://context7.com/docs/integrations/code-rabbit.md): AI-powered code review tool - [Factory AI](https://context7.com/docs/integrations/factory-ai.md): AI-native software development platform with Droids - [Tembo](https://context7.com/docs/integrations/tembo.md): Orchestration layer for AI-powered engineering workflows - [Mastra](https://context7.com/docs/integrations/mastra.md): TypeScript framework for building AI agents - [eve](https://context7.com/docs/integrations/eve.md): Filesystem-first framework for building durable AI agents - [Developer Guide](https://context7.com/docs/resources/developer.md): Set up and run Context7 MCP locally for development - [Troubleshooting](https://context7.com/docs/resources/troubleshooting.md): Resolve common issues when setting up or using the Context7 MCP server - [Feature Requests](https://context7.com/docs/resources/feature-requests.md): Ask for features and vote on what Context7 should build next - [Intro](https://context7.com/docs/docs7/overview.md): A documentation platform built for the way agents read, search, and decide - [Quickstart](https://context7.com/docs/docs7/quickstart.md): Preview and publish a Docs7 site - [Plans & Pricing](https://context7.com/docs/docs7/plans.md): What Docs7 Free and Pro include - [Docs7 configuration](https://context7.com/docs/docs7/configuration.md): Configure Docs7-only fields in docs.json - [Custom Domains](https://context7.com/docs/docs7/custom-domains.md): Serve your docs from your own domain or from a path on your website - [Migrate from Mintlify](https://context7.com/docs/docs7/migrate-from-mintlify.md): Move an existing Mintlify project to Docs7 - [Builds](https://context7.com/docs/docs7/builds.md): Configure production builds, previews, and local builds - [AI Visibility](https://context7.com/docs/docs7/ai-visibility.md): See which AI agents request your docs and what they fetch - [Analytics](https://context7.com/docs/docs7/analytics.md): Understand visitors, searches, assistant questions, and referrers - [Agent](https://context7.com/docs/docs7/agent.md): Configure autonomous fixes, pull request reviews, code change updates, and scheduled checks - [Feature Requests](https://context7.com/docs/docs7/feature-requests.md): Let readers and AI agents ask your product for features and vote for them - [SEO](https://context7.com/docs/docs7/seo.md): Control indexing, metadata, sitemaps, and structured data - [Agent readiness](https://context7.com/docs/docs7/agent-readiness.md): Expose searchable Markdown and structured discovery for AI agents - [CLI](https://context7.com/docs/docs7/cli.md): Preview, sign in, and deploy documentation with the Docs7 CLI - [Callouts](https://context7.com/docs/docs7/components/callouts.md): Highlight notes, warnings, and other important information - [Cards](https://context7.com/docs/docs7/components/cards.md): Group related content and link to another page - [Columns](https://context7.com/docs/docs7/components/columns.md): Arrange content in a responsive grid - [Tiles](https://context7.com/docs/docs7/components/tiles.md): Create a link with a large visual preview - [Tabs](https://context7.com/docs/docs7/components/tabs.md): Switch between related blocks of content - [Code groups](https://context7.com/docs/docs7/components/code-groups.md): Show code examples in tabs - [Steps](https://context7.com/docs/docs7/components/steps.md): Write a numbered procedure - [Accordions](https://context7.com/docs/docs7/components/accordions.md): Hide details until the reader opens them - [Frames](https://context7.com/docs/docs7/components/frames.md): Present images, videos, and embeds with an optional caption - [Icons](https://context7.com/docs/docs7/components/icons.md): Add an icon inline with text - [Badges](https://context7.com/docs/docs7/components/badge.md): Add a small status or version label - [Tooltips](https://context7.com/docs/docs7/components/tooltips.md): Explain a word or action on hover - [Fields](https://context7.com/docs/docs7/components/fields.md): Document request parameters and response fields - [Expandables](https://context7.com/docs/docs7/components/expandables.md): Document nested object properties - [Request and response examples](https://context7.com/docs/docs7/components/examples.md): Pin API examples beside the page content - [Panel](https://context7.com/docs/docs7/components/panel.md): Place custom content in the right column - [Tree](https://context7.com/docs/docs7/components/tree.md): Show a file and folder structure - [Color](https://context7.com/docs/docs7/components/color.md): Show click-to-copy color swatches - [Prompt](https://context7.com/docs/docs7/components/prompt.md): Present a prompt that readers can copy or open in Cursor - [Updates](https://context7.com/docs/docs7/components/updates.md): Build a changelog from dated entries - [View](https://context7.com/docs/docs7/components/view.md): Let readers switch between versions of page content - [Visibility](https://context7.com/docs/docs7/components/visibility.md): Show different content to people and AI tools - [GitHub](https://context7.com/docs/docs7/components/github.md): Show a GitHub repository card - [Mermaid](https://context7.com/docs/docs7/components/mermaid.md): Create diagrams from a code fence - [LaTeX](https://context7.com/docs/docs7/components/latex.md): Add mathematical notation to a page - [React components](https://context7.com/docs/docs7/components/react-components.md): Define a small custom component in MDX ## OpenAPI Specs - [openapi](https://context7.com/openapi.json) - [openapi-enterprise](/docs/openapi-enterprise.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.