Track MCP LogoTrack MCP
Track MCP LogoTrack MCP

The world's largest repository of Model Context Protocol servers. Discover, explore, and submit MCP tools.

Product

  • Categories
  • Top MCP
  • New & Updated
  • Submit MCP

Company

  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

© 2026 TrackMCP. All rights reserved.

Built with ❤️ by Krishna Goyal

    Get Mcp Keys

    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.

    10 stars
    JavaScript
    Updated Sep 13, 2025
    api
    credential-
    cursor
    devsecops
    dotenv
    key-management
    keys
    mcp-ser
    mcp-server
    nodejs
    secrets-management

    Table of Contents

    • The Problem
    • 💯 The Solution
    • ⚡ Quick Start
    • 1. Create a .mcprc file in your home directory
    • 3. Add your API keys to the file
    • 4. Update your MCP configuration to use get-mcp-keys
    • 🛡️ Security
    • 🧰 Supported MCP Servers
    • 🔍 How It Works
    • 📋 License

    Table of Contents

    • The Problem
    • 💯 The Solution
    • ⚡ Quick Start
    • 1. Create a .mcprc file in your home directory
    • 3. Add your API keys to the file
    • 4. Update your MCP configuration to use get-mcp-keys
    • 🛡️ Security
    • 🧰 Supported MCP Servers
    • 🔍 How It Works
    • 📋 License

    Documentation

    🔐 get-mcp-keys

    Stop accidentally committing API keys to your repos!

    The Problem

    When using Cursor AI (and other AI coding assistants) with MCP servers, you need API keys in your ./cursor/mcp.json file:

    json
    {
      "mcpServers": {
        "firecrawl": {
          "command": "npx",
          "args": [
            "-y",
            "firecrawl-mcp"
          ],
          "env": {
            "FIRECRAWL_API_KEY": "sk_live_ohno-this-should-NOT-be-in-git" // 💀
          }
        }
      }
    }

    This is a security nightmare waiting to happen. One accidental commit and your keys are exposed in your Git history.

    💯 The Solution

    get-mcp-keys loads your API keys from a secure file in your home directory, keeping them out of your repositories entirely.

    ⚡ Quick Start

    1. Create a .mcprc file in your home directory

    bash
    touch ~/.mcprc
    chmod 600 ~/.mcprc  # Make it readable only by you

    3. Add your API keys to the file

    bash
    # ~/.mcprc
    FIRECRAWL_API_KEY="your_actual_api_key_here"
    BRAVE_API_KEY="another_secret_key_here"
    # Add any other MCP server keys you use

    4. Update your MCP configuration to use get-mcp-keys

    json
    {
      "mcpServers": {
        "firecrawl": {
          "command": "npx",
          "args": [
            "@masonator/get-mcp-keys", // 🔐
            "npx",
            "-y",
            "firecrawl-mcp"
          ]
        }
      }
    }

    That's it! The get-mcp-keys utility will:

    • Load your API keys from ~/.mcprc
    • Inject them as environment variables
    • Run your MCP server command with the keys available

    🛡️ Security

    • Your API keys stay in your home directory
    • Keys are never committed to repositories
    • Keys are loaded only when needed
    • Debug output shows only first/last few characters of keys

    🧰 Supported MCP Servers

    Works with any MCP server that needs environment variables, including:

    • FireCrawl
    • Brave Search
    • Supabase
    • And any other MCP servers you configure!

    🔍 How It Works

    get-mcp-keys reads your .mcprc file, adds those environment variables to the current environment, and then executes whatever command you specify after it in the args list. It's simple yet effective!

    get-mcp-keys in action

    📋 License

    MIT

    ---

    ⭐ If this saved you from committing your keys, star the repo!

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k
    View All MCP Servers

    Similar MCP

    Based on tags & features

    • WA

      Waha Mcp

      JavaScript00
    • WI

      Wizzy Mcp Tmdb

      JavaScript00
    • ME

      Metmuseum Mcp

      TypeScript·
      14
    • RI

      Rijksmuseum Mcp

      JavaScript·
      59

    Trending MCP

    Most active this week

    • PL

      Playwright Mcp

      TypeScript·
      22.1k
    • SE

      Serena

      Python·
      14.5k
    • MC

      Mcp Playwright

      TypeScript·
      4.9k
    • MC

      Mcp Server Cloudflare

      TypeScript·
      3.0k