Back to Home
Kanak03-star icon

mcp-safe-run

Verified Safe

by Kanak03-star

Overview

Securely injects secrets from various sources (environment variables, files, OS keychains) into environment variables for launching other applications, particularly Model Context Protocol (MCP) servers.

Installation

Run Command
mcp-safe-run --target-env '{"API_KEY":"env:GH_TOKEN_FOR_MCP"}' npx -y @modelcontextprotocol/server-github

Security Notes

The project uses `keytar` for OS keychain integration, which is a standard secure practice for credentials. It reads environment variables and local files based on user-provided configuration or CLI input. While this functionality inherently allows access to sensitive data if the configuration or input is compromised, the tool itself does not contain obvious malicious patterns, 'eval' usage for untrusted input, or hardcoded secrets. The `spawn` function is used to execute the target command, which is generally safer than `exec`. The primary security consideration is ensuring the integrity of the configuration files (`.mcp-saferun.yaml` or `.mcp-saferun.yml`) and CLI arguments, as these dictate which secrets are accessed and injected into child processes.

Similar Servers

Stats

Interest Score33
Security Score8
Cost ClassLow
Avg Tokens1
Stars3
Forks1
Last Update2025-12-11

Tags

secrets managementsecurityCLI toolenvironment variableslauncher