Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
netresearch avatar

Context7

  • 928 installs
  • 47 repo stars
  • Updated August 2, 2026
  • netresearch/context7-skill

context7 is a Claude and Cursor skill that wraps the Context7 REST API to search library IDs and fetch up-to-date framework documentation into the IDE without manual doc hunting.

About

context7 is a netresearch/context7-skill bash wrapper around the Context7 REST API (based on @upstash/context7-mcp) exposing search and docs commands against https://context7.com/api/v2. The search command resolves a library ID from a query; docs fetches documentation for a library-id with optional topic and mode parameters. An optional CONTEXT7_API_KEY enables authenticated requests with an X-Context7-Source: claude-skill header. Developers reach for context7 when Claude or Cursor needs current framework docs—React, Next.js, or any indexed library—without leaving the editor or relying on outdated training data.

  • Search for libraries by natural language query
  • Fetch targeted documentation by library ID and topic
  • REST API wrapper for Context7 v2 endpoint
  • Optional authenticated requests with bearer token
  • Returns structured results including benchmark scores and snippet counts

Context7 by the numbers

  • 928 all-time installs (skills.sh)
  • +46 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #1,186 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/netresearch/context7-skill --skill context7

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs928
repo stars47
Security audit2 / 3 scanners passed
Last updatedAugust 2, 2026
Repositorynetresearch/context7-skill

How do you fetch up-to-date library docs in IDE?

Instantly pull accurate, up-to-date library and framework documentation directly into Claude or Cursor without leaving the IDE.

Who is it for?

Developers using Claude or Cursor who need current third-party library documentation injected during coding sessions.

Skip if: Offline-only environments without network access or projects where all APIs are fully defined in local source with no external doc dependency.

When should I use this skill?

The user asks for current framework docs, library API references, or needs to resolve a Context7 library ID before coding against an external package.

What you get

Resolved library ID and fetched Context7 documentation payload for the requested framework topic and mode.

  • Library ID search results
  • Fetched framework documentation

By the numbers

  • Exposes 2 CLI commands: search and docs
  • Targets Context7 REST API v2 at context7.com/api/v2

Files

SKILL.mdMarkdownGitHub ↗

Context7 Documentation Lookup Skill

Fetch current library documentation, API references, and code examples via the Context7 REST API.

When to Use

Use this skill when the user asks about library APIs, framework patterns, or version-specific behavior. Trigger on:

  • Library questions: "How do I use [library]?", "[library] API docs", "[library] patterns"
  • Import statements: import, require, from followed by a library name
  • Framework-specific topics: hooks, routing, middleware, ORM queries, schema definitions

When NOT to Use

Do NOT use this skill for:

  • General programming concepts (closures, recursion, design patterns)
  • Code review or refactoring tasks
  • Debugging business logic
  • Writing scripts from scratch without library-specific questions

Core Workflow

1. Search for the library ID:

   scripts/context7.sh search "library-name"

2. Pick the best result: Choose the ID with the highest score and most relevant description. Prefer official sources (e.g., /vercel/next.js over community forks).

3. Fetch documentation with a focused topic:

   scripts/context7.sh docs "<library-id>" "<topic>" "<mode>"

Always extract a specific topic from the user's question. For "How does React Suspense work with server components?", use topic suspense server components.

Parameters

ParameterRequiredDescription
library-idYesFrom search results, format /vendor/library
topicNoFocus area extracted from user query (e.g., hooks, routing, validation)
modeNocode (default) for API references; info for conceptual guides

Mode Selection

Use code mode (default) when the user asks for API references, code examples, or implementation patterns.

Use info mode when the user asks for conceptual explanations, architecture guides, or migration tutorials.

Examples

# React hooks API
scripts/context7.sh search "react"
scripts/context7.sh docs "/facebook/react" "hooks" "code"

# Next.js App Router conceptual guide
scripts/context7.sh search "nextjs"
scripts/context7.sh docs "/vercel/next.js" "app router" "info"

# Django ORM queries
scripts/context7.sh search "django"
scripts/context7.sh docs "/django/django" "queryset filter" "code"

# Laravel Eloquent relationships
scripts/context7.sh search "laravel"
scripts/context7.sh docs "/laravel/framework" "eloquent relationships" "code"

Environment Configuration

Set CONTEXT7_API_KEY for higher rate limits (optional):

export CONTEXT7_API_KEY="your-api-key"

---

Contributing: https://github.com/netresearch/context7-skill

Related skills

How it compares

Use context7 when agents need indexed third-party library docs on demand; use local codebase search when documentation is entirely in-repository.

FAQ

What commands does the context7 skill expose?

The context7 skill exposes search to find a library ID from a query and docs to fetch documentation for a library-id with optional topic and mode. Both call the Context7 REST API at context7.com/api/v2.

Does context7 require an API key?

context7 works without an API key but accepts an optional CONTEXT7_API_KEY environment variable for authenticated requests. The wrapper sends X-Context7-Source: claude-skill on each API call.

Is Context7 safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

AI & Agent Buildingagentsllmautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.