Server data from the Official MCP Registry
Measure a program's CPU energy and LLM tokens, then refactor it cheaper. Measure, never estimate.
Measure a program's CPU energy and LLM tokens, then refactor it cheaper. Measure, never estimate.
Green MCP is a well-architected measurement server with proper separation of concerns and no authentication requirements (appropriate for a local stdio subprocess). Code quality is good with comprehensive testing and honest scope documentation. However, there are several moderate-severity concerns: arbitrary command execution via subprocess without input validation, environment variable reliance for token measurement (enables credential exposure if misconfigured), missing validation on user-supplied parameters, and potential race conditions in token proxy. These are acceptable for a local development tool but users must understand the trust model. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue.
7 files analyzed · 15 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-rlawogh1005-green-mcp": {
"args": [
"green-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
A pluggable MCP server that measures two efficiency axes of a program and refactors it to be cheaper while preserving behavior:
Defining principle: measure, never estimate. Every claim is a measurement with the command, the number, and its run-to-run uncertainty — or it's labeled an estimate. The comparison verdict is a real statistical test (Welch's t with the idle-baseline uncertainty folded in), not a heuristic.
pipx install green-mcp # provides the `green-mcp` command (stdlib + mcp only)
Mount it in your IDE (configs in deploy/):
| IDE | File |
|---|---|
| Claude Code | .mcp.json |
| Cursor | .cursor/mcp.json |
| OpenAI Codex | ~/.codex/config.toml (codex mcp add green -- green-mcp) |
| Google Antigravity | ~/.gemini/config/mcp_config.json |
Then ask your agent to measure or compare energy/tokens of a command. See
deploy/README.md for the full mount + harness guide.
measure_energy · compare_energy · measure_tokens · compare_tokens ·
verify_equivalence · energy_backend_info
No server to host. green-mcp is not a web service — your IDE launches it as a local stdio subprocess. There's no cloud, no account, and no LLM key needed for the measurement server itself.
| To run the server | Python 3.10+, pip install green-mcp. That's it — tools mount immediately. |
|---|
Energy axis — needs a power-sensor backend on the host (the largest prerequisite):
/sys/class/powercap (RAPL); no extra install, but energy_uj is root-only on
some distros.powermetrics, which requires root / passwordless sudo.energy_available: false and refuse to estimate. Energy generally does NOT work in Docker/CI —
containers and VMs have no power-sensor passthrough. Use the token axis there.Token axis — no special hardware, works anywhere, but:
ANTHROPIC_BASE_URL,
OPENAI_BASE_URL, …) so we can route it through the counting proxy. A hardcoded endpoint won't be
measured (reports 0 calls).Bundled agent (optional) — pip install green-mcp[agent] adds the Claude Agent SDK and needs
Anthropic credentials. The MCP server alone needs none.
usage path and rate-limit behavior are still only
exercised against a local fake upstream. These gaps are tracked, not hidden.python -m venv .venv && .venv/Scripts/pip install -e ".[dev]"
.venv/Scripts/python -m pytest -q # unit tests
.venv/Scripts/python -m pytest -m integration # real-hardware (needs AMD uProf)
Architecture and decisions live in North Star.md, Green.md,
and docs/. Licensed under MIT.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.