Setting Up MCP in Claude Code with Auth Headers
Adding MCP Servers with Authorization
Today I learned that you can configure MCP servers in Claude Code with http headers for authentication/authorization using the CLI:
claude mcp add \
  --scope user \
  --transport http \
  --header "Authorization: Bearer your-token" \
  my-mcp http://example.com/mcp;In this case I decided to use the scope user because I want that MCP being configured for all my projects.
Tweet