API Key Case logo

API Key Case

Local MCP tools for scanning projects, checking secret status, and deploying registered keys without exposing values to the agent.

Install API Key Case

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "api-key-case": {
      "command": "npx",
      "args": [
        "-y",
        "api-key-case",
        "mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio api-key-case -- npx -y api-key-case mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y api-key-case mcp

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

API Key Case provides local MCP tools for secret registration, status checks, project scanning, and guarded deployment. Secret values are entered through hidden prompts or a separate human-controlled dialog and remain in the OS secret store; agents receive status and operation results instead. It supports destinations including Cloudflare, Vercel, and GitHub, with deployment requiring Pro. Reach for it when an AI coding agent needs registered API keys without receiving the key contents.

Use cases

  • Scan a project for likely secret names without reading real .env values
  • Register an API key through a hidden prompt or human approval dialog
  • Check whether a project secret is registered before continuing
  • Prepare guarded deployment to Cloudflare, Vercel, or GitHub
  • Review deployment history without exposing current secret values

Key features

  • Redacted project scanning and agent reports
  • OS secret-store registration
  • Human-controlled secret input
  • Closed status and next-action responses
  • Guarded provider deployment
  • Project-specific agent instruction setup

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

13/13 checks healthy over the last 52d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · api-key-case (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1.3kPackage downloads in the last 30 days.
Last commit22d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How API Key Case works

What API Key Case does

API Key Case lets an AI coding agent work with registered API keys while keeping the values outside agent messages, reports, and status responses. It stores secrets through a local OS secret store and exposes metadata such as registration state, project setup, readiness, and operation results.

The server covers two related workflows. The basic commands scan a project, produce redacted agent context, save a named secret, and check whether that secret is registered. The agent-first workflow can initialize project instructions, identify missing registrations, request human input, prepare a destination, and summarize results. Supported deployment destinations include Cloudflare, Vercel, and GitHub.

How it works

A person enters a value through a hidden terminal prompt or, for agent-first requests, a separate Human Plane dialog. The agent can request actions such as save <NAME> --ask, but the value is entered outside the agent-facing channel. Responses contain names, statuses, readiness information, and next actions rather than secret values, partial values, hashes derived from values, or value lengths.

Project scanning can inspect .env.example and common JavaScript or TypeScript references without reading real .env contents. Existing .env values can be registered manually, but the original file is not deleted, synchronized, replaced, or otherwise modified. The workflow keeps registration separate from remote deployment and rechecks deployment boundaries before execution.

Setup and configuration

Node.js 20 or later is required on Windows, macOS, or Linux. Basic commands can be run with npx:

Terminal
npx -y api-key-case@latest scan .
npx -y api-key-case@latest scan . --agent-report
npx -y api-key-case@latest save OPENAI_API_KEY
npx -y api-key-case@latest check OPENAI_API_KEY

For an agent-first project workflow, initialize the repository and inspect the next action:

sh
api-key-case agent-init .
api-key-case next --json .
api-key-case save OPENAI_API_KEY --ask
api-key-case history --json .

agent-init writes only within its managed project block, preserves other content, rejects symlinks and junctions, and does not change global or MCP configuration. It can target project instructions for Agents, Claude, or Cursor.

Tools and capabilities

  • Scan a project and generate redacted agent context.
  • Save and check one registered value per project and secret name in the legacy workflow.
  • Initialize project-specific agent instructions and check for drift without writing.
  • Report setup counts, readiness, host requirements, and closed next-action states.
  • Open sequential human-controlled input prompts for missing registrations.
  • Check deployment history without exposing current secret values.
  • Prepare and execute supported provider deployment when the required plan and approvals are available.

Limitations and notes

Deployment is a Pro feature. Provider login, key issuance, license activation, and operating-system verification remain human prerequisites. On Windows, high-risk approval, removal, and trust-forgetting require Windows 11 build 22000 or later with Windows Hello configured; otherwise those decisions fail closed while scanning, vault operations, and secret input remain available.

The Windows 11 and Windows Hello workflow is the normal Agent-first baseline. macOS has implementation and Keychain evidence, but native GUI approval, Intel hardware, and real-Mac provider deployment remain under verification. Linux supports local diagnosis, status and history, and human-owned-terminal storage when an OS store is available; agent-first input, approval, executing deployment, and approval-required removal are not provided.

Cloudflare Agent-first deployment stops under the tool's safety conditions when a Wrangler project contains a real .env, .env.*, .dev.vars, or .dev.vars.* file. .env.example is excluded from that check. API Key Case does not alter these files, and local registration remains available.

Never place a real secret in a command argument, issue, chat message, or generated report. Review generated files before sharing them; the tool reduces accidental exposure risk but does not guarantee complete secret protection.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about API Key Case

API Key Case is an MCP server that connects an AI coding agent to locally stored secrets and supported Cloudflare, Vercel, and GitHub destinations. Its main tools scan projects, save values through hidden or human-approved prompts, check registration status, report next actions, and perform guarded deployment without returning secret values.

Run it with Node.js 20 or later using commands such as `npx -y api-key-case@latest scan .` or `npx -y api-key-case@latest check OPENAI_API_KEY`. Agent-first projects can be initialized with `api-key-case agent-init .`, followed by the returned protocol.

Yes, API Key Case supports Cursor project instructions through `agent-init . --host cursor`. The README also names Claude Code and Codex as compatible coding agents. The generated project instructions manage the agent-facing protocol while secret values stay in the human-controlled input flow.

No, the scanner does not read real `.env` contents. It recognizes `.env.example` and common JavaScript or TypeScript references, while existing values must be copied manually by the owner into the Human Plane. The original `.env` file is not changed.

API Key Case supports Cloudflare, Vercel, and GitHub destinations. Deployment is a Pro feature and also depends on provider login, key issuance, plan activation, host support, and required human approvals. Local secret registration remains separate from remote deployment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAPI Key Case AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/api-key-case?style=directory)](https://allmcps.com/mcp/api-key-case)
HTML Embed
<a href="https://allmcps.com/mcp/api-key-case"><img src="https://allmcps.com/api/badge/api-key-case?style=directory" alt="API Key Case on AllMCPs" /></a>