MCP OAuth tokens sit in plaintext on Linux

Anthropic’s MCP documentation says authentication tokens are “stored securely”. On Linux that currently means a plain JSON file, ~/.claude/.credentials.json, protected by file permissions and nothing more.
A write-up from the SecretSpec project checked Claude Code 2.1.257 after authenticating to several remote MCP servers. The file had mode 0600, as it should, but it also carried a top-level mcpOAuth object holding the access tokens.
Codex documents auto, file and keyring backends for MCP OAuth storage, where mcp_oauth_credentials_store = “keyring” picks the system keyring. Claude Code’s public repository doesn’t include the core CLI implementation and its license is all rights reserved.
Up next
A $2 model ranks second on Code Arena
Qwen3.8-Max-0902 took the second slot on Code Arena’s coding board with a 1688 rating, trailing the top Anthropic entry at 1765 while charging $2 per million input tokens against its $10.
Related stories
- Claude telemetry: 4% of sessions ran up 65% of the bill
- Local MCP servers run outside Claude’s VM sandbox
- Tainted Claude Code build stayed in Cursor, Microsoft finds
- Claude Code env var lifts its last block on rm -rf ~
- Claude Code hashes files for Anthropic even on DeepSeek
- Anthropic open-sources Claude Code’s sandbox runtime
Comments
No comments yet. Be the first.
Join the conversation
Sign in to leave a comment. It appears after moderation.

