Skip to main content
Glama
rog0x

@rog0x/mcp-env-tools

by rog0x

@rog0x/mcp-env-tools

为 AI 代理提供环境和配置工具的 MCP 服务器。帮助解析 .env 文件、生成模板、检查端口、查看系统信息以及验证工具依赖。

工具

环境解析器

  • env_list_variables - 解析 .env 文件并列出所有变量键(值已掩码)

  • env_detect_missing - 检查必需的环境变量是否存在且已填充

  • env_compare_files - 比较 .env 与 .env.example,找出缺失或多余的变量

  • env_find_duplicates - 查找 .env 文件中的重复变量键

环境生成器

  • env_generate_example - 从现有的 .env 文件生成 .env.example(去除值、保留注释、添加占位符)

  • env_detect_from_package_json - 检测 package.json 脚本中引用的环境变量

  • env_detect_from_docker_compose - 检测 docker-compose.yml 文件中引用的环境变量

端口检查器

  • port_check - 检查特定端口是否被占用并识别相关进程

  • port_find_available - 在给定范围内查找可用端口

  • port_list_processes - 列出使用特定端口的进程

系统信息

  • system_info - 操作系统、CPU、内存、磁盘、Node/npm/Python/Git/Docker 版本

依赖检查器

  • deps_check_tools - 检查指定工具是否已安装并获取其版本

  • deps_check_versions - 验证已安装的工具是否满足最低版本要求

  • deps_verify_path - 分析系统 PATH 中的常见工具目录

Related MCP server: devscope

设置

npm install
npm run build

配置

添加到你的 MCP 客户端配置:

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

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent SQLite-based memory and unified tool abstraction for AI agents to support long-term context and complex tool chaining. It enables automated code analysis, file operations, and environment discovery through a standardized interface.
    5
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to detect development environments, install missing tools, scan local code projects, and generate visual reports.
    6 npm
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to manage Docker containers, images, volumes, networks, and compose projects through Arcane's API. Provides comprehensive tools for environment, container, image, volume, network, project, and system operations.
    52
    16 npm
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides AI coding agents with structured, evidence-based diagnostics about the local development environment, detecting tech stack, runtime mismatches, dependency state, services, ports, and Git status without exposing secrets or using network calls.
    10
    Apache 2.0