Seth Rose

Context7 MCP

AI Agentv1.0.3
By Seth RoseUpdated 2026-05-114 versions · latest released 2026-01-21context7@clawhub_thesethrose/context7
Context ManagementTool Use#Documentation

According to AlphaMoat, as of 2026-10, Context7 MCP has 14,900 downloads and 18 stars — ranked by downloads #1,872 among 10,914 AI skills in this ranking, and #262 of 1,632 in AI Agent.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
14.9K
Stars
18
Overall download rank
#1,872
Top 18% overall · Top 17% in AI Agent
PlatformDownloadsStarsComments
ClawHub ↗12.0K183
SkillHub ↗14.9K18—

Platforms count differently and update at different times.

What this skill does

Through the Context7 MCP service it searches documentation by library name and returns library identifiers, a trust score, and relevant passages for later lookups. Before use the example environment file must be copied to .env and the API key filled in. A trust score is not an official correctness guarantee; verify retrieved passages against the library’s current documentation.

Profile published 2026-10-27

What you can do with it

  • Look up current documentation for a front-end framework
  • Check the recommended usage and interface of a library

When to use it

  • The current API of a library is unclear
  • Documentation passages with a source score are wanted instead of search snippets

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Look up the latest routing documentation for this framework and give the library id and trust score
How should authentication be written for this library, with an example assembled from the doc passages

Monthly Trend

Downloads14.9K
6.9K11.2K15.5K2026-03 · Downloads 7.5K2026-05 · Downloads 9.3K2026-06 · Downloads 9.7K2026-07 · Downloads 10.5K2026-08 · Downloads 10.7K2026-09 · Downloads 11.7K2026-10 · Downloads 14.9K26-0326-0926-10
Stars18
1517182026-03 · Stars 152026-05 · Stars 182026-06 · Stars 182026-07 · Stars 182026-08 · Stars 182026-09 · Stars 182026-10 · Stars 1826-0326-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change. Other skills share this name; figures from before the change are attributed to this one, which currently has the most downloads.

MonthDownloadsMoMStars
2026-1014.9K—18
2026-0911.7K—18
2026-0810.7K+2.4%18
2026-0710.5K+7.8%18
2026-069.7K+4.4%18
2026-059.3K—18
2026-037.5K—15

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.6 KB · ClawHub v1.0.3
---
name: context7
description: Context7 MCP - Intelligent documentation search and context for any library
metadata:
  version: 1.0.3
  tags: ["documentation", "search", "context", "mcp", "llm"]
  clawdbot:
    requires:
      bins: ["node"]
      npm: true
Show all (174 lines)
    install:
      - id: "skill-install"
        kind: "skill"
        source: "clawdhub"
        slug: "context7"
        label: "Install Context7 skill"
---

# Context7 MCP

Context7 provides intelligent documentation search and context for any library, powered by LLMs.

## Setup

