documentation-lookup
🎯Skillfrom upstash/context7
Retrieves and provides up-to-date, accurate documentation for code libraries and APIs directly within the context of a coding conversation or query.
Installation
npx skills add https://github.com/upstash/context7 --skill documentation-lookupSkill Details
Overview

[](https://cursor.com/en/install-mcp?name=context7&config=eyJ1cmwiOiJodHRwczovL21jcC5jb250ZXh0Ny5jb20vbWNwIn0%3D)
# Context7 MCP - Up-to-date Code Docs For Any Prompt
[](https://context7.com) [](https://smithery.ai/server/@upstash/context7-mcp) [](https://www.npmjs.com/package/@upstash/context7-mcp) [](./LICENSE)
[](./i18n/README.zh-TW.md) [](./i18n/README.zh-CN.md) [](./i18n/README.ja.md) [](./i18n/README.ko.md) [](./i18n/README.es.md) [](./i18n/README.fr.md) [ to auto-invoke):
```txt
Create a Next.js middleware that checks for a valid JWT in cookies
and redirects unauthenticated users to /login. use context7
```
```txt
Configure a Cloudflare Worker script to cache
JSON API responses for five minutes. use context7
```
Context7 fetches up-to-date code examples and documentation right into your LLM's context. No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.
Installation
> [!NOTE]
> API Key Recommended: Get a free API key at [context7.com/dashboard](https://context7.com/dashboard) for higher rate limits.
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol) for more info.
> Since Cursor 1.0, you can click the install button below for instant one-click installation.
#### Cursor Remote Server Connection
[](https://cursor.com/en/install-mcp?name=
More from this repository2
Provides up-to-date, version-specific code documentation and context for programming libraries by dynamically fetching the latest library information and code examples for AI assistants.
Dynamically retrieves and injects the most recent documentation and code context for libraries and dependencies directly into Claude's code generation process, ensuring up-to-date and accurate code...