Budget Planner MCP
Provides authentication via Google OAuth, allowing users to sign in with their Google account and obtain access tokens for API access.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Budget Planner MCPshow me my base case budget"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Budget Planner MVP
A TypeScript prototype for a monthly budget planning application. The backend is intentionally small and uses Node.js built-in HTTP only, with all domain and calculation logic kept outside the server layer so it can be replaced later.
Project Structure
apps/backend/ Node HTTP JSON API
apps/frontend/ React + Vite + ReactGrid UI
packages/domain/ Budget model, seed data, formula evaluation, recalculationThe domain package owns the core concepts: Budget, Scenario, Series, Value, and FormulaBinding. React components never evaluate formulas.
Setup
Install dependencies:
pnpm installRun backend and frontend together:
pnpm devEnvironment variables are loaded from a root .env file. Start from one of the examples:
cp .env.dev.example .envTo use local passwordless user-name login during development:
ALLOW_PASSWORDLESS_AUTH=true VITE_ALLOW_PASSWORDLESS_AUTH=true pnpm devDefault URLs:
Frontend:
http://localhost:5173Backend:
http://localhost:4000
Set APP_BASE_PATH and VITE_APP_BASE_PATH to serve the app under a subpath such as /abc. With VITE_APP_BASE_PATH=/abc, the frontend root is http://localhost:5173/abc/, and scenario pages use URLs such as /abc/budgets/budget-mvp/scenarios/scenario-base.
From the root page, users can create a new budget or create a new scenario by copying an existing scenario in the same budget. New budgets start with a Base Case scenario containing only Income Subtotal, Expense Subtotal, and Total.
Scenario pages subscribe to Server-Sent Events at ${APP_BASE_PATH}/api/budgets/:budgetId/scenarios/:scenarioId/events, so edits from another browser or API client update open views automatically.
Local development can use a passwordless user-name auth mode. It is disabled by default and must be enabled with ALLOW_PASSWORDLESS_AUTH=true for the backend and VITE_ALLOW_PASSWORDLESS_AUTH=true for the frontend. Do not enable this mode for public production traffic. Budget owners can share budgets with other users from the root page.
The backend also accepts Google OAuth access tokens with Authorization: Bearer <token>. Tokens are validated against Google's userinfo endpoint and mapped to the verified email address.
Run individual apps:
pnpm --filter backend dev
pnpm --filter frontend devTypecheck all packages:
pnpm typecheckBuild all packages:
pnpm buildAPI
API routes live under APP_BASE_PATH. With APP_BASE_PATH=/abc, use /abc/api/....
GET /api/statereturns the seeded budget, scenario, periods, series, values, and formula bindings.PUT /api/valuesupdates one editable monthly value and recalculates affected downstream series for the same period.PUT /api/series/:seriesId/formulaupdates one series formula and bindings, checks circular dependencies, and recalculates affected values.POST /api/recalculaterecalculates the full scenario for maintenance/debugging.
Remote MCP
The backend exposes a prototype remote MCP endpoint at POST ${APP_BASE_PATH}/mcp. It supports JSON-RPC MCP methods initialize, tools/list, and tools/call.
Authentication options:
Optional passwordless mode: send
X-Dev-User: aliceonly whenALLOW_PASSWORDLESS_AUTH=true.Remote Google login: send
Authorization: Bearer <Google OAuth access token>.
OAuth protected resource metadata is available at:
GET /.well-known/oauth-protected-resource
GET /.well-known/oauth-protected-resource/mcpWhen APP_BASE_PATH=/abc, these are served as /abc/.well-known/oauth-protected-resource and /abc/.well-known/oauth-protected-resource/mcp.
Available MCP tools:
list_budgetsget_scenario_stateupdate_valuecreate_seriesupdate_seriesdelete_seriescreate_budgetcreate_scenarioshare_budget
When using MCP to add income or expense series, prefer a unit-based structure instead of a single manual amount. Add parameter series for drivers such as users, quantity, headcount, unit price, or unit cost, then add the income/expense series with a formula such as users * unitPrice or headcount * unitCost whenever that structure can be reasonably inferred.
MCP updates reuse the same domain logic and publish the same SSE scenario updates as the browser UI.
Production Deployment
Use Google sign-in for production and leave passwordless auth off:
cp .env.prod.example .env
pnpm deploy:prodThe backend can serve HTTPS directly when certificate files are already available:
HTTPS=true TLS_CERT_FILE=/etc/letsencrypt/live/example.com/fullchain.pem TLS_KEY_FILE=/etc/letsencrypt/live/example.com/privkey.pem PORT=443 pnpm --filter backend startFor automatic Let's Encrypt issuance and rotation, use Caddy in front of the Node backend:
BUDGET_DOMAIN=example.com BUDGET_BASE_PATH=/abc ACME_EMAIL=admin@example.com BACKEND_UPSTREAM=localhost:4000 FRONTEND_DIST=/srv/budget-frontend caddy run --config deploy/CaddyfileSet BUDGET_BASE_PATH to the same value as APP_BASE_PATH; use an empty value for domain-root deployment or /abc for subpath deployment. Caddy serves the built frontend over HTTPS, renews certificates automatically, and proxies ${BUDGET_BASE_PATH}/api/*, ${BUDGET_BASE_PATH}/mcp, and OAuth metadata requests to the backend.
For pm2-based deployments, pnpm deploy:prod builds all workspaces, replaces the contents of FRONTEND_DIST, and restarts the backend with pm2 restart ${PM2_APP_NAME}. Configure both values in the root .env file:
FRONTEND_DIST=/var/www/abc
PM2_APP_NAME=budget-backendSet DEPLOY_SKIP_PM2_RESTART=true if you only want to rebuild and sync the frontend output without restarting pm2.
Seed Scenario
The in-memory store starts with MVP Budget, currency JPY, from 2026-01 to 2026-06, and a Base Case scenario.
Seeded series include Revenue, Users, Unit Price, Engineer Cost, Headcount, Unit Cost, Cloud Cost, Income Subtotal, Expense Subtotal, and Total. Revenue, Engineer Cost, subtotals, and Total are calculated automatically from formula bindings.
Formulas support arithmetic, variables, parentheses, and aggregate expressions such as Sum(Type=Income) and Sum(Type=Expense).
The grid display order is derived from domain meaning and formula bindings: income rows and their subtotal, expense rows and their subtotal, Total, other calculated rows, then unreferenced parameters. Parameters referenced by a formula are shown under the referencing series in formula variable order.
Notes
No database, ORM, authentication, or backend web framework is used. All data resets when the backend process restarts.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/maejie/abc'
If you have feedback or need assistance with the MCP directory API, please join our Discord server