Bearer Token
Bearer auth is the simplest remote auth setup.
{ "servers": { "apify": { "transport": "streamable-http", "url": "https://mcp.apify.com/mcp", "auth": { "type": "bearer", "token": "${APIFY_TOKEN}" } } }}${VAR}expansion is supported in token values- Auth headers merge with custom headers; auth values win on conflicts
- Keep token in
.env, never directly in config files committed to git
See Custom Headers and OAuth2.