--- title: MCP now accepts API key auth — no more daily re-logins description: Authenticate to TheirStack's MCP with an API key instead of OAuth so the connection never expires and your AI client stops asking you to re-log in. url: https://theirstack.com/en/product-updates/2026-05-22-mcp-api-key-auth --- Most MCP clients today don't refresh OAuth tokens transparently, so you end up re-logging in every day. Annoying when you're in the middle of a conversation with Claude or Cursor. Our [MCP server](/en/docs/mcp) now accepts a TheirStack [API key](/en/docs/api-reference/authentication) as a Bearer token on the same endpoint. Create one at [app.theirstack.com → API Keys](https://app.theirstack.com/settings/api-key). Keys don't expire until you revoke them, so the connection stays stable. The [MCP docs](/en/docs/mcp) now show both options side-by-side inside every client tab — Claude Code, Claude.ai, Cursor, VS Code, ChatGPT, Windsurf, Cline, Codex, Gemini CLI. Pick OAuth or API key per agent; your choice is remembered across tabs. ``` { "mcpServers": { "theirstack": { "url": "https://api.theirstack.com/mcp", "headers": { "Authorization": "Bearer " } } } } ``` OAuth still works — it's just no longer your only option.