Skip to content

Instantly share code, notes, and snippets.

@0xSG
Created October 10, 2025 07:30
Show Gist options
  • Select an option

  • Save 0xSG/8f5824dea536805aec8352b3eaaa8e85 to your computer and use it in GitHub Desktop.

Select an option

Save 0xSG/8f5824dea536805aec8352b3eaaa8e85 to your computer and use it in GitHub Desktop.
A quick guide on properly configuring MCP (Model Context Protocol) servers in Claude Code with user-level scope.

Adding MCP Servers to Claude Code at User Level

Quick Command

claude mcp add <server-name> --scope user -- <command>

Or short form:

claude mcp add <server-name> -s user -- <command>

Example: Context7

claude mcp add context7 -s user -- npx -y @upstash/context7-mcp --api-key <your-api-key>

Scope Options

  • -s user - Available across all projects
  • -s project - Stored in project's .mcp.json
  • -s local - Default, current project only

Manage Servers

# List all MCP servers
claude mcp list

# Remove a server
claude mcp remove <server-name> -s user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment