Context7
MCP servers · in Claude Code setup

Context7 for Claude Code setup

Live documentation in the Claude Code setup stack. Fixes the most common failure: writing code against an API as it existed in the training data. One MCP server, free, and it removes a whole class of confident wrong answers.

· today
Where Context7 fits in the workflow
  1. 2
    MCP servers, so it stops guessing

    MCP servers give the agent access to things outside your codebase. Scope decides who gets them: --scope local is the default and applies only to you in this project, --scope user follows you into every project, and --scope project writes .mcp.json at the repo root so your team inherits it on clone. For stdio servers the -- separator is mandatory, otherwise the flags are read as arguments to the server.

    Prompt · Add the three worth having
    # Live docs, everywhere you work
    claude mcp add --transport http --scope user context7 https://mcp.context7.com/mcp
    
    # Your database, shared with the team via .mcp.json
    claude mcp add --transport http --scope project supabase https://mcp.supabase.com/mcp?project_ref={{your_ref}}
    
    # A stdio server: note the -- before the command
    claude mcp add --transport stdio --scope user airtable -- npx -y airtable-mcp-server
    
    claude mcp list
Cost in this stack
$0
Of the $20/mo solo, open source budget
Tool pricing
Free
Other tools in the Claude Code setup stack
Other stacks using Context7
See the full Claude Code setup stack
Workflow, costs at three usage tiers, prompts, pitfalls.
Spotted something off?
Wrong price, dead link, stale tool — anything. We review every fix.
Suggest a fix to this tool