Context7
62,552 starsUpstash's Context7: up-to-date, version-matched library documentation for LLMs and AI code editors. Two MCP tools — resolve-library-id maps a library name to a Context7 ID, and get-library-docs pulls that version's docs and code examples — reducing hallucinated, outdated APIs from model memory. Remote server at https://mcp.context7.com/mcp with an Authorization: Bearer API key header.
- First published:2025-03-26
- data as of:
- 2026-09-30
- Licence:
- MIT
- Transport:
- http
- Primitives exposed:
- tools
What it can touch
Outbound calls to the Context7 cloud service: which library, version and query terms you look up all go to Upstash's servers. No local file access and no credentials to the libraries themselves.
Risk
Queries reveal what you are working on (e.g. looking up a security-related library can read as an intent signal); returned docs enter the model context and are theoretically an injection vector, though sourced from an official-docs index — lower risk than arbitrary web pages. The API key carries usage quota.
Install prompt
到 Context7 官網或官方倉庫 README 取得 API key 與你所用客戶端的設定說明:手動方式是讓客戶端連到 https://mcp.context7.com/mcp,並以 Authorization: Bearer 標頭帶你的 API key;完成後重啟客戶端。Paste this to your agent. It deliberately contains no tool subcommands — check the tool's official docs for commands.