Skip to main content
Context7 logo

Context7

Gives an agent up-to-date, version-accurate documentation for the libraries and frameworks it writes code against. The typical flow is two steps: search for a library to resolve its Context7 library id, then fetch that library's docs - optionally scoped to a topic and capped to a token budget so only the relevant section comes back.

What it can do

MethodWhat it does
context7_searchSearch for a library or framework by name and get matching Context7 library ids.
context7_get_library_docsFetch a library's docs by id, optionally scoped by topic and capped by a token budget.
context7_requestGeneric passthrough to any Context7 endpoint for full API coverage.

How to get your key

Context7 authenticates with a Bearer API key.

  1. Sign in at context7.com.
  2. Open your dashboard and find the API key section.
  3. Create (or copy) a key and paste it into FlyMyAI.

Fields to fill

FlyMyAI fieldWhere it comes from
CONTEXT7_API_KEYContext7 Dashboard -> API key

Troubleshooting

  • 401 Unauthorized - the key is wrong or has been rotated. Create a fresh key in the Context7 dashboard and paste it again.
  • No results from context7_search - try the library's common name (e.g. next.js, fastapi); broaden the query and search again.
  • Docs come back empty or truncated - raise the tokens budget, or drop the topic filter to get the full documentation set.
We love our partners - FlyMy.AI builds with the best. Thanks, Context7!