# Green MCP

> Green MCP is an open-source MCP server. Measure a program's CPU energy and LLM tokens, then refactor it cheaper. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/rlawogh1005/green-mcp
- **MCP Registry name:** io.github.rlawogh1005/green-mcp
- **Listing updated:** 2026-11-13

## About

Measure a program's CPU energy and LLM tokens, then refactor it cheaper. Measure, never estimate.

## Install

### Claude Code (Terminal)

```sh
claude mcp add green-mcp -- uvx green-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "green-mcp": {
      "command": "uvx",
      "args": [
        "green-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "green-mcp": {
      "command": "uvx",
      "args": [
        "green-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "green-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "green-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "green-mcp": {
      "command": "uvx",
      "args": [
        "green-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "green-mcp": {
      "command": "uvx",
      "args": [
        "green-mcp"
      ]
    }
  }
}
```

## FAQ

### Is Green MCP free?

Yes. Green MCP is open source, so you can use and self-host it for free.

### How do I add Green MCP to Claude Code?

Run this command in your terminal: claude mcp add green-mcp -- uvx green-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/green-mcp
