Context7 MCP

Search for libraries

Search for libraries by name with intelligent LLM-powered ranking based on your query context.
1 min read
get/v2/libs/search
Request example
Response
get/v2/libs/search

Query parameters

libraryNamestringrequired#
Library name to search for (e.g., 'react', 'nextjs', 'express')

Length: 1–500

querystringrequired#
User's original question or task - used for intelligent relevance ranking

Length: 1–500

fastenum<string>#
When true, skip LLM reranking and return top vector-search results directly. Trades relevance quality for lower latency.

Default: "false"

Options:truefalse

Responses

application/json
Search results ranked by relevance
resultsobject[]required#
Array of matching libraries ranked by relevance
Show child attributes
idstring#
Library ID — the URL path of the library on context7.com. /owner/repo for GitHub repositories, or /<source>/<id> for other sources (e.g., /vercel/next.js, /websites/uploadcare). See Library ID format.
titlestring#
Display name of the library
descriptionstring#
Short description
branchstring#
Git branch being tracked
lastUpdateDatestring#
ISO 8601 timestamp of last update
stateenum<string>#
Processing state of the library
Options:finalizedinitialprocessingerrordelete
totalTokensinteger#
Total tokens in documentation
totalSnippetsinteger#
Number of code snippets
starsinteger#
GitHub stars count
trustScoreinteger#
Source reputation score (0-10)

Range: 0–10

benchmarkScorenumber#
Quality indicator score (0-100)

Range: 0–100

versionsstring[]#
Available version tags
searchFilterAppliedbooleanrequired#
Indicates whether the search results were filtered by the teamspace's public library access settings. When true, some libraries may be excluded from results based on the teamspace's configuration (e.g., only verified libraries, selected libraries, or private repos only).