Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Context7

Plugin by upstash

Adds up-to-date, version-specific library documentation and code examples to a coding agent's context. Built for developers who want AI assistants to write code against current APIs instead of outdated or invented ones.

  • Score 89
  • 66k stars
  • MIT
  • Updated
Works withClaude Code

Install Context7

Built from the published package, never by AI.

/plugin marketplace add shouenlee/ghcp-dev-plugin
/plugin install context7@ghcp-dev-plugins

Type both lines inside Claude Code: the first adds the marketplace, the second installs the plugin.

Step-by-step: install Context7 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Context7 pulls current, version-specific documentation and code examples from library sources and gives them to a coding agent. The source says this reduces outdated code, hallucinated APIs and generic answers for old package versions. It can be set up as a skill that uses the ctx7 CLI, or as an MCP server that the agent calls directly.

Setup runs through npx ctx7 setup, which authenticates via OAuth, generates an API key and installs the chosen skill. Users can add a Context7 library ID to a prompt to skip library matching, or mention a version to get matching docs. It is aimed at developers who write code with AI coding agents.

Written from the project's README and checked against it.

What it can do

  • resolve-library-idResolves a general library name into a Context7-compatible library ID.
  • query-docsRetrieves documentation for a library using a Context7-compatible library ID.
  • ctx7 librarySearches the Context7 index by library name and returns matching library IDs.
  • ctx7 docsRetrieves documentation for a library using a Context7 library ID.

What you need

  • Node.js 22.13 or newer for the ctx7 CLI
  • Free Context7 API key (recommended for higher rate limits)
  • OAuth sign-in during setup

Try asking

  • How do I set up a Next.js 16 proxy? use context7
  • Show me the Supabase auth API for email/password sign-up.
  • Configure a Cloudflare Worker to cache JSON API responses for five minutes. use context7

Good to know

  • Library documentation is community-contributed, and accuracy is not guaranteed.
  • An API key is recommended for higher rate limits.
  • The API backend, parsing engine and crawling engine are private and not in this repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Context7

All alternatives →
Mattpocock skillsmattpocock
95

Matt Pocock's agent skills for real engineering work, including grilling sessions, specs and tickets, TDD, bug diagnosis and code review. Made for developers who want control over their agent's process rather than a fixed framework.

AAB 334k
Modern web guidanceGoogleChrome
95

Modern Web Guidance is a set of skills that gives coding agents current web platform best practices and browser compatibility data. It steers agents away from legacy patterns and toward modern browser APIs.

AAB 27k
Superpowersobra
95

Superpowers is a software development methodology for coding agents, built from composable skills. It covers brainstorming, planning, subagent-driven development, test-driven development and code review. It is aimed at developers who use Claude Code.

AAB 328k
Modern web guidanceGoogleChrome
95

Keeps coding agents current with modern web platform APIs, best practices, and browser compatibility data. Steers agents away from legacy patterns and heavy polyfills toward native web features. Built for developers who use AI coding agents.

AAB 27k
Code modernizationanthropics
93

Guides modernization of legacy codebases, starting with /modernize. It covers an assessment, a plan you approve, then an upgrade, rewrite or rebuild checked against the old behavior.

AAB 48k
Code simplifieranthropics
93

Code simplifier is a Claude Code agent that refines recently modified code for clarity, consistency, and maintainability. It suits developers who want cleaner code that keeps its existing functionality.

AAB 48k

Compare with Mattpocock skills, Modern web guidance or Superpowers

Context7: common questions

Does Context7 need an API key?

The source recommends a free API key for higher rate limits. It can be obtained from the Context7 dashboard.

What Node.js version does the Context7 CLI need?

The ctx7 CLI requires Node.js 22.13 or newer.

Who maintains the documentation Context7 provides?

According to the disclaimer, projects listed in Context7 are developed and maintained by their respective owners, not by Context7.

How do I install Context7?

Inside Claude Code, add the marketplace with /plugin marketplace add shouenlee/ghcp-dev-plugin, then install the plugin with the second command shown above.

Is Context7 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Context7 safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Context7?

Similar plugins: Mattpocock skills, Modern web guidance, Superpowers, Modern web guidance.

Context7 Install

Add to stack

Loading.