KSM MCP Server for Keeper Secrets Manager

KSM MCP Server for Keeper Secrets Manager

keeper-mcp-golang-docker•bykeeper-security

An MCP server that lets AI agents manage Keeper Secrets Manager secrets, folders, and file attachments while protecting application credentials and requiring confirmation for sensitive operations.

License: Not specified•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Provides secret operations including listing, retrieving, searching, creating, updating, and deleting secrets.
  • •Supports folder management with listing, creating, and deleting folders.
  • •Handles file attachments within secrets, including uploading and downloading files.
  • •Includes utilities for generating passwords, retrieving TOTP codes, and checking server health.

BEST FOR

  • •Creating and organizing secrets in folders through an AI agent.
  • •Listing and retrieving secrets while keeping sensitive fields masked.
  • •Generating strong passwords and saving them to new records without exposing them to the AI.

ABOUT KEEPER-MCP-GOLANG-DOCKER

KSM MCP Server for Keeper Secrets Manager is cataloged as an MCP server attributed to keeper-security. An MCP server that lets AI agents manage Keeper Secrets Manager secrets, folders, and file attachments while protecting application credentials and requiring confirmation for sensitive operations. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for KSM MCP Server for Keeper Secrets Manager are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do sensitive operations require user confirmation?

Yes, operations such as creating, updating, or deleting secrets and folders, uploading files, and unmasking sensitive data require confirmation unless auto-approve is enabled.

Can the server run without creating local log files?

Yes, the --no-logs flag disables audit logging and prevents any local files from being created, useful for compliance, containerized, or read-only environments.

Upstream README

View this exact version on GitHub

README.md · eaf0f17b7c2a · Fetched 2026-11-13 13:51:43 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

KSM MCP Server - Secure AI Access to Keeper Secrets

KSM MCP is a Model Context Protocol (MCP) server that acts as a secure intermediary between AI language models (like Claude) and Keeper Secrets Manager (KSM). It allows AI agents to manage your KSM secrets-such as listing, creating, retrieving, and deleting records and folders-while protecting your KSM application credentials. Sensitive operations require user confirmation, ensuring you maintain control over your data.

Quick User Guide

  1. Get KSM Base64 Configuration:

    • Log into the Keeper Secrets Vault.
    • Navigate to your Secrets Manager, Application, then to the "Devices" tab.
    • Click "Add Device" and copy the base64-encoded configuration string provided (it usually starts with ewog...).

    Important: The base64 config contains your KSM application's credentials. Keep it secure and never commit it to version control.

  2. Configure Claude Desktop:

    • Open your Claude Desktop configuration file:
      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %APPDATA%\Claude\claude_desktop_config.json
      • Linux: ~/.config/Claude/claude_desktop_config.json
    • Add or update the ksm server entry as follows, replacing YOUR_BASE64_CONFIG_STRING_HERE with your actual base64 config:
    {
      "mcpServers": {
        "ksm": {
          "command": "docker",
          "args": [
            "run", "-i", "--rm",
            "-e", "KSM_CONFIG_BASE64=YOUR_BASE64_CONFIG_STRING_HERE",
            "keeper/keeper-mcp-server:latest"
          ]
        }
        // You might have other servers like "memory" here, leave them as is.
      }
    }
    
  3. Restart Claude Desktop:

    • The KSM server should now be available to Claude. The first time it connects, it will use the base64 config to start up.

Option 2: Using a Pre-compiled Binary

  1. Download the Binary:

    • Go to the KSM MCP Releases Page and download the appropriate binary for your operating system (e.g., ksm-mcp-darwin-amd64 for Intel Macs, ksm-mcp-windows-amd64.exe for Windows).
    • Make the binary executable (e.g., chmod +x ./ksm-mcp-darwin-amd64) and place it in a directory included in your system's PATH, or note its full path.
  2. Get KSM Base64 Configuration: (See step 1 in the Docker guide above)

    Important: The base64 config contains your KSM application's credentials. Keep it secure and never commit it to version control.

  3. Initialize KSM MCP Profile:

    • Open your terminal and run the init command, replacing YOUR_BASE64_CONFIG_STRING and choosing a profile name (e.g., default):
      /path/to/ksm-mcp init --profile default --config "YOUR_BASE64_CONFIG_STRING"
      
    • You will be prompted to set a protection password for your local profile store. Remember this password, as you'll need it if you restart the server manually or if it's configured to require it. For automated use with Claude, often the server is run in batch mode where this isn't prompted interactively.
  4. Configure Claude Desktop:

    • Open your claude_desktop_config.json file (see paths in Docker guide).
    • Add or update the ksm server entry, replacing /path/to/ksm-mcp with the actual path to your downloaded binary:
    {
      "mcpServers": {
        "ksm": {
          "command": "/path/to/ksm-mcp",
          "args": ["serve", "--profile", "default"] // Use the profile name you initialized
        }
        // ... other servers ...
      }
    }
    
  5. Restart Claude Desktop.

Capabilities (Available Tools)

The KSM MCP server provides the following tools to interact with Keeper Secrets Manager:

