FinLynq
open-source personal finance app with a first-party MCP server. 91 HTTP tools (OAuth 2.1 + DCR) and 87 stdio tools cover transactions, budgets, accounts, portfolio analytics, FX conversion, loans, subscriptions, goals, importers, and rules. Users self-host with Docker + PostgreSQL or use the managed cloud
README
Finlynq — Personal Finance App
An open-source personal finance web app with a first-party MCP server. Track income, expenses, budgets, investments, loans, and goals — then query your financial data from Claude, Cursor, Windsurf, or any MCP-compatible AI assistant.
"Track your money here, analyze it anywhere."
License: AGPL v3 · Repo: github.com/finlynq/finlynq · Support: GitHub Sponsors · Ko-fi
Try the Demo
No signup needed — a public demo account is always available on production:
- URL: finlynq.com
- Username:
demo(or emaildemo@finlynq.com— login accepts either) - Password:
finlynq-demo
Comes preloaded with 6 months of sample transactions, accounts, budgets, investments, and goals. Data resets nightly at 03:00 UTC, so feel free to change anything.
Connect it to Claude: in Claude → Customize → Connectors → "+" and paste https://finlynq.com/mcp. OAuth handles the rest — no config file.
Running Locally (Windows)
Prerequisites
- Node.js 18+
- PostgreSQL 14+ installed and running (the Windows service
postgresql-x64-*should start automatically) - Git
1. Clone & install
git clone https://github.com/finlynq/finlynq.git
cd finlynq/pf-app
npm install
2. Create your .env file
Copy .env.example to .env and fill in the values:
cp .env.example .env
Minimum required values for local dev:
NODE_ENV=development
APP_URL=http://localhost:3000
DATABASE_URL=postgres://<user>:<password>@localhost:5432/finlynq
PF_JWT_SECRET=<run: openssl rand -hex 32>
Windows tip: If you know a working PostgreSQL user from another project (e.g.
epm:epm_dev_password), use those credentials — you just need a user withCREATEDBprivilege.
3. Create the database
Open PowerShell in the pf-app directory and run:
# Set your psql path (adjust version number as needed)
$psql = "C:\Program Files\PostgreSQL\16\bin\psql.exe"
$env:PGPASSWORD = "<your-db-password>"
# Create the finlynq database (connect to an existing DB first, e.g. epm_agent_v3 or postgres)
"CREATE DATABASE finlynq;" | & $psql -U <your-user> -h 127.0.0.1 -p 5432 -d <existing-db>
Or open pgAdmin 4 and run:
CREATE DATABASE finlynq;
4. Push the schema
powershell -ExecutionPolicy Bypass -Command "npm run db:push:pg"
Note: On Windows, running
npmdirectly in PowerShell may fail with a script execution policy error. Always prefix withpowershell -ExecutionPolicy Bypass -Command "..."or run from Git Bash / Command Prompt.
5. Start the dev server
powershell -ExecutionPolicy Bypass -Command "npm run dev"
App will be available at http://localhost:3000
6. Create your account
Navigate to http://localhost:3000/cloud and click Create Account. Pick a username (3–254 chars, lowercase letters / digits / . @ + _ -) — email is optional.
Heads up: Finlynq encrypts everything with your password. There's no recovery key — if you forget your password, all data is wiped on reset. Adding an email lets you trigger a reset; without one you have no way to regain access.
Running Locally (macOS / Linux)
Prerequisites
- Node.js 18+
- PostgreSQL 14+ (
brew install postgresql@16on macOS, orapt install postgresqlon Ubuntu)
Steps
# Clone
git clone https://github.com/finlynq/finlynq.git
cd finlynq/pf-app
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env — set DATABASE_URL and PF_JWT_SECRET
# Create the database (assuming default postgres superuser)
psql -U postgres -c "CREATE DATABASE finlynq;"
# Push schema
npm run db:push:pg
# Start dev server
npm run dev
App will be available at http://localhost:3000
Docker (Self-hosted)
The easiest way to run Finlynq with zero manual setup:
git clone https://github.com/finlynq/finlynq.git
cd finlynq/pf-app
# Copy and configure env
cp .env.example .env
# Edit .env — at minimum set PF_JWT_SECRET
# Start app + PostgreSQL
docker compose up -d
App will be available at http://localhost:3000
The Docker Compose file starts both the app and a PostgreSQL 16 container. Data is persisted in a named volume (postgres_data).
Environment Variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
✅ | PostgreSQL connection string — activates managed mode |
PF_JWT_SECRET |
✅ | 64-char hex secret for JWT signing (openssl rand -hex 32) |
NODE_ENV |
development or production |
|
APP_URL |
Public URL of the app (used in email links) | |
PF_SMTP_HOST |
SMTP host for password reset emails (leave blank to disable) | |
NEXT_PUBLIC_GITHUB_REPO |
Link to your fork (shown in donation banner) |
Tech Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) + TypeScript |
| Database | PostgreSQL 16 + Drizzle ORM (22 tables) |
| UI | Tailwind CSS + shadcn/ui v4 (@base-ui/react) |
| Charts | Recharts + custom Sankey SVG |
| Animations | Framer Motion |
| Theming | next-themes (dark/light/system) |
| MCP | @modelcontextprotocol/sdk (86 tools, Streamable HTTP + stdio) |
| Auth | OAuth 2.1 + DCR (MCP), session-cookie + Bearer API key (REST) |
| Prices | Yahoo Finance API + CoinGecko (crypto) — both free, no key needed |
MCP Server
Finlynq includes a first-party MCP server with 86 tools for querying and managing your financial data from AI assistants — accounts, transactions, budgets, goals, loans, portfolio, subscriptions, FX rates, rules, splits, bulk edits, and CSV/OFX file imports.
Connect via Claude Desktop (stdio)
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"finlynq": {
"command": "npx",
"args": ["tsx", "/path/to/pf-app/mcp-server/index.ts"],
"env": {
"DATABASE_URL": "postgres://epm:epm_dev_password@localhost:5432/finlynq"
}
}
}
}
Connect via Claude Web / Mobile (HTTP)
- Go to Settings > API Keys in the app and generate a key (prefix
pf_) - Add the MCP server URL in your AI assistant:
https://your-domain.com/api/mcp - Use Bearer token auth with your generated key
The .well-known/mcp.json server card at the root enables auto-discovery.
Import Your Data
Go to /import in the app. Supported formats:
| Format | Notes |
|---|---|
| CSV | Preview with column mapping + deduplication |
| Excel (.xlsx/.xls) | Visual column mapper |
| Bank statement table extraction | |
| OFX / QFX | fitId-based deduplication |
All imports include a deduplication engine that fingerprints transactions to prevent duplicates.
Pages
| Page | Path | Description |
|---|---|---|
| Dashboard | /dashboard |
Net worth, health score, sparklines, weekly recap, spotlight alerts |
| Transactions | /transactions |
Full list with filters, bulk edit, splits |
| Budgets | /budgets |
Monthly budgets with envelope-style rollover |
| Goals | /goals |
Financial goals with progress tracking |
| Accounts | /accounts |
All accounts grouped by type |
| Portfolio | /portfolio |
Holdings, allocation, benchmarking, crypto |
| Loans | /loans |
Amortization schedules, payoff scenarios |
| Reports | /reports |
Income statement, balance sheet, Sankey, YoY |
| Tax | /tax |
TFSA/RRSP/RESP room + RRSP vs TFSA calculator |
| Chat | /chat |
Natural language financial queries with inline charts |
| Subscriptions | /subscriptions |
Recurring subscription tracker with auto-detection |
| Calendar | /calendar |
Monthly bill calendar |
| Scenarios | /scenarios |
What-if modeling (home, savings, debt, income) |
| FIRE | /fire |
FIRE/retirement calculator + Monte Carlo simulation |
| Import | /import |
Multi-format import |
| MCP Guide | /mcp-guide |
Setup guide (Claude Desktop / Web / Mobile / API) |
| API Docs | /api-docs |
Developer API documentation |
| Settings | /settings |
Categories, API keys, backup/restore |
Scripts
| Script | Description |
|---|---|
npm run dev |
Start dev server at http://localhost:3000 |
npm run build |
Production build |
npm run build:mcp |
Build MCP server |
npm run db:push:pg |
Push schema to PostgreSQL |
npm run db:generate:pg |
Generate Drizzle PG migrations |
Project Structure
pf-app/
src/
app/ # 21 pages + 50+ API routes
components/ # Nav, unlock gate, setup wizard, sparkline, sankey, shadcn/ui
db/ # Schema (22 tables), PostgreSQL adapter, Drizzle ORM
lib/ # Business logic (parsers, calculators, AI chat engine, MCP tools)
mcp-server/ # MCP server v3 (86 tools, stdio + Streamable HTTP)
drizzle-pg/ # PostgreSQL migration files
mobile/ # React Native (Expo) mobile app
docs/ # Getting started, FAQ, mobile setup guide
Contributing
Contributions are welcome! Please read CONTRIBUTING.md first.
- Bug reports → GitHub Issues
- Feature requests → GitHub Discussions
- Pull requests → fork, branch, PR against
main
Support the Project
Finlynq is free and open-source (AGPL v3). If it's useful to you, consider supporting development:
- ⭐ Star the repo
- 💛 GitHub Sponsors
- ☕ Ko-fi
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。