VC

vedanthb/context7-cli

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 3 forks 품질 59 트렌드 30

Context7의 CLI - 터미널에서 최신 라이브러리 문서. MCP가 필요 없습니다.

개요

최신 버전별 라이브러리 docs 를 터미널에서 가져옵니다. MCP 클라이언트가 필요하지 않습니다. Context7의 상단에 내장 - Cursor, Claude 및 기타 AI 코딩 조수가 동일한 문서, 이제 간단한 CLI로 사용할 수 있습니다. 이 패키지는 npm에 @vedanth/context7로 게시됩니다. npm의 unscoped context7는 다른 관련 프로젝트입니다. CLI가 개발자 도구에 MCP 서버보다 더 나은 성장 합의가되었습니다. MCP는 특정 편집자로 당신을 잠급니다. CLI 그냥 텍스트를 제공 - 당신이 원하는 곳을 파이프. Context7은 훌륭한 문서 데이터를 가지고 있지만 MCP 서버는 Cursor 및 기타 MCP 클라이언트 내부에서만 작동합니다. c7는 보통 stdout로 유효한 동일한 자료를 만듭니다: - LLM (Claude Code, Ollama, llama.cpp, 무엇이든)에 파이프 - grep, jq, 적은, pbcopy, 또는 쉘 스크립트와 컴파일 - CI, 자동화, 에이전트 프롬프트에서 사용 - 어디든 명령을 실행할 수 있습니다. 기본적인 사용법을 위한 API 열쇠 없이 일. 더 높은 비율 한계를 위해: 1. context7.com/dashboard 2.에서 키 받기.

개요(AI 번역)

최신 버전별 라이브러리 docs 를 터미널에서 가져옵니다. MCP 클라이언트가 필요하지 않습니다.

Context7의 상단에 내장 - Cursor, Claude 및 기타 AI 코딩 조수가 동일한 문서, 이제 간단한 CLI로 사용할 수 있습니다.

주: 이 패키지는 npm에 @vedanth/context7로 게시됩니다. npm의 unscoped context7는 다른 관련 프로젝트입니다.

왜?

CLI가 개발자 도구에 MCP 서버보다 더 나은 성장 합의가되었습니다. MCP는 특정 편집자로 당신을 잠급니다. CLI 그냥 텍스트를 제공 - 당신이 원하는 곳을 파이프.

Context7은 훌륭한 문서 데이터를 가지고 있지만 MCP 서버는 Cursor 및 기타 MCP 클라이언트 내부에서만 작동합니다. c7는 일반 stdout으로 사용할 수있는 동일한 데이터를 만듭니다.

  • 모든 LLM에 파이프 (Claude Code, Ollama, llama.cpp, 무엇이든)
  • grep, jq, less, pbcopy, 또는 쉘 스크립트와 컴파일
  • CI, 자동화, 에이전트 프롬프트에서 사용 - 어디서 명령어를 실행할 수 있습니다.

설치

사용법

명령

명령 설명
c7 resolve 검색어를 위한 Context7 라이브러리 ID 찾기
c7 docs [topic] docs 다운로드 (자동반응)
[T5] 숏핸드 [T6]

옵션

| 플래그 | Description |

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

c7 — Context7 CLI

Get up-to-date, version-specific library docs from your terminal. No MCP client needed.

Built on top of Context7 — the same docs that power Cursor, Claude, and other AI coding assistants, now available as a simple CLI.

Note: This package is published as @vedanth/context7 on npm. The unscoped context7 on npm is a different, unrelated project.

Why?

There’s been a growing consensus that CLIs are better than MCP servers for developer tools. MCP locks you into specific editors. A CLI just gives you text — pipe it wherever you want.

Context7 has great docs data, but their MCP server only works inside Cursor and other MCP clients. c7 makes the same data available as plain stdout:

  • Pipe into any LLM (Claude Code, Ollama, llama.cpp, whatever)
  • Compose with grep, jq, less, pbcopy, or shell scripts
  • Use in CI, automation, agent prompts — anywhere you can run a command

Install

npx @vedanth/context7               # Run directly (no install)
npm install -g @vedanth/context7     # Or install globally

Usage

# Find a library
c7 resolve nextjs

# Get docs (auto-resolves library name)
c7 docs nextjs "app router"
c7 docs react "server components" --tokens 10000

# Shorthand — skip the "docs" command
c7 react hooks
c7 express middleware
c7 tailwindcss "dark mode"

# Use exact Context7 ID (from resolve)
c7 docs /vercel/next.js "image optimization"

# Pipe into anything
c7 react hooks | pbcopy
c7 express middleware >> prompt.txt
c7 docs nextjs "api routes" | llm "summarize these docs"

Commands

Command Description
c7 resolve Find Context7 library IDs for a search term
c7 docs [topic] Get docs (auto-resolves name to best match)
c7 [topic] Shorthand for c7 docs

Options

Flag Description
--tokens Max tokens to return (default: 5000)
--api-key Context7 API key (or set CONTEXT7_API_KEY env)
--json Raw JSON output (resolve only)

API Key (optional)

Works without an API key for basic usage. For higher rate limits:

  1. Get a key at context7.com/dashboard
  2. Set it: export CONTEXT7_API_KEY=your-key

Use Cases

Feed docs into coding agents:

DOCS=$(c7 nextjs "app router middleware" --tokens 8000)
claude "Build a Next.js middleware that redirects. Use these docs:\n$DOCS"

Quick API lookup:

c7 prisma "findMany" --tokens 3000
GitHub에서 전체 README 보기

설치

npx @vedanth/context7 # Run directly (no install)
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →