# OpenProfit

> OpenProfit is an open-source MCP server for finance and payments. Per-product revenue, AI and hosting costs and profit from Stripe, OpenAI and Vercel. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Web, API, CLI, self-hosted
- **Website:** https://openprofit.dev/docs/agents
- **Repository:** https://github.com/lobbystack/openprofit
- **MCP Registry name:** io.github.lobbystack/openprofit
- **Categories:** finance and payments, analytics and data
- **Listing updated:** 2026-11-14

## About

OpenProfit pulls revenue from a payment processor and costs from AI, hosting, database and email providers into one view, assigning each line to the product it belongs to. Fees and refunds come off first, mixed currencies convert at the day's rate, and the result is profit per product. It also produces a monthly journal for QuickBooks or Xero and year totals laid out on tax-form lines such as Schedule C.

The MCP server is at /mcp on the hosted app or on your own instance. Access uses an API token tied to one workspace, set to Read or Read and write, or OAuth for clients such as claude.ai, ChatGPT and Cursor. A read token can also export a month's journal, which closes that month.

Provider keys stay out of the chat: connect_provider either reads a variable from a local env file via the npm package, or returns a link valid for 15 minutes where you enter the key in the browser. The project is MIT licensed and can be self-hosted as one Docker image with Postgres.

## Features

- **Profit per product:** Revenue minus fees, refunds, AI bills and hosting for each app.
- **Provider connectors:** Revenue and cost sources including Stripe, OpenAI, Vercel, Neon and Resend.
- **Keys kept out of chat:** No tool accepts a raw provider key as an argument.
- **Read or write tokens:** Per-workspace tokens limit what an agent can read or change.
- **Alerts and weekly email:** Notices when a bill doubles, a margin drops or a sync fails.
- **Books export:** Monthly journal and tax-form lines for accounting software.
- **Self-hostable:** MIT licensed, run as a Docker image.

## Good for

- Ask an agent which product is profitable this month
- Connect a provider from an env file without pasting the key
- Export a month's journal for QuickBooks or Xero
- Spot a doubled AI bill
- Publish a product's numbers on a public page

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
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"
    }
  }
}
```

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

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

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

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

## Tools

- `connect_provider`: Connects a billing provider, either from an env file via the local server or through a one-time link on the remote server.
- `connection_status`: Checks whether a provider connection has appeared and synced.
- `delete_product`: Deletes a product from the workspace; changes made by agents can be reviewed.

## FAQ

### How do I connect it to Claude Code?

Run claude mcp add --transport http openprofit https://openprofit.dev/mcp with an Authorization bearer header, or use npx openprofit login.

### Can an agent see my provider keys?

The docs say no tool takes a raw key; keys are encrypted before storage.

### Can I self-host?

Yes. It is MIT licensed, runs as one Docker image, and needs a public HTTPS APP_URL for claude.ai.

### Which MCP protocol versions are supported?

Streamable HTTP, protocol versions 2025-11-25 and 2026-07-28.

### Is OpenProfit free?

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

### How do I add OpenProfit to Claude Code?

Run this command in your terminal: claude mcp add --transport http openprofit https://openprofit.dev/mcp

### What are the best alternatives to OpenProfit?

The closest alternatives to OpenProfit are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP and World Monitor.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.

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