# setup-context7-mcp

This skill walks the agent through setting up the Context7 MCP server and writes the library IDs into CLAUDE.md so code follows current docs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1100 installs · ★ 1787
- Author: NeoLabHQ
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/setup-context7-mcp/SKILL.md
- Updated: 2026-08-26
- HTML: https://affpapa.org/en/nevibecode/skills/setup-context7-mcp

## What it does

First the skill asks where the configuration should live: a shared `./CLAUDE.md` tracked in git, a personal `./CLAUDE.local.md`, or a global `~/.claude/CLAUDE.md` for every project. That choice drives the rest of the run, so decide early whether your team needs the same settings.

Next the agent checks whether the Context7 MCP server responds. If it does not, the skill pulls the context7 README and guides you through setup for your agent and OS. It also parses whatever arguments you passed. Leave them empty and the agent inspects the project structure and technologies itself; on an empty project it asks you to list the languages and frameworks you plan to use.

At the end a block with recommended library IDs and short descriptions lands in CLAUDE.md. If `./CLAUDE.local.md` is missing from `.gitignore`, the skill tells you to add it — otherwise your personal settings get committed.

## Requirements
- Works with: Context7

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-context7-mcp -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/setup-context7-mcp/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/setup-context7-mcp/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-context7-mcp -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/setup-context7-mcp/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-context7-mcp -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/setup-context7-mcp/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install NeoLabHQ/context-engineering-kit setup-context7-mcp
```

2. **Manually: put the files in place**
- File: `.github/skills/setup-context7-mcp/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-context7-mcp -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/NeoLabHQ/context-engineering-kit --path skills/setup-context7-mcp
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/setup-context7-mcp/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add NeoLabHQ/context-engineering-kit --skill setup-context7-mcp -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/NeoLabHQ/context-engineering-kit/tree/HEAD/skills/setup-context7-mcp/SKILL.md

## When to use it
- connect the Context7 MCP server to your agent
- pick where config lives: project or global
- collect the project's libraries for documentation lookup
- write recommended doc IDs into CLAUDE.md
- keep the local settings file out of git

## Example prompts
- set up Context7 MCP for this project
- add react and fastapi docs to CLAUDE.md via context7
- check if Context7 MCP is available and install it if not

## Similar
- [context7](https://affpapa.org/en/nevibecode/skills/context7.md) — skill · 11200 installs
- [context7-cli](https://affpapa.org/en/nevibecode/skills/context7-cli.md) — skill · 7800 installs
- [Context7-Expert](https://affpapa.org/en/nevibecode/agents/context7-expert.md) — subagent · ★ 40418
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [documentation-lookup](https://affpapa.org/en/nevibecode/skills/documentation-lookup.md) — skill · 4700 installs
- [microsoft-docs](https://affpapa.org/en/nevibecode/skills/github-microsoft-docs.md) — skill · 14881 installs

From the same set: [neolabhq/context-engineering-kit](https://affpapa.org/en/nevibecode/by/neolabhq/context-engineering-kit.md) — 64 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
