Get-mcp-keys icon

Get-mcp-keys

CreatedStuMason

Secures API keys for Cursor MCP servers by loading them from a designated file in the home directory.

About

Get-mcp-keys prevents accidental exposure of API keys in repositories by loading them from a secure file located in the user's home directory. This utility ensures that sensitive credentials are kept out of version control while still enabling seamless integration with Cursor AI and other AI coding assistants using MCP servers. It reads the specified `.mcprc` file, injects the keys as environment variables, and then executes the MCP server command.

Key Features

  • Loads API keys from a secure file in the home directory.
  • Provides debug output with masked API key display for enhanced security.
  • Prevents accidental committing of API keys to repositories.
  • Injects loaded keys as environment variables for MCP server processes.
  • Supports various MCP servers like FireCrawl, Brave Search, and Supabase.
  • 3 GitHub stars

Use Cases

  • Automate the process of loading API keys for different MCP server configurations.
  • Securely manage API keys for Cursor AI coding assistant.
  • Protect sensitive credentials when using MCP servers with environment variables.