Navigate:
Context7
~$CONTE2.5%

Context7: Up-to-date code documentation for LLMs

MCP server delivering version-specific library documentation to LLMs.

LIVE RANKINGS • 10:20 AM • STEADY
TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10TOP 10
OVERALL
#9
3
AI & ML
#7
1
30 DAY RANKING TREND
ovr#9
·AI#7
STARS
47.0K
FORKS
2.2K
7D STARS
+1.1K
7D FORKS
+48
Tags:
See Repo:
Share:

Learn more about Context7

Context7 is an MCP (Model Context Protocol) server that provides version-specific library documentation to Large Language Models during code generation workflows. It automatically detects dependencies listed in a project's package.json file, retrieves documentation corresponding to the exact installed versions, and injects this contextual information into the LLM's working context. This eliminates the common problem of AI models generating code based on outdated or incorrect API signatures by ensuring documentation matches the actual library versions in use. The server integrates with AI-powered code editors like Cursor and Windsurf, operating as a background service that intercepts LLM requests and enriches them with current, accurate library reference material before code suggestions are generated.

Context7

1

Version-specific documentation

Retrieves documentation tied to specific library versions rather than generic information, reducing mismatches between generated code and actual API availability.

2

MCP protocol integration

Operates as an MCP server compatible with multiple clients including Cursor, VS Code, Claude Code, and Windsurf, allowing seamless integration into existing development workflows.

3

Direct prompt injection

Places fetched documentation directly into the LLM context window without requiring manual tab-switching or copy-pasting, keeping documentation lookup within the coding interface.


import { Context7Client } from '@upstash/context7-mcp';

const client = new Context7Client({
  apiKey: process.env.CONTEXT7_API_KEY
});

// Get docs for a specific library version
const docs = await client.getLibraryDocs('react', '18.2.0');
console.log(docs.content);

vctx7@0.2.3

Adds skills suggest command that scans project dependencies and recommends relevant skills

  • Add skills suggest command that scans your project's dependencies (package.json, requirements.txt, pyproject.toml) and recommends relevant skills
  • Results show install counts, trust scores, and which dependency each skill matches
vctx7@0.2.2

Improves skill search with install counts, trust scores, and better user experience

  • Add "Installs" and "Trust(0-10)" columns to skill search results with aligned column headers
  • Auto-login via OAuth when the generate command requires authentication instead of showing an error
  • Reorder question options so the recommended choice always appears first with a "✓ Recommended" badge
  • Add "View skill" action that opens generated content in the user's default editor
vctx7@0.2.1

Shows exact install counts and adds CLI telemetry for usage metrics

  • Show exact install counts instead of rounded values, sort skills by install count in the install command
  • Add CLI telemetry for usage metrics collection (commands, searches, installs, generation feedback) via fire-and-forget events

See how people are using Context7

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers