← mcp servers

Context7

Enables AI agents to access current documentation for popular libraries and frameworks through the Model Context Protocol. Resolves library names to documentation sources and retrieves relevant, up-to-date docs on demand. Eliminates the problem of outdated training data for library APIs.

Package

Registrynpm (stdio)
Package@upstash/context7-mcp@4.0.4
Integritysha512-7SO1no1tabPvC8OK8j1BBrUTysoCoUP/wHhzBTD53CDqJFKuPBxWH5MBl708vX1UwY3Ymd183SM4zLgJmwqYag==
Lockfilepackage-lock.json sha512-9X462ZJuZnEyebZ14fI7rrbNg4bkAh617aufO5EvROvVB9yetAN9Zw0QtQ90HPVK3ahY32QVXFTtGpi84wxkKw==
Entrydist/index.js
Install scriptsnone allowed

Configuration

Optional. Without a key the server works with basic rate limits; an API key from the Context7 dashboard raises rate limits and enables private repositories. — get credentials

KeyNameKindRequiredSecretFormatDefault / choices
CONTEXT7_API_KEYContext7 API Key
Context7 API key (optional; raises rate limits and enables private repositories)
envnoyesstring

Tools (2)

From the test run on 2026-10-23 (darwin-arm64, linux-x64, Node 24) — starts without credentials.

query-docsRetrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework.
params: libraryId*, query*
resolve-library-idResolves a package/product name to a Context7-compatible library ID and returns matching libraries.
params: libraryName*, query*

Security Assessment

Levelsafe
Permissionsread:documentation
Data Exposurenone
Requires SupervisorNo
Risk NotesRead-only access to library documentation.
Reviewpass · community · 2026-03-16
Runtimeengines.node >=20.18.1 · native modules: no · 22.6 MB installed

When to Use

UseWhen the agent needs up-to-date documentation for libraries or frameworks to write correct code.
Do not useWhen general web search is needed rather than specific library documentation.
Input / Outputtext → text, markdown

io.github.upstash/context7 · v4.0.4 · Category: search · Free tier: Yes · Source · Website