Envmcp icon

Envmcp

Injects environment variables into Cursor MCP server definitions.

About

Envmcp allows you to securely manage and utilize environment variables within your Cursor MCP server configurations. Instead of hardcoding sensitive information like API keys or database connection strings directly into your configuration files, envmcp loads these variables from an environment file (either a specified file or a `.env.mcp` file in the user's home directory). This separation of configuration and secrets enhances security and simplifies deployment across different environments, making your MCP server configurations more maintainable and robust.

Key Features

  • Loads environment variables from a .env.mcp file
  • Simplifies secret management for Cursor IDE
  • Supports specifying a custom environment file path
  • Replaces environment variables in MCP server definitions
  • Searches for .env.mcp in current and parent directories, then user's home directory
  • 3 GitHub stars

Use Cases

  • Managing API keys for MCP servers
  • Securing database connection strings in MCP configurations
  • Deploying MCP servers across different environments with varying configurations
Craft Better Prompts with AnyPrompt