
OpenProfit
io.github.lobbystackPublished by GitHub account lobbystackv1.0.0Updated Oct 29, 2026
Revenue, AI and hosting costs, and profit per product from Stripe, OpenAI, Vercel and more.
Overview
OpenProfit pulls revenue and cost data from Stripe, OpenAI, Vercel and other providers so an assistant can work with per-product profit figures.
- What you can do
- Read revenue and cost figures for a workspace: revenue from payment processors, costs from AI, hosting and infrastructure providers.
- Compare revenue, fees, refunds and costs to get profit per product, in one base currency.
- Work with breakdowns by product, revenue source and cost provider, plus flat subscriptions and one-time costs.
- Review monthly books and tax-form figures, and weekly summaries or spike alerts.
- When to use it
- Useful when you want an assistant to answer questions about what your apps actually earn after fees, refunds, AI bills and hosting, or to prepare accounting and tax-return numbers from connected billing data.
- Requirements
- Remote endpoint at openprofit.dev with OAuth sign-in required; the README also lists email, GitHub and Google sign-in. A workspace with at least one revenue and one cost connector connected. Self-hosting is possible with Docker and Postgres, but that is separate from the hosted MCP endpoint.
Installation
In SourceWeft
- Open OpenProfit in the dashboard and add it to a workspace.
- Connect the required credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.lobbystack%2Fopenprofit/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config. The client completes OAuth sign-in on first connect.
{
"mcpServers": {
"openprofit": {
"type": "http",
"url": "https://openprofit.dev/mcp"
}
}
}README
[OpenProfit. Finance for developers.]
Finance for developers
About OpenProfit
Connect Stripe, OpenAI, Vercel and every other bill. See what each of your apps earns after costs, and get the numbers for your tax return.
Revenue lives in your payment processor. Costs live in a dozen billing pages: AI providers, hosting, databases, email, domains. Each shows its own slice, in its own currency. OpenProfit pulls them together and assigns every line to the product it belongs to.
Connect your whole stack
Revenue from your payment processor. Costs from your AI providers, hosting and infrastructure. Paste an API key and two years of history fill in.
Measure what you keep
Revenue minus fees, refunds, AI bills and hosting, for every app you run. The number on screen is the one you keep.
- Net of fees and refunds. Processor fees and refunds come off before any number is shown.
- One currency. Paid in euros, billed in dollars. Everything converts at that day's rate.
- Profit per product. Three products on one OpenAI account, and you still see which one pays for itself.
Every bill in one place
OpenAI, Vercel, Neon, Resend and 10 more providers report what they charged you, by day or month and by project. Subscriptions without an API take ten seconds to add.
- Usage billing. Per-token and per-GB charges come from the provider's own billing data.
- Flat subscriptions. Supabase, domains, anything else. Enter the price once and it counts every month.
- Mapped to products. Point each OpenAI or Vercel project at the product it serves. The rest stays under Unassigned until you decide.
Know when something moves
A Monday email with last week's revenue, costs and profit. An alert the day a bill doubles, a margin drops or a sync fails.
- Weekly summary. Three numbers and the one change worth knowing. Free on every plan.
- Spike alerts. An email the day a bill doubles or a margin drops. Slack and Discord next.
- Public pages. Share a product's numbers on a page anyone can open. You choose what shows.
Open source, yours to run
MIT licensed. One Docker image with Postgres inside, or point it at your own. Your API keys never leave your server.
Key features
- Overview with revenue, costs, profit, MRR and customers for any period, deltas against the previous one, and a twelve-month chart with last year as a reference line.
- Breakdowns by product, by revenue source and by cost provider.
- Connectors that take an API key with the narrowest access each provider offers, test it before saving, and store it encrypted. OpenProfit only reads with it. Two years of history on the first sync, incremental after that. Security lists what each key can do.
- Product mapping per provider sub-unit, with an Unassigned bucket for the rest.
- Flat costs for subscriptions, domains, one-time purchases and anything without an API.
- Multi-currency workspaces with daily rates and a base currency you can change later. Workspaces in Canadian dollars use the Bank of Canada's rates.
- Books: a monthly journal for QuickBooks, Xero or any accounting software, and the year's numbers on the lines of your tax form (T2125 and TP-80, the T2's GIFI schedules, Schedule C or Form 1120).
- Alerts for cost spikes, margin floors and sync failures.
- Weekly email with last week against the week before.
- Public pages per product, server-rendered from the same data.
- Dark mode, keyboard search, and a layout that holds on a phone.
- Self-hosting in one container with Postgres built in, or a
postgres://URL to your own. - Sign in with email, GitHub or Google.
Connectors
App Store, Google Play and Supabase are next. A connector is one file in src/connectors that implements verify and fetchRevenue or fetchCosts. If you want one that is not here, open an issue with a link to the provider's billing API, or send a pull request.
Getting started
The quickest way is the hosted version at openprofit.dev. Sign in, create a workspace, connect one revenue source and one cost source, and the overview fills in.
Free while your products make under $2,500 a month combined. After that, a flat price that never grows with your revenue. Every connector on every plan.
Self-hosting
One container. Data lives in an embedded Postgres on a volume, so there is nothing else to run.
Open http://localhost:3000/login and enter your email. Without an email provider the sign-in link prints in docker logs openprofit. Set RESEND_API_KEY and EMAIL_FROM to send it by mail. Point DATABASE_URL at a postgres:// server to use your own database.
The self-host guide covers updates, Dokploy and Railway. The environment reference lists every variable.
How it works
One TanStack Start app serves the landing page, the docs and the app. A scheduler inside the server pulls each connection on its cadence, converts amounts to the workspace's base currency, and upserts lines by the provider's own ids, so re-running a range never double-counts. The overview is grouped sums over those lines.
Postgres everywhere: PGlite embedded for self-host and local development, a Postgres server for the hosted version. Auth is Better Auth. Styling is Tailwind.
Development
Bun 1.3 or later.
Sign in once at http://localhost:3000/login, then attach the demo workspace to your user:
Checks: bun run check (Biome), bunx --bun tsc --noEmit, bun run build. After a schema change, bun run db:generate writes a migration; migrations run when the server starts.
Contributing
Issues and pull requests are welcome. Connectors are the most useful contribution. CONTRIBUTING.md lists the files a connector touches, the data it must return and how to test it against a real account.
Found a security problem? Email [email protected] rather than opening an issue.
License
MIT. The hosted version at openprofit.dev is operated by Lobbystack Inc.
Source: README.md at commit 493e08d
Tools
0Version history
1- v1.0.0LatestOct 29, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts