context7

Installation
Summary

Retrieve current documentation for software libraries and frameworks via the Context7 API.

  • Two-step workflow: search for a library by name and topic, then fetch documentation using the returned library ID
  • Supports documentation retrieval across hundreds of libraries (React, Next.js, FastAPI, Axios, and others) with plain-text or JSON response formats
  • Query parameters accept specific topics for relevance ranking; results include library descriptions and snippet counts
  • No API key required for basic usage, though rate-limited; plain-text output (type=txt) recommended for readability
SKILL.md

Context7

Overview

This skill enables retrieval of current documentation for software libraries and components by querying the Context7 API via curl. Use it instead of relying on potentially outdated training data.

Workflow

Step 1: Search for the Library

To find the Context7 library ID, query the search endpoint:

curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'

Parameters:

  • libraryName (required): The library name to search for (e.g., "react", "nextjs", "fastapi", "axios")
  • query (required): A description of the topic for relevance ranking
Related skills
Installs
6.3K
GitHub Stars
259
First Seen
Jan 20, 2026