# OpenProfit MCP server

> Tracks revenue and costs from providers like Stripe, OpenAI, and Vercel to calculate net profit per product.

- Repository: https://github.com/lobbystack/openprofit
- Page: https://hostedmcp.org/servers/lobbystack/openprofit
- Transport: remote
- Stars: 9
- License: MIT
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add --transport http openprofit https://openprofit.dev/mcp
```

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

```json
{
  "mcpServers": {
    "openprofit": {
      "url": "https://openprofit.dev/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "openprofit": {
      "type": "http",
      "url": "https://openprofit.dev/mcp"
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.openprofit]
url = "https://openprofit.dev/mcp"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "openprofit": {
      "httpUrl": "https://openprofit.dev/mcp"
    }
  }
}
```

## FAQ

### How does OpenProfit handle different currencies?

It uses a multi-currency workspace system with daily exchange rates to convert everything to your chosen base currency.

### Can I run OpenProfit on my own infrastructure?

Yes, it is MIT licensed and can be self-hosted using a single Docker container with an embedded Postgres database.

### Does OpenProfit support usage-based billing?

Yes, it pulls per-token and per-GB charges directly from the provider's billing data.

### How secure are my API keys?

API keys are stored encrypted, and the software is designed so that keys never leave your server if you self-host.
