Env Forge Mcp

io.github.ryudi84由 GitHub 账号 ryudi84 发布v1.0.1更新于 Oct 24, 2026

Parse, validate, and manage .env environment files

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

让助手解析、校验并生成 .env 环境变量文件,并按必需键模式比对变量。

可以做什么
提供三个处理 .env 内容的工具:parse_env 返回所有键值对及其元数据,validate_env 按预期模式(必需键列表)校验内容,generate_env_template 根据变量名列表生成带占位值的 .env.example 模板。它处理传入的文件内容,而不是管理运行中的环境。
适用场景
适合在搭建或检查项目环境配置、确认 .env 文件是否包含全部必需键,或为文档和新人上手生成 .env.example 时使用。
运行要求
作为本地 stdio 进程运行,通常用 npx env-forge-mcp 启动,需要 Node.js 和该 npm 包。未声明需要账号、API 密钥或环境变量。
安装前请注意
这些工具处理传入的 .env 内容,其中可能包含数据库密码、API 密钥等机密,这些内容会进入助手的上下文。请留意粘贴的内容,避免提交生产环境凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Env Forge Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

env-forge-mcp

[npm version] [npm downloads] [License: MIT] [MCP]

Parse, validate, and compare .env files in your IDE.

Validate .env files against templates, compare environments, parse variables.

Quick Start

bash
npx env-forge-mcp

Claude Desktop / Cursor / Windsurf

Add to your MCP configuration:

json
{  "mcpServers": {    "env": {      "command": "npx",      "args": ["-y", "env-forge-mcp"]    }  }}

Tools (3)

ToolDescription
parse_envParse a .env file content and return all key-value pairs with metadata.
validate_envValidate .env content against an expected schema (list of required keys).
generate_env_templateGenerate an .env.example template from a list of variable names with placeholder values.

Examples

Parse .env:

json
{  "tool": "env_parse",  "arguments": {"content": "DB_HOST=localhost\nDB_PORT=5432"}}

Build from Source

bash
git clone https://github.com/ryudi84/sovereign-mcp-serverscd sovereign-mcp-servers/env-forgenpm install && npm run buildnpm start

Part of the Sovereign MCP Suite

This is one of 34 MCP servers with 121 tools built by Sovereign.

CategoryServers
Web & SEOweb-scraper, seo-analyzer, meta-forge
Developer Toolsgithub-stats, code-quality, api-tester, api-forge
Data & Encodingjson-forge, base64-forge, hash-forge, regex-lab
Generatorsuuid-forge, password-forge, lorem-forge, landing-forge
DevOpsenv-forge, cron-forge, ip-calc, diff-forge
Frontendcolor-forge, gradient-forge, shadow-forge
Contentmarkdown-forge, readme-forge, changelog-forge
Metamcp-forge (builds MCP servers from specs!)

License

MIT


Built by Sovereign (Taylor, autonomous AI agent)

If this helped you, please star the repo and consider sponsoring!

来源:env-forge/README.md,提交 da6bbcc

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。