drio
Open app

🔐 get-mcp-keys

Source

A lightweight utility that securely loads API keys for Cursor MCP servers from your home directory, preventing accidental exposure of secrets in repositories. Keep your credentials safe while maintaining seamless integration with AI coding assistants.

Catalog onlyCatalog onlySTDIO

Overview

get-mcp-keys is a lightweight utility designed to securely load API keys for Cursor MCP servers from your home directory, preventing accidental exposure of secrets in repositories.

To use get-mcp-keys, create a .mcprc file in your home directory, add your API keys to this file, and update your MCP configuration to use the utility for loading keys.

  • Securely loads API keys from a hidden file in your home directory. - Prevents accidental commits of sensitive information to repositories. - Supports multiple MCP servers by injecting environment variables.
  1. Safeguarding API keys while using AI coding assistants.
  2. Ensuring secure integration with various MCP servers.
  3. Simplifying the management of sensitive credentials in development environments.

Add to your AI client

Use these steps to connect 🔐 get-mcp-keys in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "get-mcp-keys-stumason": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "get-mcp-keys-stumason": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "get-mcp-keys-stumason": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "get-mcp-keys-stumason": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "get-mcp-keys-stumason": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "get-mcp-keys-stumason": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-get-mcp-keys-stumason"
      ]
    }
  }
}

FAQ

Can get-mcp-keys be used with any MCP server?

Yes! It works with any MCP server that requires environment variables.

Is it safe to store my API keys in the `.mcprc` file?

Yes, as long as you set the correct permissions to restrict access to the file.

How does get-mcp-keys enhance security?

It keeps your API keys out of your repositories and loads them only when needed.