Twinkle HubTwinkle Hub
Sign in

📌 2026-05-12 added: Legislature dataset live (8 datasets · 284,257+ rows)

View full changelog →

Context7

Context7

AI training data has a cutoff date — your AI keeps suggesting outdated React, Next.js, or any library APIs. This tool fetches the current official docs at code-write time. Ask for "Next.js 14 App Router" and it grabs the v14 docs — not v12 patterns. By Upstash, no API key.

No token5-min install

Why client-side

Pulls package docs via npx, no tokens, no server-side state. Fully on your machine, has nothing to do with the hub — no reason to route through us.

Prerequisites

  • Node.js 18 or newer (npx auto-pulls the package)
  • Claude Desktop / Cursor — edit config, restart

Install

Claude Desktop (macOS)

~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": ["-y", "@upstash/context7-mcp"]
    }
  }
}

Cursor

{
  "name": "context7",
  "command": "npx -y @upstash/context7-mcp"
}

Full install doc (GitHub)

First run

Try this prompt

Use context7 to grab the Next.js 15 middleware docs, then help me write an i18n auto-detect middleware.

Common tools

  • resolve-library-id Given a package name (react, next, tailwindcss…), returns the context7 internal ID
  • get-library-docs Uses the ID to fetch the latest docs; accepts version and topic filters

Troubleshooting

SymptomFix
Package not foundContext7 indexes popular OSS. Niche packages may not be covered; check https://context7.com/ for the list
AI gets old docsSpecify the version in the prompt (e.g. "Next.js 15") — get-library-docs takes a version arg
Slow responseFirst fetch pulls from Upstash CDN; subsequent calls hit npx cache and are fast