Context7 MCP

Search Library

Search available libraries
1 min read

Search Library#

Search across available libraries. Returns an array of matching libraries with metadata useful for selection.

Arguments#

querystringrequired#

The user's question or task (used for relevance ranking)

libraryNamestringrequired#

The library name to search for

Response#

Returns Library[] - an array of library objects.

Libraryobject#
Show properties
idstringrequired#

Unique identifier for the library (e.g., /facebook/react)

namestringrequired#

Display name of the library

descriptionstringrequired#

Brief description of the library

totalSnippetsnumberrequired#

Total number of documentation snippets available

trustScorenumberrequired#

Trust score of the library

benchmarkScorenumberrequired#

Benchmark score indicating documentation quality

versionsstring[]#

Available versions

Examples#

Use Cases#

Finding Libraries by Score#

Checking Available Versions#

Full Workflow#