What is get-mcp-keys: Secure API Access & Repo Safety?
get-mcp-keys is a utility designed to eliminate the risk of exposing sensitive API keys in version control systems. Traditional workflows store credentials directly in project files like ./cursor/mcp.json
, leaving them vulnerable to accidental commits. This tool shifts security responsibility to a dedicated, encrypted configuration file in your home directory, ensuring repositories remain free of secrets while maintaining seamless access during development.
How to use get-mcp-keys: Secure API Access & Repo Safety?
- Create a secured configuration file:
touch ~/.mcprc
followed bychmod 600 ~/.mcprp
ensures only your user account can access it. - Populate credentials: Add environment variables like
FIRECRAWL_API_KEY="your_actual_key"
to the file, organizing multiple services in one centralized location. - Modify MCP server configurations: Inject
@masonator/get-mcp-keys
at the start of yourmcpServers
command chain to trigger credential injection before executing the original command.