Secret Operations

  • list_secrets: List all accessible secrets (metadata only).
  • get_secret: Retrieve a specific secret (sensitive fields masked by default; unmasking requires confirmation).
  • search_secrets: Search secrets by title, notes, or other field content.
  • create_secret: Create a new secret (requires confirmation).
  • update_secret: Update an existing secret (requires confirmation).
  • delete_secret: Delete a secret (requires confirmation).

Folder Operations

  • list_folders: List all accessible folders.
  • create_folder: Create a new folder (requires confirmation; must specify a parent shared folder).
  • delete_folder: Delete a folder (requires confirmation; option to force delete non-empty folders).

File Management (within Secrets)

  • upload_file: Upload a file attachment to a secret (requires confirmation).
  • download_file: Download a file attachment from a secret.

Utilities

  • generate_password: Generate a secure password. Can optionally save directly to a new secret without exposing it to the AI.
  • get_totp_code: Get the current TOTP code for a secret that has TOTP configured.
  • get_server_version: Get the current version of the KSM MCP server.
  • health_check: Check the operational status of the MCP server and its connection to KSM.

Sample Use Cases

Here are some examples of how you might instruct an AI agent (like Claude) to use the KSM MCP server:

  • Create a new secret in a new folder: "Please create a new folder named 'Project Phoenix Shared' under our main 'KSM-MCP-TEST-RECORDS' shared folder. Then, inside 'Project Phoenix Shared', create a new login secret titled 'Phoenix Dev DB' with username 'phoenix_user', password 'ComplexP@$$wOrd123!', and URL 'db.phoenix.dev.internal'."

  • List secrets and retrieve one: "List all secrets in the 'API Keys' folder. Then, get the details for the secret titled 'Third-Party Analytics API Key', but keep the API key itself masked."

  • Delete a secret and then its folder (if empty): "Delete the secret named 'Old Staging Server Credentials'. Once that's done, if the 'Staging Environment' folder it was in is now empty, please delete that folder as well."

  • Upload a configuration file to an existing record: "I have a new Kubernetes config file for our production cluster at '~/Downloads/kubeconfig-prod.yaml'. Please upload this file to the KSM record titled 'Production K8s Cluster Access', and name the attachment 'kubeconfig-prod-cluster.yaml'."

  • Generate a secure password and save it to a new record: "Generate a very strong 32-character password with uppercase, lowercase, numbers, and special characters. Save it directly to a new login record titled 'Internal Audit Service Account' in the 'Service Accounts' folder. Do not show me the password."

  • Check configuration consistency across environments: "I have service configuration records organized in folders by environment (dev, qa) with subfolders for each AWS region. Please analyze these records and identify any inconsistencies between similar services across different environments. Pay particular attention to configuration values that should typically be the same across environments, such as logging levels, timeout settings, or feature flags."


Server Configuration Reference

The KSM MCP server can be instantiated in multiple ways with various configuration options. This section documents all available methods, flags, and environment variables.

Configuration Methods

{
  "mcpServers": {
    "ksm": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "KSM_CONFIG_BASE64=YOUR_BASE64_CONFIG_STRING",
        "keeper-mcp-server:latest"
      ]
    }
  }
}

Method 2: Pre-compiled Binary with Profile

{
  "mcpServers": {
    "ksm": {
      "command": "/path/to/ksm-mcp",
      "args": ["serve", "--profile", "default"]
    }
  }
}

Method 3: Pre-compiled Binary with Base64 Config (CLI Flag)

{
  "mcpServers": {
    "ksm": {
      "command": "/path/to/ksm-mcp",
      "args": [
        "serve",
        "--config-base64", "YOUR_BASE64_CONFIG_STRING"
      ]
    }
  }
}

Method 4: Pre-compiled Binary with Environment Variables

{
  "mcpServers": {
    "ksm": {
      "command": "/path/to/ksm-mcp",
      "args": ["serve"],
      "env": {
        "KSM_CONFIG_BASE64": "YOUR_BASE64_CONFIG_STRING"
      }
    }
  }
}

Method 5: Silent Mode (No Local Logs)

For environments where you want to prevent any local file creation (including audit logs):

{
  "mcpServers": {
    "ksm": {
      "command": "/path/to/ksm-mcp",
      "args": [
        "serve",
        "--no-logs",
        "--config-base64", "YOUR_BASE64_CONFIG_STRING"
      ]
    }
  }
}

The --no-logs flag completely disables audit logging, ensuring no local files are created. This is useful for:

  • Compliance environments where local file creation must be avoided
  • Containerized deployments where persistence isn't desired
  • Temporary or testing scenarios
  • Systems with read-only filesystems

Command Line Flags

FlagTypeDefaultDescription
--profilestring""Profile name to use from local storage
--config-base64string""Base64-encoded KSM configuration string
--batchbooleanfalseRun in batch mode (no password prompts, suitable for automated environments)
--auto-approvebooleanfalseAuto-approve all destructive operations without user confirmation (dangerous)
--timeoutduration30sRequest timeout duration
--log-levelstringinfoLog level (debug, info, warn, error)
--no-logsbooleanfalseDisable audit logging (no local files created)

Flag Details

