Search with Context7

context7

Context7 searches software documentation: code snippets and guides for libraries.

Features1
Modes2
Filters1

Playground

Pinned to Context7.

Results from Context7

    Features

    Context7 delivers 1 of the features on the feature list, each from one or more of its modes.

    FeatureReturns
    Software docsCurrent documentation for software libraries and frameworks, with code examples.

    Modes

    Context7 has 2 search modes. Choose which of them a search may use under Routing on your account page.

    • Default search
    • Libraries

    Filters Context7 applies

    Set them under filters. A filter a provider can’t apply returns 400 unsupported_filter.

    FilterKeeps
    domainsOnly these sites, or with "mode": "exclude", none of them.
    request.jsonJSON
    {
      "query": "which language has the most native speakers",
      "top_k": 5,
      "requested_provider": "context7",
      "filters": {
        "domains": { "values": ["en.wikipedia.org"] }
      }
    }

    Pin a query to Context7

    1. Over the HTTP API, send "requested_provider": "context7" with the query and your search key.
    2. In an agent connected over MCP, ask it to search with Context7.

    Results come back in the same shape for every provider, as the docs describe. Leave the field out, and Grounder routes each query to the provider most likely to answer it well.

    search.shShell
    curl https://api.grounder.net/v1/search \
      -H "Authorization: Bearer $GROUNDER_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "query": "which language has the most native speakers",
        "top_k": 5,
        "requested_provider": "context7"
      }'