mcpField
E
env

env

Local
github.com/rog0xDeveloper Tools0Updated 32w ago

About env

An MCP server for AI agents that provides tools for inspecting environment configuration, ports, system details, and installed dependencies. Its environment tools parse and compare `.env` files and generate example templates.

Key features

  1. 01Parse and compare `.env` files
  2. 02Check required environment variables
  3. 03Generate `.env.example` templates
  4. 04Check ports and identify processes
  5. 05Inspect system and tool versions

Use cases

  1. 01Find missing or duplicate environment keys
  2. 02Compare `.env` with `.env.example`
  3. 03Locate available ports
  4. 04Verify installed tools and minimum versions

MCP support

Exposes environment, port, system-information, and dependency-checking tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"rog0x-env": {
"command": "npx",
"args": [
"-y",
"@rog0x/mcp-env-tools"
]
}
}
}
Run commandnpx -y @rog0x/mcp-env-tools

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@rog0x/mcp-env-tools1.0.2

Tools

14

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
filePathstringYesPath to the .env file

Details

From the project README

@rog0x/mcp-env-tools

MCP server providing environment and configuration tools for AI agents. Helps with parsing .env files, generating templates, checking ports, inspecting system info, and verifying tool dependencies.

Tools

Environment Parser
  • env_list_variables - Parse a .env file and list all variable keys (values masked)
  • env_detect_missing - Check if required environment variables are present and populated
  • env_compare_files - Compare .env vs .env.example to find missing or extra variables
  • env_find_duplicates - Find duplicate variable keys in a .env file
Environment Generator
  • env_generate_example - Generate .env.example from an existing .env file (strips values, keeps comments, adds placeholders)
  • env_detect_from_package_json - Detect environment variables referenced in package.json scripts
  • env_detect_from_docker_compose - Detect environment variables referenced in a docker-compose.yml file
Port Checker
  • port_check - Check if a specific port is in use and identify the process
  • port_find_available - Find available ports within a given range
  • port_list_processes - List processes using specific ports
System Info
  • system_info - OS, CPU, memory, disk, Node/npm/Python/Git/Docker versions
Dependency Checker
  • deps_check_tools - Check if specified tools are installed and get their versions
  • deps_check_versions - Verify installed tools meet minimum version requirements
  • deps_verify_path - Analyze the system PATH for common tool directories

Setup

npm install
npm run build

Configuration

Add to your MCP client config:

{
  "mcpServers": {
    "env-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-env-tools/dist/index.js"]
    }
  }
}

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.