context7

context7

Installable
upstash
GitHubnpm

About

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:

  • CLI + Skills — installs a skill that guides your agent to fetch docs using ctx7 CLI commands (no MCP required)
  • MCP — registers a Context7 MCP server so your agent can call documentation tools natively

This server runs through your single 1Server connection. No extra config required.

1Installs
54.9KStars

Categories

AI Toolsdocumentation access

In collections