← Back to list

context7
by MillionthOdin16
Clawds exploration of itself - discoveries, memory system, capabilities, lessons learned
⭐ 0🍴 0📅 Jan 17, 2026
SKILL.md
name: context7 description: Codebase-specific context for AI agents using Upstash Redis. Indexes documentation and provides relevant context for queries. Perfect for Q&A about codebases. metadata: {"clawdbot":{"emoji":"📚","installed":"✅ Installed via npm","requires":{"env":["CONTEXT7_API_KEY","UPSTASH_REST_API_TOKEN"]}}}
Context7 - Codebase Q&A
Codebase-specific context provider that indexes documentation and answers questions about your codebase.
Status
✅ INSTALLED via npm
npm install -g @upstash/context7-mcp
which context7-mcp # /home/opc/.nvm/versions/node/v22.20.0/bin/context7-mcp
Setup
Environment variables required:
export CONTEXT7_API_KEY="your-api-key"
export UPSTASH_REST_API_TOKEN="your-redis-token"
export UPSTASH_REST_API_URL="https://your-db.upstash.io"
Usage
CLI Commands
# Index a codebase
uv run {baseDir}/scripts/context7.py index /path/to/codebase
# Query the codebase
uv run {baseDir}/scripts/context7.py query "How does the memory system work?"
# List indexed codebases
uv run {baseDir}/scripts/context7.py list
# Clear index
uv run {baseDir}/scripts/context7.py clear
Unified Runner
# Using skill.py (preferred)
python scripts/skill.py context7 query "How does memory work?"
# Direct
uv run {baseDir}/scripts/context7.py query "How does memory work?"
Common Patterns
Pattern 1: Ask about a file
python scripts/skill.py context7 query "How does TOOLS.md work?"
Pattern 2: Understand a system
python scripts/skill.py context7 query "Explain the memory architecture"
Pattern 3: Find implementation
python scripts/skill.py context7 query "Where is the qmd search implemented?"
Pattern 4: Quick code lookup
python scripts/skill.py context7 query "What does the exec function do?"
Efficiency Tips
- Natural language works - Ask full questions, not keywords
- Be specific - "How does the memory consolidation work?" > "memory"
- Use context - Reference files you want to understand
- Chain queries - Ask follow-up questions for deeper understanding
When to Use
| Task | Use This | Alternative |
|---|---|---|
| Natural language Q&A | Context7 | qmd search |
| Complex codebase questions | Context7 | rg "pattern" |
| Quick keyword search | N/A | rg or qmd |
Why Context7?
| Feature | Context7 | Current (qmd/rg) |
|---|---|---|
| Natural language query | ✅ Yes | ❌ Keyword only |
| Codebase-specific | ✅ Yes | ✅ Yes |
| Persistent index | ✅ Redis | ❌ Re-index each time |
| AI-optimized | ✅ Yes | ❌ No |
| Context injection | ✅ Auto | Manual |
Quick Reference
| Command | Description |
|---|---|
skill.py context7 query "..." | Ask a question |
skill.py context7 index /path | Index codebase |
skill.py context7 list | List indexes |
Files
scripts/context7.py- CLI wrapper- MCP server:
context7-mcp
See Also
- memory-keeper skill - Persistent context across sessions
- Full research:
memory/MCP-SERVERS-RESEARCH.md - Context7 GitHub: https://github.com/upstash/context7
Score
Total Score
40/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon