***
title: Context7
description: >-
Host a Context7 verification file on your Fern documentation site to enable
Context7 integration.
---------------------
For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see [https://buildwithfern.com/learn/llms.txt](https://buildwithfern.com/learn/llms.txt). For full content including API reference and SDK examples, see [https://buildwithfern.com/learn/llms-full.txt](https://buildwithfern.com/learn/llms-full.txt).
[Context7](https://context7.com/) provides up-to-date, version-specific documentation context for AI coding assistants. To register a library with Context7, you need to host a `context7.json` file anywhere under the library's base URL. Fern handles this for you through the `integrations` configuration in `docs.yml`.
Requires Fern CLI version `4.52.0` or later. Run `fern upgrade` to update.
Follow [Context7's setup instructions](https://context7.com/) to generate a `context7.json` verification file for your domain.
Place the `context7.json` file in your `fern/` directory (or any path relative to `docs.yml`).
Add the `integrations.context7` property to your `docs.yml` file, pointing to the relative path of your `context7.json` file:
```yaml
integrations:
context7: ./path/to/context7.json
```
Run `fern generate --docs` to publish. Fern hosts the file at `/context7.json` on your docs site (for example, `https://docs.example.com/context7.json`).