claude mcp add green-mcp -- python -m green-mcp{
"mcpServers": {
"green-mcp": {
"command": "python",
"args": ["-m", "venv"]
}
}
}Resumen de MCP Servers
# Green Agent <!-- mcp-name: io.github.rlawogh1005/green-mcp --> A pluggable **MCP server** that measures two efficiency axes of a program and refactors it to be cheaper while preserving behavior: - **CPU energy** — joules the code actually consumes, from real hardware telemetry (AMD uProf / Linux RAPL / macOS powermetrics), chosen automatically for the host. - **LLM tokens** — the token usage of a program that calls LLMs (input/output/cache/reasoning), measured provider-neutrally and non-blockingly. 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. ## Quick start ```sh pipx install green-mcp # provides the `green-mcp` command (stdlib + mcp only) ``` Mount it in your IDE (configs in [`deploy/`](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`](deploy/README.md) for the full mount + harness guide. ## Tools `measure_energy` · `compare_energy` · `measure_tokens` · `compare_tokens` · `verify_equivalence` · `energy_backend_info` ## Requirements (what each part needs to actually work) **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): - **Windows + AMD** → install **AMD uProf** separately (driver-based; admin to install). Not bundled. - **Linux** → reads `/sys/class/powercap` (RAPL); no extra install, but `energy_uj` is root-only on some distros. - **macOS** → uses the built-in `powermetrics`, which requires **root / passwordless sudo**. - **No reachable sensor** (a VM, a container, a locked-down machine) → energy tools report `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. - The measured command runs **locally** (arbitrary commands → use in a trusted environment only). **Token axis** — no special hardware, works anywhere, **but**: - The target program must read its LLM endpoint from an **env var** (`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). - Measuring runs the target's **real LLM calls** — the proxy forwards to the real provider, so the target's API key is billed as usual, and network access to the provider is required. **Bundled agent** (optional) — `pip install green-mcp[agent]` adds the Claude Agent SDK and needs **Anthropic credentials**. The MCP server alone needs none. ## Honest scope - Energy is **CPU package energy** (+DRAM on RAPL) — not carbon, not whole-system. - Numbers from **different backends are not comparable**. - Only the **AMD/uProf** backend is validated for repeatability on real hardware; Linux/macOS are written and unit-tested but unverified on metal, and no backend is yet cross-validated against a wall power meter. The token measurer **is** validated against a live provider (NVIDIA NIM, OpenAI-compatible: 5 real calls, streaming and non-streaming, matching the provider's own usage records exactly) — but the Anthropic-shaped `usage` path and rate-limit behavior are still only exercised against a local fake upstream. These gaps are tracked, not hidden. ## Development ```sh 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`](North%20Star.md), [`Green.md`](Green.md), and `docs/`. Licensed under [MIT](LICENSE).
Lo que la gente pregunta sobre green-mcp
¿Qué es rlawogh1005/green-mcp?
+
rlawogh1005/green-mcp es mcp servers para el ecosistema de Claude AI con 0 estrellas en GitHub.
¿Cómo se instala green-mcp?
+
Puedes instalar green-mcp clonando el repositorio (https://github.com/rlawogh1005/green-mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.
¿Es seguro usar rlawogh1005/green-mcp?
+
rlawogh1005/green-mcp aún no ha sido auditado por nuestro agente de seguridad. Revisa el repositorio original en GitHub antes de usarlo en producción.
¿Quién mantiene rlawogh1005/green-mcp?
+
rlawogh1005/green-mcp es mantenido por rlawogh1005. La última actividad registrada en GitHub es de today, con 0 issues abiertos.
¿Hay alternativas a green-mcp?
+
Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.
Despliega green-mcp en tu cloud
Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.
¿Mantienes este repo? Añade un badge a tu README
Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.
[](https://claudewave.com/repo/rlawogh1005-green-mcp)<a href="https://claudewave.com/repo/rlawogh1005-green-mcp"><img src="https://claudewave.com/api/badge/rlawogh1005-green-mcp" alt="Featured on ClaudeWave: rlawogh1005/green-mcp" width="320" height="64" /></a>Más MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
The fastest path to AI-powered full stack observability, even for lean teams.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!