Sponsored by Deepsite.site

🌍 envmcp: Simplifying Environment Variables for Cursor MCP Servers

Created By
dfhgnh43terg8 months ago
A lightweight way to use environment variables in your Cursor MCP server definitions.
Content

🌍 envmcp: Simplifying Environment Variables for Cursor MCP Servers

GitHub release

Welcome to envmcp, a lightweight solution for managing environment variables in your Cursor MCP server definitions. This tool helps streamline the process of handling configuration settings, credentials, and secrets, making it easier to manage your server environments.

📦 Table of Contents

🚀 Features

  • Lightweight: Minimal overhead for quick setup and use.
  • Easy Configuration: Simple syntax for defining environment variables.
  • Secure Secret Management: Keep your credentials safe and organized.
  • Integration with Cursor: Seamless use within Cursor MCP servers.
  • Support for Multiple Environments: Manage different configurations for development, testing, and production.

💻 Installation

To get started with envmcp, download the latest release from our Releases page. After downloading, follow the instructions for your platform to install and set up the tool.

🛠️ Usage

Using envmcp is straightforward. Here’s a quick example to illustrate how to define and use environment variables in your MCP server definitions.

Example

  1. Define Your Variables: Create a configuration file (e.g., env.config) with your environment variables.

    DATABASE_URL=mysql://user:password@localhost:3306/mydb
    API_KEY=your_api_key_here
    
  2. Load the Configuration: In your MCP server definition, include the following command to load the environment variables.

    load_env('env.config')
    
  3. Access Variables: Use the variables in your server code.

    db.connect(DATABASE_URL)
    api.authenticate(API_KEY)
    

This simple setup allows you to keep your sensitive information secure while maintaining flexibility in your configurations.

⚙️ Configuration

envmcp allows for easy configuration management. You can specify different environment files for various setups, such as development or production. Here’s how:

Multiple Environment Files

You can create different configuration files for different environments:

  • env.dev.config
  • env.prod.config

Load the appropriate file based on your environment:

if environment == 'production':
    load_env('env.prod.config')
else:
    load_env('env.dev.config')

🤝 Contributing

We welcome contributions from the community. If you have suggestions or improvements, please fork the repository and submit a pull request.

How to Contribute

  1. Fork the repository.
  2. Create a new branch for your feature or fix.
  3. Make your changes and commit them.
  4. Push to your branch.
  5. Open a pull request.

Your contributions help make envmcp better for everyone.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

📬 Contact

For questions or feedback, please reach out via the Issues section of this repository.

🚀 Releases

To keep your installation up to date, check the Releases section regularly. Download the latest version, execute it, and enjoy the new features and fixes.


Thank you for using envmcp! We hope it makes managing your environment variables easier and more secure.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
Tavily Mcp