--batch (Non-Interactive Mode)

  • Purpose: Prevents the server from prompting for passwords or user input
  • When to use:
    • Automated environments (CI/CD, Docker containers)
    • When running as a service where no human interaction is possible
    • Claude Desktop integration (recommended)
  • What it does:
    • Skips password prompts when loading encrypted profiles
    • Uses environment variables or CLI flags for all configuration
    • Fails gracefully if required input is missing instead of hanging

--no-logs (Silent Mode)

  • Purpose: Completely disables audit logging to prevent any local file creation
  • When to use:
    • Compliance environments where local artifacts must be avoided
    • Containerized or ephemeral deployments
    • Read-only filesystem environments
    • Testing scenarios where cleanup is important
  • What it does:
    • Prevents creation of ~/.keeper/ksm-mcp/logs/ directory
    • Disables all audit logging (access logs, error logs, system logs)
    • Maintains full MCP functionality without logging overhead
    • Safe operation with nil-check wrappers for all logging calls
  • Security: High - no sensitive data written to local files

--auto-approve (Dangerous)

  • Purpose: Bypasses user confirmation prompts for destructive operations
  • ⚠️ Security Warning: This is dangerous and should only be used in controlled environments
  • What operations normally require confirmation:
    • create_secret - Creating new secrets
    • update_secret - Modifying existing secrets
    • delete_secret - Deleting secrets
    • create_folder - Creating new folders
    • delete_folder - Deleting folders
    • upload_file - Uploading files to secrets
    • Unmasking sensitive data (passwords, API keys, etc.)
  • When you might use it:
    • Automated testing environments
    • Trusted AI agents in controlled scenarios
    • Bulk operations where manual confirmation isn't practical
  • Recommended alternative: Use the ksm_execute_confirmed_action tool for selective approval

Environment Variables

VariableTypeDefaultDescription
KSM_CONFIG_BASE64string""Base64-encoded KSM configuration string
KSM_MCP_CONFIG_DIRstring~/.keeper/ksm-mcpDirectory for profiles and logs
KSM_MCP_PROFILEstring""Default profile name to use

Configuration Priority

The server uses the following priority order for configuration:

  1. CLI Flag --config-base64 (highest priority)
  2. Environment Variable KSM_CONFIG_BASE64
  3. CLI Flag --profile with local profile storage
  4. Environment Variable KSM_MCP_PROFILE with local profile storage

Profile Management Commands

Why Use Profiles?

Profiles provide a secure way to store and manage KSM configurations locally without exposing sensitive credentials:

  • Security: Your base64 config contains sensitive KSM application credentials. Profiles encrypt and store these locally with password protection
  • Convenience: Once initialized, you only need to reference the profile name instead of passing the full base64 config each time
  • Multiple Environments: Manage different KSM applications (dev, staging, prod) with separate profiles
  • Credential Protection: Keeps sensitive data out of command lines, environment variables, and configuration files
  • Persistent Storage: Survives system restarts and doesn't require re-entering credentials

When to use profiles vs. direct config:

  • Use profiles for: Local development, persistent setups, multiple environments
  • Use direct config for: CI/CD, Docker containers, temporary usage, environments where local storage isn't desired

Initialize a New Profile

ksm-mcp init --profile PROFILE_NAME --config "BASE64_CONFIG_STRING"

This command:

  1. Takes your base64 KSM configuration
  2. Encrypts it with a password you provide
  3. Stores it locally in ~/.keeper/ksm-mcp/profiles/
  4. Allows future use with just --profile PROFILE_NAME

List Available Profiles

ksm-mcp profiles list

Delete a Profile

ksm-mcp profiles delete --profile PROFILE_NAME

Security Considerations

MethodSecurity LevelUse Case
Docker with env varsHighProduction, CI/CD
Binary with profileHighLocal development, persistent setup
Binary with CLI flagMediumTesting, temporary usage
Binary with env varsHighProduction, containerized environments
Silent modeHighCompliance, no local artifacts

Troubleshooting

Common Issues

  1. "No active session" error: Ensure you have either:

    • A valid --profile flag pointing to an initialized profile
    • A valid --config-base64 flag or KSM_CONFIG_BASE64 environment variable
  2. "Failed to create log directory" warnings: Use --no-logs flag to disable local logging

  3. Permission denied errors: Ensure the binary has execute permissions and the config directory is writable

Debug Mode

Enable debug logging for troubleshooting:

ksm-mcp serve --log-level debug --profile your-profile

Examples

Development Setup

# Initialize profile
ksm-mcp init --profile dev --config "ewogICJob3N0bmFtZSI6..."

# Run server
ksm-mcp serve --profile dev --log-level debug

Production Setup (Docker)

docker run -i --rm \
  -e KSM_CONFIG_BASE64="ewogICJob3N0bmFtZSI6..." \
  keeper-mcp-server:latest

CI/CD Setup (No Local Files)

export KSM_CONFIG_BASE64="ewogICJob3N0bmFtZSI6..."
ksm-mcp serve --no-logs --batch --timeout 60s

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for KSM MCP Server for Keeper Secrets Manager from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/keeper-mcp-golang-docker)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets