# nable

Calculates the cost of a command before the agent runs it and halts expensive launches or destructive operations until a human approves.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 19
- Author: getnable
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/getnable/finopsmcp
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/mcp/getnable-nable

## What it does

The server intercepts commands in Claude Code, Codex, Cursor and Copilot before execution: launching 8 `p4d.24xlarge` instances gets priced at roughly $128,233 per month and requires confirmation, while `terraform destroy -auto-approve` is blocked due to irreversibility. Commands below the $500/month threshold pass without stopping, and every decision is written to a hash-chained ledger on disk. The `uvx nable scan` command finds idle resources in AWS, Azure and GCP — unused RDS instances, detached EBS volumes, forgotten NAT gateways — and calculates the monthly cost for each using free cloud APIs only.

Install with one command: `uvx nable guard install`; hooks apply to the current project (`--global` flag enables them everywhere). Pricing and command interception work without a cloud account, relying on AWS list prices. The server reads local agent logs and estimates spend across Anthropic, OpenAI, Bedrock and Vertex AI models with per-session caps. No API keys needed; billing data stays on your machine.

In Claude Code and Cursor, the agent pauses and waits for approval when the threshold is crossed; in Codex CLI and Gemini CLI, the command is refused with an explanation. Restart the agent after installation so it picks up the hook.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add finops-mcp -- uvx finops-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from finops-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add getnable-nable -- uvx finops-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from finops-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "getnable-nable": {
            "command": "uvx",
            "args": [
                "finops-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from finops-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "getnable-nable": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "finops-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from finops-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add getnable-nable uvx finops-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from finops-mcp <command>

## When to use it
- halt an expensive cloud instance launch before it runs
- block `terraform destroy` or resource deletion without approval
- locate unused RDS, volumes and NAT gateways in AWS and calculate their cost
- track Claude Code and Cursor spend by model and project
- review OpenAI, Anthropic and Bedrock costs without sending data to a SaaS

## Example prompts
- Find idle RDS instances and unattached EBS volumes in our AWS account
- How much did we spend on Claude and GPT-4 last month, broken down by project?
- Launch 4 `g5.xlarge` instances in `us-east-1` (the agent will see the cost estimate first)

## Similar
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160
- [firebase-mcp](https://affpapa.org/en/nevibecode/mcp/firebase-mcp.md) — MCP server · ★ 4481
- [Radar Kubernetes MCP Server](https://affpapa.org/en/nevibecode/mcp/radar-kubernetes-mcp-server.md) — MCP server · ★ 3905
- [Supabase](https://affpapa.org/en/nevibecode/mcp/supabase.md) — MCP server · ★ 2969
- [Microsoft Fabric MCP Server](https://affpapa.org/en/nevibecode/mcp/microsoft-fabric-mcp-server.md) — MCP server · ★ 3799

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
