Skip to main content
Glama

zerocreds-mcp

MCP server for ZeroCreds — collect credentials from users without exposing them to the LLM.

How it works

Claude                    ZeroCreds Server            User
  │                            │                        │
  ├─zerocreds_create_session──►│                        │
  │◄─{ token, url }────────────┤                        │
  │                            │                        │
  │  "Please fill: <url>"──────────────────────────────►│
  │                            │◄──── form submit ───────┤
  │                            │  (credentials saved)    │
  │                            │                        │
  ├─zerocreds_check_status─────►│                        │
  │◄─{ status: "done" }────────┤                        │
  │                            │                        │
  │  (proceeds — never saw the credentials)

Related MCP server: Coffer MCP

Setup

npm install -g zerocreds-mcp

Add to ~/.claude/mcp.json (Claude Code) or Claude Desktop config:

{
  "mcpServers": {
    "zerocreds": {
      "command": "zerocreds-mcp",
      "env": {
        "ZEROCREDS_URL": "https://zerocreds.ru",
        "ZEROCREDS_TOKEN": "your-admin-or-integrator-token",
        "ZEROCREDS_DEFAULT_DESTINATION": "local-dev",
        "ZEROCREDS_TG_BOT_TOKEN": "optional — sends link via Telegram",
        "ZEROCREDS_TG_CHAT_ID": "optional"
      }
    }
  }
}

Environment variables

Variable

Required

Description

ZEROCREDS_URL

no

Server URL (default: https://zerocreds.com)

ZEROCREDS_TOKEN

yes

Admin or integrator token

ZEROCREDS_DEFAULT_DESTINATION

no

Default destination name (default: local-dev)

ZEROCREDS_TG_BOT_TOKEN

no

Telegram bot token — auto-sends the link

ZEROCREDS_TG_CHAT_ID

no

Telegram chat ID

Tools

zerocreds_ensure_server

Ensures the ZeroCreds MCP server is running. If it is not already running, this tool starts it in the background and waits for it to become ready.

Parameters: None.

Returns:

{
  "status": "already_running | started | error | timeout",
  "pid": 12345,
  "message": "ZeroCreds MCP server is already running."
}

Use case: Call this before zerocreds_create_session if you are unsure the server is running. It is idempotent — calling it multiple times is safe.

zerocreds_create_session

Creates a one-time form session. Returns { token, url, expires_at }.

Claude shows url to the user, then polls zerocreds_check_status every 5–10 seconds.

Parameters:

  • title (required) — form heading

  • fields (required) — array of { name, label, type?, placeholder?, required?, level? }

  • description — optional subtext

  • destination — named destination from server config; overrides env default

  • ttl_minutes — link expiry (default: 30)

Field types: text, password, email, tel, number, textarea, url

Field levels (optional, shown to user as privacy indicator): secret · pii · attribute · credential

zerocreds_check_status

Polls session status. Returns { status: "pending" | "done" | "expired" }.

Example agent flow

User: "Log me into GitHub"

Claude: [zerocreds_create_session]
  title: "Connect GitHub"
  fields: [
    { name: "token", label: "Personal Access Token", type: "password" }
  ]
→ { token: "abc123", url: "https://zerocreds.ru/f/abc123" }

Claude: "Please fill in your token here: https://zerocreds.ru/f/abc123"

[polls zerocreds_check_status every 5s]
→ { status: "done" }

Claude: "GitHub connected! Proceeding..."
[reads token from secret store via configured destination]

Self-hosting

See zerocreds-server to run your own instance.

Scripts

Script

Description

scripts/ensure-server.sh

Starts the ZeroCreds MCP server if it is not already running. Idempotent.

scripts/health-check.sh

Verifies the server process is alive and the admin token file exists.

Run them from the repository root:

./scripts/ensure-server.sh
./scripts/health-check.sh

Or use the npm scripts:

npm run ensure-start
npm run health-check

License

MIT

Available Tools

3 tools
zerocreds_check_statusA

Checks whether the user has submitted the ZeroCreds form. Returns "pending" (still waiting), "done" (credentials saved successfully — you can now proceed), or "expired" (link timed out — create a new session if needed). Poll every 5–10 seconds after showing the URL to the user.

Inputs: token (required).

zerocreds_create_sessionA

Creates a ZeroCreds credential collection session. Returns a one-time URL for the user to enter their credentials — the values go directly to the secret store and NEVER appear in the LLM context. Use this whenever you need a password, API token, or any sensitive data from the user. After calling this, show the URL to the user, then poll zerocreds_check_status every 5–10 seconds until status is "done".

Inputs: title (required), fields (required), description, destination.

zerocreds_ensure_serverA

Ensures the ZeroCreds MCP server is running. Starts it if not already running. Returns server status and PID.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: starting the backing server, creating a credential-collection session, and checking session status. The descriptions make the lifecycle order explicit, so an agent should not confuse them.

    Naming Consistency5/5

    All tools use a consistent zerocreds_ prefix followed by a verb_noun pattern: create_session, check_status, ensure_server. The convention is predictable and readable.

    Tool Count5/5

    Three tools are well-scoped for this narrow secure-credential workflow. Each tool earns its place, and there is no unnecessary surface area.

    Completeness4/5

    The core workflow is covered: ensure the server is running, create a session, and poll status until credentials are saved or expired. Minor lifecycle gaps exist, such as no explicit cancel/revoke session or server shutdown operation, but agents can work around them.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Credential vault for LLM agents that stores credentials encrypted and exposes MCP tools for authenticated HTTP requests, web scraping, and credential management, preventing AI assistants from seeing secrets.
      Apache 2.0