context7

Retrieve current library documentation via the Context7 API.

2|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/roderik/mpe --skill context7-roderik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7
Source: https://github.com/roderik/mpe/tree/main/.agents/skills/context7
Command: npx skills add https://github.com/roderik/mpe --skill context7-roderik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill retrieves up-to-date documentation for software libraries and frameworks via the Context7 API, helping developers replace outdated references, validate API usage, and quickly locate concrete code examples.

Core Features & Use Cases

  • Library lookup and context retrieval: Find a library by name and obtain relevant documentation context for a given topic.
  • Code examples and API guidance: Retrieve concrete usage snippets and best practices to accelerate implementation.
  • Use Case: When you need current API details or examples for a library (e.g., React, Next.js, FastAPI), use this Skill to fetch authoritative docs rather than relying on outdated training data.

Quick Start

Two-step workflow:

  1. Search for the library: curl -s "https://context7.com/api/v2/libs/search?libraryName=LIBRARY_NAME&query=TOPIC" | jq '.results[0]'
  2. Fetch documentation: curl -s "https://context7.com/api/v2/context?libraryId=LIBRARY_ID&query=TOPIC&type=txt"

Frequently Asked Questions about context7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch up-to-date library documentation for a framework like React or FastAPI?

To fetch up-to-date library documentation, query the Context7 search endpoint with the library name and topic, then retrieve the context using the returned library ID to get current API guidance and code examples.

How can I find current code examples for a specific software library API?

You can find current code examples by querying the Context7 API with the library name and topic, which returns plain-text or JSON-formatted documentation containing concrete usage snippets and best practices.

What is the best way to verify library functions and API usage without relying on outdated training data?

The best way to verify library functions is to use the Context7 API to retrieve authoritative, current documentation on demand, bypassing outdated training data by fetching plain-text results directly from the context endpoint.

How do I search for a library by name and retrieve relevant documentation context?

Search for a library by name using the Context7 search endpoint to get the library ID, then pass that ID and your topic query to the context endpoint to retrieve relevant documentation context.

Does the Context7 API work for retrieving documentation across different programming languages and ecosystems?

Yes, the Context7 API works across programming languages and ecosystems, retrieving up-to-date API usage guidance and code examples for any supported software library or framework.

Why should I use an on-demand documentation lookup instead of static API references?

On-demand documentation lookup via the Context7 API replaces outdated references and validates API usage in real-time, ensuring you always access current library functions and best practices.