# Context7

<div style={{maxWidth: '720px'}}>
![The Context7 connector in Workspace Settings, for looking up library documentation and code examples, with a Connect button](</docs/_next/static/media/context7-connector.178q51cn6mrwg.jpg>)
</div>

The [Context7 MCP server](https://github.com/upstash/context7) lets agents fetch current, version-specific documentation for a library while they work, instead of relying on what their model remembers.

For use cases and example prompts, see [Context7 for AI coding agents](/integrations/context7).

## What is Context7? [#what-is-context7]

[Context7](https://context7.com) indexes documentation and code examples for software libraries, frameworks, and tools, and keeps them up to date.

## What agents can do [#what-agents-can-do]

Once you connect Context7, agents can:

- Find a library in Context7's index by name
- Read that library's documentation and code examples, focused on the question they're working on

Context7's tools only look up documentation, so agents can't change anything through it.

## Setup [#setup]

Go to **Workspace Settings → Connectors** (or a project's **Connectors** page). Click **Add**, search for Context7, and select it. You can also click **Connect** on the Context7 card, or **Connect another** to add another account.

### Step 1: who the connection is for [#step-1-who-the-connection-is-for]

Choose **Me** or **Workspace** as the owner, then choose which agents can use the connection. The default is **Me**, with **My personal assistants** selected. From a project's **Connectors** page, only **In this project** is selected instead. Enable **Team assistants** or **Agents in projects** separately. Anyone in the workspace can use the connection through the team assistants you pick, and anyone with access to the projects you pick can use it, including in sessions they launch themselves. See [connection options](/docs/integrations/connectors#fill-in-the-connection-details) for what each choice means.

Click **Continue**.

### Step 2: how agents reach Context7 [#step-2-how-agents-reach-context7]

The second screen has two tabs: **Context7 account** and **Access token**. Pick one.

#### Context7 account [#context7-account]

This tab is selected by default, and there's no key to create. Click **Continue to Context7** and sign in. Choose the teamspace the connection can access, click **Continue**, then click **Allow**. You land back on the Connectors page with **Context7 connected**.

Agents then use the teamspace you chose, so their lookups count toward its [usage](https://context7.com/docs/howto/usage) and can read its [private sources](https://context7.com/docs/howto/private-sources). If you enable **In projects**, anyone with access to those projects can use that teamspace.

#### Access token [#access-token]

In the [Context7 dashboard](https://context7.com/dashboard), click **Create API Key**. Paste it into the **Context7 API Key** field and click **Connect Context7**. Agents then use the teamspace the key belongs to, the same way.

## Reconnecting and disconnecting [#reconnecting-and-disconnecting]

If an account connection stops working, the Connectors page shows a **Reconnect needed** badge on it, and agents run without Context7.

To fix it, click **Manage** next to the connection, then **Reconnect Context7**, and sign in again. You can only reconnect a personal connection you own; for someone else's, Superconductor tells you who to ask.

A revoked Context7 API key doesn't show **Reconnect needed**. Agents' Context7 lookups fail with "Invalid API key" until you enter a new key in the **Context7 API Key** field under **Manage** and click **Save**.

For a **Context7 account** connection, **Disconnect** also revokes Superconductor's access at Context7. If Context7 doesn't confirm the revocation, Superconductor shows a warning. To cut off an API key, also revoke it in the Context7 dashboard.

## When to use it [#when-to-use-it]

Context7 tells agents to check it for library questions, so they often use it without being asked. Mention it when a ticket involves a library that changes often, a recent major version, or an API the model may not know well. For example:

```text
Upgrade our app to Next.js 16. Use Context7 to check the migration guide before changing anything.
```

```text
Add email and password sign-up with Supabase Auth. Use Context7 for the current API.
```

```text
Our Stripe webhook handler uses a deprecated method. Look up the replacement in Context7 and update it.
```

```text
Use Context7 to find out how Tailwind v4 configures custom colors, then move our theme over.
```