# Flat Rate Math

> Flat Rate Math is an open-source MCP server for finance and payments. Compare flat subscription, fixed bid and salaried hire by cost per request. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Website:** https://www.poketdev.com
- **Repository:** https://github.com/scrapertweeter3-prog/mcp-flatratemath
- **MCP Registry name:** io.github.scrapertweeter3-prog/flatrate-math
- **Categories:** finance and payments, developer tools
- **Listing updated:** 2026-11-15

## About

The server reduces three ways of paying for software work to one figure: total cost per delivered request. It ships as a single Python file using only the standard library and speaks JSON-RPC over stdio, answering initialize, ping, tools/list and tools/call.

The README's worked example puts an $84,000 fixed bid, an $18,290 per month hire and a $5,995 per month subscription side by side over 12 months and 30 requests. The subscription lane comes out at $2,398 per request, the bid at $2,800 and the hire at $7,316.

The flat-rate example is a real subscription from Poket Dev, whose founder wrote the server after redrawing the same spreadsheet for clients. Treat the numbers as a vendor-authored comparison.

## Features

- **Single-lane pricing:** cost_per_request prices one lane from a mode, rate, duration and request count.
- **Three-lane ranking:** compare_lanes ranks up to three lanes by cost per request.
- **Bid, salary and flat modes:** Models a fixed bid, a fully loaded monthly hire and a monthly subscription.
- **No dependencies:** One Python file with standard library only, MIT licensed.

## Good for

- Compare a development subscription against hiring
- Sanity-check a fixed bid against monthly alternatives
- Let an agent answer build-versus-buy cost questions
- Reproduce a client's spreadsheet comparison on demand

## Install

### Claude Code (Terminal)

```sh
claude mcp add flatrate-math -- npx -y flatrate-math
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "flatrate-math": {
      "command": "npx",
      "args": [
        "-y",
        "flatrate-math"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "flatrate-math": {
      "command": "npx",
      "args": [
        "-y",
        "flatrate-math"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "flatrate-math": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "flatrate-math"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "flatrate-math": {
      "command": "npx",
      "args": [
        "-y",
        "flatrate-math"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "flatrate-math": {
      "command": "npx",
      "args": [
        "-y",
        "flatrate-math"
      ]
    }
  }
}
```

## Tools

- `cost_per_request`: Prices a single lane (bid, salary or flat) per delivered request.
- `compare_lanes`: Ranks up to three lanes by cost per request.

## FAQ

### What inputs does it need?

A mode (bid, salary or flat), the dollar rate, how many months the work runs and the number of requests expected.

### How do I run it?

Clone the repository and point your client at python3 server.py; nothing else is installed.

### What licence applies?

MIT.

### Is it tied to one vendor?

The example uses Poket Dev's subscription, but the rates are inputs you supply.

### Is Flat Rate Math free?

Yes. Flat Rate Math is open source, so you can use and self-host it for free.

### How do I add Flat Rate Math to Claude Code?

Run this command in your terminal: claude mcp add flatrate-math -- npx -y flatrate-math

### What are the best alternatives to Flat Rate Math?

The closest alternatives to Flat Rate Math are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/flat-rate-math
