Back to Home
Kanak03-star icon

mcp-safe-run

Verified Safe

by Kanak03-star

Overview

Securely launches Model Context Protocol (MCP) servers by dynamically resolving and injecting sensitive credentials (secrets) from various sources (environment, files, OS keychain) into the server's environment.

Installation

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

Security Notes

The server's primary function is to resolve and inject secrets into a child process's environment. It uses `keytar` for secure OS keychain integration, which is a robust practice. `env:` placeholders read from process environment variables, and `file:` placeholders read from specified file paths. The main security consideration lies in the trustworthiness of the configuration inputs (YAML files or `--target-env` CLI argument). If these inputs are compromised, `file:` placeholders could be used to exfiltrate local files, or a malicious `targetCommand` could be executed by the child process. The tool itself does not contain `eval()` or other direct arbitrary code execution vulnerabilities in its parsing or resolution logic, making it safe when its configuration inputs are trusted.

Similar Servers

Stats

Interest Score35
Security Score8
Cost ClassLow
Avg Tokens1
Stars5
Forks1
Last Update2026-01-19

Tags

SecurityCLISecrets ManagementNode.jsConfigurationLauncher