# Context7

> 通过 Context7 MCP 搜索技术文档。「查文档」「查看官方文档」「库怎么用？」等触发。

- Skill: `wasabeef/context7-7` (Agent Skill)
- Install (CLI): `npx skillmds@latest add wasabeef/context7-7`
- Raw SKILL.md: https://api.skillmd.com/api/skills/wasabeef/context7-7/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: wasabeef (https://skillmd.com/u/wasabeef)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/wasabeef/context7-7

---


# 通过 Context7 MCP 搜索技术文档

使用 MCP 的 Context7 搜索技术文档。

## 使用方法

```bash
# 以请求 Claude 的形式
"用 context7 搜索 [搜索关键词]"
```

## 基本示例

```bash
# React hooks 调研
"用 context7 搜索 React hooks"

# 错误解决方法搜索
"用 context7 查找 TypeScript 的类型错误"
```

## 与 Claude 的协作

```bash
# 技术调研请求
"用 context7 查找 Rust 的所有权系统，并以初学者友好的方式解释"

# 错误解决请求
"用 context7 搜索 Python 的 ImportError 常见原因和解决方法"

# 最佳实践确认
"用 context7 查找 React 性能优化的最佳实践"
```

## 详细示例

```bash
# 从多个角度调研
"用 context7 从以下角度调研 GraphQL：
1. 基本概念和与 REST API 的区别
2. 实现方法和最佳实践
3. 常见问题和解决方法"

# 特定版本或环境的调研
"用 context7 搜索 Next.js 14 的新功能，重点说明 App Router 的使用方法"
```

## 注意事项

如果 Context7 找不到信息，Claude 会自动建议其他方法，如 Web 搜索等。

