context7-mcp

Retrieve version-pinned official documentation and code examples for libraries.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/poko8nada/honox-sample --skill context7-mcp-poko8nada
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context7-mcp
Source: https://github.com/poko8nada/honox-sample/tree/main/.github/skills/context7-mcp
Command: npx skills add https://github.com/poko8nada/honox-sample --skill context7-mcp-poko8nada

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Contextual, up-to-date official documentation and code examples are often hard to locate or verify during development, leading to stale patterns and hallucinations.

Core Features & Use Cases

  • Library Resolution: automatically identify the correct official docs for a given library or framework, including version pinning.
  • Documentation & Example Retrieval: fetch the latest docs and code examples, filtered for relevance and language.
  • Use Case: when asked for current API references or version-specific guidance, context7 provides authoritative sources for accurate implementation.

Quick Start

Fetch the latest docs for a library or framework with an explicit version and apply them to your coding task.

Frequently Asked Questions about context7-mcp

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

FAQPage Schema
How do I get up-to-date API references for a specific library version during coding?

To get up-to-date API references during coding, you can use library resolution and version pinning to fetch the correct official documentation on demand, preventing stale patterns and hallucinations for your specific framework version.

Why does my AI assistant hallucinate outdated code examples for current libraries?

AI assistants hallucinate outdated code examples without contextual official documentation. Retrieving current API references and version-specific guidance on demand provides authoritative sources to ensure accurate implementation and eliminate stale patterns.

Can I retrieve multi-language code examples from official documentation on demand?

Yes, you can retrieve multi-language code examples from official documentation. It fetches relevant examples filtered by language while applying version pinning to ensure the code matches your current development environment.

What is the best way to prevent stale API patterns when generating code?

The best way to prevent stale API patterns is retrieving contextual, up-to-date official documentation during reasoning. This approach applies library resolution across frameworks, verifying current API references before implementation.

Does library resolution work with older framework versions?

Yes, library resolution supports older framework versions through explicit version pinning. You can request version-specific guidance and code examples, ensuring the retrieved official documentation matches your target environment.