About env-forge-mcp
env-forge-mcp is an MCP server for developers working with .env files. It parses variables, checks required keys against a schema, and generates example templates with placeholder values.
Key features
- 01Parse .env variables and metadata
- 02Validate required keys against a schema
- 03Generate .env.example templates
Use cases
- 01Inspect variables in an environment file
- 02Check required keys before running an application
- 03Create a template for sharing configuration requirements
MCP support
Exposes parse_env, validate_env, and generate_env_template tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
3Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | string | Yes | .env file contents |
Details
From the project READMEenv-forge-mcp
Parse, validate, and compare .env files in your IDE.
Validate .env files against templates, compare environments, parse variables.
Quick Start
npx env-forge-mcp
Claude Desktop / Cursor / Windsurf
Add to your MCP configuration:
{
"mcpServers": {
"env": {
"command": "npx",
"args": ["-y", "env-forge-mcp"]
}
}
}
Tools (3)
| Tool | Description |
|---|---|
parse_env | Parse a .env file content and return all key-value pairs with metadata. |
validate_env | Validate .env content against an expected schema (list of required keys). |
generate_env_template | Generate an .env.example template from a list of variable names with placeholder values. |
Examples
Parse .env:
{
"tool": "env_parse",
"arguments": {"content": "DB_HOST=localhost\nDB_PORT=5432"}
}
Build from Source
git clone https://github.com/ryudi84/sovereign-mcp-servers
cd sovereign-mcp-servers/env-forge
npm install && npm run build
npm start
Part of the Sovereign MCP Suite
This is one of 34 MCP servers with 121 tools built by Sovereign.
| Category | Servers |
|---|---|
| Web & SEO | web-scraper, seo-analyzer, meta-forge |
| Developer Tools | github-stats, code-quality, api-tester, api-forge |
| Data & Encoding | json-forge, base64-forge, hash-forge, regex-lab |
| Generators | uuid-forge, password-forge, lorem-forge, landing-forge |
| DevOps | env-forge, cron-forge, ip-calc, diff-forge |
| Frontend | color-forge, gradient-forge, shadow-forge |
| Content | markdown-forge, readme-forge, changelog-forge |
| Meta | mcp-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!
Comments
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.