PulseAugur
EN
LIVE 14:48:23

Claude MCP command exposes API keys in plain text

A security vulnerability has been identified in the `claude mcp add` command, where API keys are exposed in plain text in two locations: shell history and the `~/.claude.json` configuration file. While a recent update to `claude mcp add-json` addresses the shell history issue by allowing configuration via stdin, the API key still persists in the configuration file. The recommended solution is to register a reference to an environment variable (e.g., `'NOTION_TOKEN=${NOTION_TOKEN}'`) instead of the actual API key, ensuring the key is not stored in plain text in either location. AI

IMPACT Exposes a security flaw in a specific AI tool, prompting users to secure their API keys.

RANK_REASON The item describes a security vulnerability in a specific command-line tool and provides a fix.

Read on dev.to — MCP tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude MCP command exposes API keys in plain text

How we ranked this

Signal score
27 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
The item describes a security vulnerability in a specific command-line tool and provides a fix.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, safety
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — MCP tag TIER_1 English(EN) · The Paste-Ready Engineer ·

    One claude mcp add saved my API key in plain text in two places

    <p><em>I searched my shell history for my Notion token. It was there three times. Then I opened ~/.claude.json and found it a fourth time.</em></p> <h2> TL;DR </h2> <ul> <li>If you pass an API key straight to <code>claude mcp add</code>, it ends up in plain text in two places: yo…