// Look up library documentation using Context7. Use when needing API reference, library docs, framework documentation, or technical documentation lookup. Provides up-to-date, version-specific docs and code examples.
| name | looking-up-docs |
| description | Look up library documentation using Context7. Use when needing API reference, library docs, framework documentation, or technical documentation lookup. Provides up-to-date, version-specific docs and code examples. |
| allowed-tools | Read, Grep, Glob, mcp__context7__resolve-library-id, mcp__context7__get-library-docs |
Context7 provides up-to-date, version-specific documentation and code examples directly from source libraries.
mcp__context7__resolve-library-id with libraryNamemcp__context7__get-library-docs with context7CompatibleLibraryID and topic| Mode | Use For |
|---|---|
code | API references, code examples (default) |
info | Conceptual guides, architecture, tutorials |
# React hooks
resolve-library-id: "react"
get-library-docs: context7CompatibleLibraryID="/facebook/react", topic="hooks", mode="code"
# Next.js middleware
resolve-library-id: "next.js"
get-library-docs: context7CompatibleLibraryID="/vercel/next.js", topic="middleware"
# Go net/http
resolve-library-id: "go net/http"
get-library-docs: context7CompatibleLibraryID="/golang/go", topic="http server"
# Kubernetes API
resolve-library-id: "kubernetes"
get-library-docs: context7CompatibleLibraryID="/kubernetes/kubernetes", topic="deployment"
topic parameter to narrow results to specific featuresmode="info" for architectural questionspage=2, page=3 if initial results insufficient