Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
> /plugin marketplace add upstash/context7> /plugin install context7@context7-marketplace
Repo: upstash/context7
What's inside

LLMs rely on outdated or generic information about the libraries you use. You get:
Context7 pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt.
Create a Next.js middleware that checks for a valid JWT in cookies
and redirects unauthenticated users to `/login`. use context7
Configure a Cloudflare Worker script to cache
JSON API responses for five minutes. use context7
Show me the Supabase auth API for email/password sign-up.
Context7 fetches up-to-date code examples and documentation right into your LLM's context. No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.
Works in two modes:
ctx7 CLI commands (no MCP required)[!NOTE] API Key Recommended: Get a free API key at context7.com/dashboard for higher rate limits.
Set up Context7 for your coding agents with a single command. The ctx7 CLI requires Node.js 18 or newer.
npx ctx7 setup
Authenticates via OAuth, generates an API key, and installs the appropriate skill. You can choose between CLI + Skills or MCP mode. Use --cursor, --claude, or --opencode to target a specific agent.
To remove the generated setup later, run npx ctx7 remove. If you globally installed the CLI with npm install -g ctx7, remove that package separately with npm uninstall -g ctx7.
To configure manually, use the Context7 server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the Authorization: Bearer YOUR_API_KEY header. See the link below for client-specific setup instructions.
Manual Installation / Other Clients →
If you already know exactly which library you want to use, add its Context7 ID to your prompt. That way, Context7 can skip the library-matching step and directly retrieve docs.
Implement basic authentication with Supabase. use library /supabase/supabase for API and docs.
The slash syntax tells Context7 exactly which library to load docs for.
To get documentation for a specific library version, just mention the version in your prompt:
How do I set up Next.js 14 middleware? use context7
Context7 will automatically match the appropriate version.
If you installed via ctx7 setup, a skill is configured automatically that triggers Context7 for library-related questions. To set up a rule manually instead, add one to your coding agent:
Cursor Settings > RulesCLAUDE.mdExample rule:
Always use Context7 when I need library/API documentation, code generation, setup or configuration steps without me having to explicitly ask.
ctx7 library <name> <query>: Searches the Context7 index by library name and returns matching libraries with their IDs.ctx7 docs <libraryId> <query>: Retrieves documentation for a library using a Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js).resolve-library-id: Resolves a general library name into a Context7-compatible library ID.
query (required): The user's question or task (used to rank results by relevance)libraryName (required): The name of the library to search forquery-docs: Retrieves documentation for a library using a Context7-compatible library ID.
libraryId (required): Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js)query (required): The question or task to get relevant documentation for@upstash/context7-mcp - MCP serverctx7 - CLI@upstash/context7-sdk - TypeScript SDK@upstash/context7-tools-ai-sdk - Vercel AI SDK tools@upstash/context7-pi - pi.dev extension1- Context7 projects are community-contributed and while we strive to maintain high quality, we cannot guarantee the accuracy, completeness, or security of all library documentation. Projects listed in Context7 are developed and maintained by their respective owners, not by Context7. If you encounter any suspicious, inappropriate, or potentially harmful content, please use the "Report" button on the project page to notify us immediately. We take all reports seriously and will review flagged content promptly to maintain the integrity and safety of our platform. By using Context7, you acknowledge that you do so at your own discretion and risk.
2- This repository hosts the MCP server’s source code. The supporting components — API backend, parsing engine, and crawling engine — are private and not part of this repository.
Stay updated and join our community:
MIT
.agents/
plugins/
marketplace.json
.changeset/
config.json
README.md
.claude-plugin/
marketplace.json
.env.example
.github/
dependabot.yml
ISSUE_TEMPLATE/
bug_report.yml
documentation.yml
feature_request.yml
plugin/
marketplace.json
workflows/
canary-release.yml
ecr-deploy.yml
mcp-registry.yml
release.yml
test.yml
triage-library-report.yml
.gitignore
.prettierignore
docs/
adding-libraries.mdx
agentic-tools/
ai-sdk/
agents/
context7-agent.mdx
getting-started.mdx
tools/
query-docs.mdx
resolve-library-id.mdx
overview.mdx
api-guide.mdx
clients/
claude-code.mdx
cli.mdx
codex.mdx
copilot-cli.mdx
cursor.mdx
opencode.mdx
pi.mdx
vscode.mdx
contact.mdx
docs.json
enterprise/
enterprise.mdx
api/
authentication.mdx
context/
get-documentation-context.mdx
parse/
get-parse-status.mdx
import-libraries.mdx
parse-a-git-repository.mdx
parse-a-website.mdx
parse-an-openapi-spec-by-url.mdx
refresh-a-library.mdx
upload-an-openapi-spec-file.mdx
search/
search-for-libraries.mdx
backup-restore.mdx
changelog.mdx
deployment/
docker.mdx
kubernetes.mdx
scaling.mdx
vector-stores.mdx
enterprise-managed-auth/
entra.mdx
okta.mdx
gitops.mdx
integrations/
confluence.mdx
github.mdx
other-git.mdx
library-import.mdx
on-premise.mdx
security/
entra-sso.mdx
library-access.mdx
oidc-sso.mdx
howto/
api-keys.mdx
chat-widget.mdx
claiming-libraries.mdx
oauth.mdx
policies.mdx
private-sources.mdx
rules.mdx
teamspace.mdx
usage.mdx
verification.mdx
images/
clients/
claude-code/
mcp-details.png
mcp-list.png
mcp-unauthenticated.png
cursor/
logo.png
mcp-settings.png
rules.png
manus/
connector.png
custom-mcp.png
dashboard/
add-payment-method.png
admin/
claim-library-button.png
claim-modal.png
config-overview.png
library-manage-button.png
library-metrics.png
managing-versions.png
api-keys-card.png
billing-page.png
chat-widget.png
manage-cards.png
members-tab.png
private-sources-card.png
public-repository-filters.png
source-type-access.png
teamspace-management.png
usage-stats.png
user-dropdown.png
enterprise/
api-keys/
api-keys-create-dialog.png
api-keys-created.png
api-keys-empty.png
enterprise-managed-auth/
context7-ema-config.png
okta-assignments.png
okta-enable-feature.png
okta-manage-connections.png
okta-requesting-app.png
okta-resource-app.png
entra-sso/
01-register-app.png
02-app-overview.png
03-client-secret.png
04-app-roles.png
05-assignment-required.png
06-assign-user-role.png
07-context7-settings-card.png
08-filled-credentials.png
10-login-page.png
11-users-tab.png
README.md
gitops/
gitops-settings.png
integrations/
confluence-add.png
confluence-by-url.png
confluence-settings.png
confluence-source.png
git-tokens.png
github-app.png
github-permissions.png
github-webhook.png
other-git-https.png
other-git-ssh.png
library-access/
01-restricted-access.png
02-everyone-access.png
03-default-posture.png
04-access-overview.png
library-import/
export-menu.png
export-select.png
import-source.png
import-upload.png
imported-badge.png
oidc-sso/
01-login-page.png
02-sso-card-oidc.png
03-group-mapping.png
04-password-card.png
05-users-tab.png
howto/
verification/
apply-button.png
apply-modal.png
verification-badge.png
integrations/
coderabbit/
add-server-modal.png
integrations-tab.png
server-connected.png
update-mcp-settings.png
tembo/
integrations-page.png
server-connected.png
on-premise-architecture.png
scaling-multi-replica.png
scaling-settings.png
security/
classifier_pipeline.png
installation.mdx
integrations/
code-rabbit.mdx
factory-ai.mdx
github-actions.mdx
mastra.mdx
tembo.mdx
library-owners.mdx
library-updates.mdx
openapi-enterprise.json
openapi.json
overview.mdx
plans-pricing.mdx
public/
favicon.ico
logo/
logo-dark.svg
logo.png
logo.svg
resources/
all-clients.mdx
developer.mdx
troubleshooting.mdx
sdks/
ts/
commands/
get-context.mdx
search-library.mdx
getting-started.mdx
security/
auth-and-access-control.mdx
best-practices.mdx
compliance-and-reporting.mdx
data-privacy.mdx
data-safety.mdx
infrastructure.mdx
overview.mdx
tips.mdx
eslint.config.js
gemini-extension.json
i18n/
README.ar.md
README.de.md
README.es.md
README.fr.md
README.id-ID.md
README.it.md
README.ja.md
README.ko.md
README.pt-BR.md
README.ru.md
README.tr.md
README.uk.md
README.vi.md
README.zh-CN.md
README.zh-TW.md
LICENSE
package.json
packages/
cli/
.gitignore
CHANGELOG.md
eslint.config.js
package.json
README.md
src/
__tests__/
auth-commands.test.ts
auth-utils.test.ts
find-docs-skill-alignment.test.ts
github.test.ts
installer.test.ts
library-id.test.ts
plugin-manifests.test.ts
remove.test.ts
setup.test.ts
skill-list.test.ts
storage-paths.test.ts
update-check.test.ts
upgrade-command.test.ts
commands/
auth.ts
docs.ts
generate.ts
remove.ts
setup.ts
skill.ts
upgrade.ts
constants.ts
index.ts
setup/
agents.ts
mcp-writer.ts
templates.ts
types.ts
utils/
api.ts
auth.ts
deps.ts
github.ts
ide.ts
installer.ts
library-id.ts
logger.ts
parse-input.ts
prompts.ts
selectOrInput.ts
skill-name.ts
storage-paths.ts
tracking.ts
update-check.ts
tsconfig.json
tsup.config.ts
vitest.config.ts
mcp/
.prettierignore
CHANGELOG.md
Dockerfile
eslint.config.js
LICENSE
mcpb/
.mcpbignore
context7.mcpb
manifest.json
package.json
prettier.config.mjs
README.md
schema/
context7.json
smithery.yaml
src/
index.ts
lib/
api.ts
auth/
auth-prompt.ts
client-ip.ts
constants.ts
encryption.ts
jwt.ts
types.ts
utils.ts
test/
certificate.test.ts
client-ip.test.ts
integration.test.ts
jwt.test.ts
utils.test.ts
tsconfig.json
tsconfig.test.json
pi/
__tests__/
extension.test.ts
.prettierignore
CHANGELOG.md
eslint.config.js
extensions/
context7.ts
lib/
api.ts
format.ts
prompts.ts
result.ts
tools/
query-docs.ts
resolve-library-id.ts
types.ts
LICENSE
package.json
prompts/
c7-docs.md
README.md
skills/
context7-docs/
SKILL.md
tsconfig.json
vitest.config.ts
sdk/
CHANGELOG.md
eslint.config.js
LICENSE
package.json
prettier.config.mjs
README.md
src/
client.test.ts
client.ts
commands/
command.ts
get-context/
index.test.ts
index.ts
types.ts
index.ts
search-library/
index.test.ts
index.ts
... 122 moreFAQ
context7 is a Claude Code plugin with 9 hand-picked skills for documentation work, indexed on Flowy. Install it with the command on its page. It includes context7-docs, context7-mcp, context7-mcp. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.