Skip to content
Documentation
Command

/docs

Look up documentation for any library

From plugin
context7
64k1 skill2 agents1 command1 MCP
> /plugin marketplace add upstash/context7
> /plugin install context7@context7-marketplace

Command definition

docs.md
description: Look up documentation for any library

/context7:docs

Fetches up-to-date documentation and code examples for a library.

Usage

/context7:docs <library> [query]
  • **library**: The library name, or a Context7 ID starting with `/`
  • **query**: What you're looking for (optional but recommended; run the command once per distinct concept, unless asking how they interact)

Examples

/context7:docs react hooks
/context7:docs next.js authentication
/context7:docs prisma relations
/context7:docs /vercel/next.js/v16.2.9 app router
/context7:docs /supabase/supabase row level security

How It Works

1. If the library starts with `/`, it's used directly as the Context7 ID 2. Otherwise, `resolve-library-id` finds the best matching library 3. `query-docs` fetches documentation relevant to your query 4. Results include code examples and explanations

Version-Specific Lookups

Include the version in the library ID for pinned documentation:

/context7:docs /vercel/next.js/v16.2.9 proxy
/context7:docs /facebook/react/v19.0.0 use hook

This is useful when you're working with a specific version and want docs that match exactly.

@upstash
Ships withcontext7

Context7 Platform -- Up-to-date docs for AI agents

64k4 skills2 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
64.0k
Star history of upstash/context7 on GitHub, a chart by star-history.com

More commands from other plugins.

maintainer
Auto-invoked

maintainer

Command

Meta-skill that loads all llmwiki governance docs and exposes the three maintainer slash commands.

llmwiki4mo400
@pratiyush@pratiyushInstall Command