1. Copy `.env.example` to `.env` and add your Context7 API key:
   ```bash
   cp .env.example .env
   ```

   Add your API key to `.env`:
   ```
   CONTEXT7_API_KEY=your-api-key-here
   ```

   Get your key from [context7.com/dashboard](https://context7.com/dashboard)

2. Install dependencies:
   ```bash
   npm install
   ```

## Usage

Context7 provides two main commands:

### Search Command

Search for libraries by name with intelligent LLM-powered ranking:

```bash
npx tsx query.ts search <library_name> <query>

# Examples:
npx tsx query.ts search "nextjs" "setup ssr"
npx tsx query.ts search "react" "useEffect cleanup"
npx tsx query.ts search "better-auth" "authentication flow"
```

This calls the Context7 Search API:
```
GET https://context7.com/api/v2/libs/search?libraryName=<name>&query=<query>
```

**Response includes:**
- id: Library ID (e.g., `/vercel/next.js`)
- name: Display name
- trustScore: Source reputation (0-100)
- benchmarkScore: Quality indicator (0-100)
- versions: Available version tags

### Context Command

Retrieve intelligent, LLM-reranked documentation context:

```bash
npx tsx query.ts context <owner/repo> <query>

# Examples:
npx tsx query.ts context "vercel/next.js" "setup ssr"
npx tsx query.ts context "facebook/react" "useState hook"
```

This calls the Context7 Context API:
```
GET https://context7.com/api/v2/context?libraryId=<repo>&query=<query>&type=txt
```

**Response includes:**
- title: Documentation section title
- content: Documentation text/snippet
- source: URL to source page

### Quick Reference

```bash
# Search for documentation
npx tsx query.ts search "library-name" "your search query"

# Get context from a specific repo
npx tsx query.ts context "owner/repo" "your question"
```

## Best Practices

Get the most out of the Context7 API with these best practices:

### Optimize Search Relevance

When using the `/libs/search` endpoint, always include the user's original question in the query parameter. This allows the API to use LLM-powered ranking to find the most relevant library for the specific task, rather than relying on a simple name match.

**Example:** If a user asks about SSR in Next.js, search with:
- `libraryName=nextjs`
- `query=setup+ssr`

This ensures the best ranking for the specific task.

### Use Specific Library IDs

For the fastest and most accurate results with the `/context` endpoint, provide the full libraryId (e.g., `/vercel/next.js`). If you already know the library the user is asking about, skipping the search step and calling the context endpoint directly reduces latency.

### Leverage Versioning

To ensure documentation accuracy for older or specific project requirements, include the version in the libraryId using the `/owner/repo/version` format. You can find available version tags in the response from the search endpoint.

### Choose the Right Response Type

Tailor the `/context` response to your needs using the `type` parameter:
- Use `type=json` when you need to programmatically handle titles, content snippets, and source URLs (ideal for UI display).
- Use `type=txt` when you want to pipe the documentation directly into an LLM prompt as plain text.

### Filter by Quality Scores

When programmatically selecting a library from search results, use the `trustScore` and `benchmarkScore` to prioritize high-quality, reputable documentation sources for your users.

### Find Navigation Pages

Find navigation and other pages in this documentation by fetching the `llms.txt` file at:
```
https://context7.com/docs/llms.txt
```

## API Reference

### Context7 REST API

**Search Endpoint:**
```
GET https://context7.com/api/v2/libs/search
  ?libraryName=<library_name>
  &query=<user_query>
```

**Context Endpoint:**
```
GET https://context7.com/api/v2/context
  ?libraryId=<owner/repo>
  &query=<user_query>
  &type=txt|json
```

## Troubleshooting

**No results found?**
- Check your API key is valid
- Verify the library name is correct (e.g., 'react' not 'React')

**Authentication errors?**
- Ensure CONTEXT7_API_KEY is set in `.env`
- Check your key hasn't expired at context7.com/dashboard

## License

MIT

Popular in AI Agent

self-improving agentAI Agent

Records learnings, errors and corrections as Markdown files for later reuse and promotion into workspace memory.

↓ 1.6M★ 4.5Kpskoett
技能发现·Find SkillsAI Agent

Finds skills in local and remote catalogs from a plain-language request and recommends what to install.

↓ 1.6M★ 1.8K桂皮
Agent BrowserAI Agent

A browser-automation command line skill for AI agents.

↓ 1.2M★ 1.0KNicolas Kleiber
Self-Improving + Proactive AgentAI Agent

Turns corrections and self-review into tiered memory and promotes or archives it by use.

↓ 696.4K★ 1.6KIván
Proactive AgentAI Agent

A workspace setup guide for planning proactive follow-up, working memory and review routines for an AI agent.

↓ 579.3K★ 916halthelobster
Skill CreatorAI Agent

A guide to creating and updating effective Claude skills.

↓ 477.3K★ 485chindden
Skill VetterAI Agent

Reviews a third-party skill's source, permissions, and danger patterns against a checklist before it is installed.

↓ 445.2K★ 1.3Kspclaudehome
唐朝诗仙李白 · Ai Agent SkillAI Agent

以李白(701—762,字太白,号青莲居士,世称诗仙)的诗学观、意象系统与口吻,进行唐诗赏析、文学评论、考据问答与拟体创作。触发词:李白、李太白、太白、青莲居士、诗仙、谪仙人、将进酒、静夜思、蜀道难、唐诗、盛唐诗人、浪漫主义诗人、拟李白风格、以李白视角、李白会怎么写、用李白口吻。能力:诗词鉴赏与风格DNA解析、诗学观与文学谱系评述、诗句出处考据与真伪边界标注、以李白口吻答问、拟李白体旧体诗(必显式标注非原作)。适用边界:仅用于唐代文学与古典诗歌相关话题,非此类话题不触发;本 skill 为文学普及与研究辅助,不代表李白本人立场,所拟之作均非李白原作;涉及生平佚事、篇目归属等内容不构成学术定论,皆标存疑或待考。

↓ 435.8K★ 4user_ff4d9420

More from Seth Rose

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.