Submit

envmcp

@griffithsbs

A lightweight way to use environment variables in your Cursor MCP server definitions.
Overview

What is envmcp?

envmcp is a lightweight tool designed to manage environment variables in Cursor MCP server definitions, allowing for secure handling of sensitive information.

How to use envmcp?

To use envmcp, create a .env.mcp file in your home directory to store your secrets, then prefix your stdio command with npx envmcp to reference the environment variables in your MCP configuration.

Key features of envmcp?

  • Simplifies the management of environment variables for MCP servers.
  • Allows for secure storage of sensitive information in a dedicated file.
  • Automatically loads environment variables from the nearest .env.mcp file.

Use cases of envmcp?

  1. Managing database connection strings securely.
  2. Running MCP servers with sensitive API keys without hardcoding them.
  3. Simplifying the configuration of multiple MCP servers with shared environment variables.

FAQ from envmcp?

  • How do I install envmcp?

You can install envmcp globally using npm with the command npm install -g envmcp.

  • What format should the .env.mcp file follow?

The .env.mcp file should follow the standard environment file format, with key-value pairs for each environment variable.

  • Can envmcp be used with any command?

Yes, envmcp can be used to run any command that requires environment variables.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.