Vine

โ† Back
MCPs

Context7

Loads live library docs straight into Claude Code.

Loads live library docs straight into Claude Code.

What it is

Context7 from Upstash pulls current, version-accurate library docs straight into Claude Code. No more stale training-data knowledge โ€” Claude reads the real docs at the current state. Trigger it with "use context7" in any prompt.

Install / Setup

Option 1 โ€” Terminal:

claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY

Grab a free API key at context7.com.

Option 2 โ€” Prompt Claude Code:

Install the Context7 MCP (@upstash/context7-mcp) via claude mcp add with --scope user. Ask me for my Context7 API key and verify with /mcp that it's connected.

Or as a Claude plugin: /plugin marketplace add upstash/context7 and /plugin install context7-plugin@context7-marketplace.

Liking this?

Inside the community I show you how I run all of this day-to-day โ€” live sessions, direct feedback on your setup, and my full configs.

Use cases

  • Using a new framework version โ€” "How does useEffect work in React 19? use context7" โ€” loads the current React docs before answering.
  • Checking API breaking changes โ€” Before an upgrade: Claude reads the new docs version and lists what changes.
  • Obscure libraries โ€” Library too new for the training data? Context7 loads the docs anyway.
  • Correct imports โ€” Claude loves to hallucinate old import paths โ€” with context7 it grabs the current ones.
  • Code samples from real docs โ€” Instead of generated snippets that might be wrong.

Pro tip

Add "always trigger 'use context7' for library questions" as a rule in your CLAUDE.md โ€” then Claude doesn't forget, and it saves you hours of debugging hallucinated API calls.


๐Ÿš€ Anyone can install MCPs. Knowing which combo actually fits your workflow โ€” that saves you weeks. In the community I show you my full MCP setup. โ†’ Join the Claude Code Mastery Community

Updated regularly โ€” follow @vine.codes for more.

Want more?

Learn it straight from me.