Numbers.sg: Singapore rates and prices
Singapore rates (SORA, T-bills, COE, CPF, FX) with sources + stamp duty, CPF and tax calculators.
我该使用它吗
质量与安全性
发现(6)
- HIGH
- MEDIUM在 calculate_stamp_duty 中
- MEDIUM在 calculate_take_home_pay 中
- MEDIUM在 calculate_income_tax 中
- MEDIUM在 calculate_ssb_returns 中
- MEDIUM在 calculate_cpf_contribution 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"data": {
"url": "https://numbers.sg/api/mcp"
}
}
}远程端点
https://numbers.sg/api/mcpstreamable-http它能做什么
工具清单
工具(8)
🟢list_datasets(query)
Every Singapore dataset Numbers.sg serves: SORA, T-bills, Singapore Savings Bonds, COE results, CPF rates and sums, income tax, ABSD and BSD, inflation, electricity tariffs and SGD exchange rates. Each with the question it answers, the dates it covers, when we last read the source and whether that read is late. Use it to find the id for get_dataset or get_value.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional words to filter by, e.g. \"COE\" or \"yen\"."
}
},
"additionalProperties": false
}🟢get_dataset(id, view, from, to, fields, ...)
Rows of one dataset with its fields, sources, freshness and credit line. view "latest" (default) gives the rows in force today; "history" gives every row, oldest first, narrowed with from/to. At most 500 rows come back (the newest); the answer gives the address for all of them.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string",
"enum": [
"absd-changes",
"absd-rates",
"bsd-rates",
"coe-results",
"cpf-contribution-rates",
"cpf-contribution-tables",
"cpf-interest-rates",
"cpf-retirement-sums",
"cpf-wage-ceilings",
"electricity-tariff",
"fx-sgd-cny",
"fx-sgd-cny-monthly",
"fx-sgd-eur",
"fx-sgd-eur-monthly",
"fx-sgd-idr",
"fx-sgd-idr-monthly",
"fx-sgd-inr",
"fx-sgd-inr-monthly",
"fx-sgd-jpy",
"fx-sgd-jpy-monthly",
"fx-sgd-krw",
"fx-sgd-krw-monthly",
"fx-sgd-myr",
"fx-sgd-myr-bank-counter",
"fx-sgd-myr-monthly",
"fx-sgd-php",
"fx-sgd-php-monthly",
"fx-sgd-thb",
"fx-sgd-thb-monthly",
"fx-usd-sgd",
"fx-usd-sgd-monthly",
"income-tax-rates",
"inflation",
"sora",
"ssb-issues",
"tbill-auctions"
],
"description": "Dataset id, from list_datasets."
},
"view": {
"type": "string",
"enum": [
"latest",
"history"
],
"default": "latest"
},
"from": {
"type": "string",
"description": "History only: a date (2026-01-31), month (2026-01), quarter (2026-Q1) or year (2026)."
},
"to": {
"type": "string",
"description": "History only: same forms as from."
},
"fields": {
"type": "string",
"description": "Comma-separated field names to keep, e.g. \"month,category,quota_premium_sgd\"."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"description": "Keep only the newest N rows."
}
},
"required": [
"id"
],
"additionalProperties": false
}🟢get_value(id, field, date, where)
One figure, ready to quote: the value of a field in the newest row (or the last row on or before a date), with the row’s date, the source, when we last read it, the credit line and the page to link. Use where to pick a row, e.g. {"category": "A"} for COE Category A.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string",
"enum": [
"absd-changes",
"absd-rates",
"bsd-rates",
"coe-results",
"cpf-contribution-rates",
"cpf-contribution-tables",
"cpf-interest-rates",
"cpf-retirement-sums",
"cpf-wage-ceilings",
"electricity-tariff",
"fx-sgd-cny",
"fx-sgd-cny-monthly",
"fx-sgd-eur",
"fx-sgd-eur-monthly",
"fx-sgd-idr",
"fx-sgd-idr-monthly",
"fx-sgd-inr",
"fx-sgd-inr-monthly",
"fx-sgd-jpy",
"fx-sgd-jpy-monthly",
"fx-sgd-krw",
"fx-sgd-krw-monthly",
"fx-sgd-myr",
"fx-sgd-myr-bank-counter",
"fx-sgd-myr-monthly",
"fx-sgd-php",
"fx-sgd-php-monthly",
"fx-sgd-thb",
"fx-sgd-thb-monthly",
"fx-usd-sgd",
"fx-usd-sgd-monthly",
"income-tax-rates",
"inflation",
"sora",
"ssb-issues",
"tbill-auctions"
],
"description": "Dataset id, from list_datasets."
},
"field": {
"type": "string",
"description": "The field, e.g. \"compounded_3m_pct\" for SORA. get_dataset lists every field."
},
"date": {
"type": "string",
"description": "Optional: the last row on or before this date (YYYY-MM-DD, YYYY-MM or YYYY)."
},
"where": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number",
"integer"
]
},
"description": "Optional: only rows whose fields equal these values."
}
},
"required": [
"id",
"field"
],
"additionalProperties": false
}🟢calculate_stamp_duty(price, value, buyers, married, date, ...)
What a buyer pays IRAS on a Singapore property: BSD tier by tier, the ABSD rate for the buyers, any remission or refund, and the last day to pay. Worked out by the engine behind https://numbers.sg/tools/stamp-duty-calculator/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.
输入模式
{
"type": "object",
"properties": {
"price": {
"type": "integer",
"description": "Purchase price in S$, e.g. 1500000."
},
"value": {
"type": "integer",
"description": "Market valuation in S$, if known. IRAS charges on the higher of price and valuation."
},
"buyers": {
"type": "string",
"default": "sc:0",
"description": "Each buyer as profile:homes, comma-separated. profile sc (Singapore citizen), spr (permanent resident), fr (foreigner), fta (US national, or a national or PR of Switzerland, Norway, Iceland or Liechtenstein: pays as a citizen). homes = residential properties the buyer already owns. E.g. \"sc:1,sc:1\" for a couple who own one home."
},
"married": {
"type": "boolean",
"default": false,
"description": "The buyers are a married couple (two buyers, in both their names only). Opens the married-couple ABSD remission or refund."
},
"date": {
"type": "string",
"description": "Date the option is exercised or the contract signed (YYYY-MM-DD). Default: today in Singapore. From 2013-01-12; rates in force that day."
},
"kind": {
"type": "string",
"enum": [
"res",
"nonres"
],
"default": "res",
"description": "res = residential (BSD to 6%, ABSD applies); nonres = non-residential (BSD to 5%, no ABSD)."
},
"hdb": {
"type": "boolean",
"default": false,
"description": "An HDB flat whose rules make the buyers sell their current home: counted as a first home, ABSD remitted up front."
},
"senior": {
"type": "boolean",
"default": false,
"description": "Every buyer is a single Singapore citizen aged 55 or over, replacing a home (refund if the first home is sold within 6 months and the new one is worth less; from 16 Feb 2024)."
}
},
"required": [
"price"
],
"additionalProperties": false
}🟢calculate_take_home_pay(pay, age, who, direction, aws_months, ...)
What reaches the bank each month from a Singapore salary after the employee’s CPF and any self-help group fund, the income tax to set aside, the year’s totals with bonus, and what the employee costs the employer. Or, with direction=net, the pay needed for a take-home amount. Worked out by the engine behind https://numbers.sg/pay/take-home-pay-calculator/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.
输入模式
{
"type": "object",
"properties": {
"pay": {
"type": "number",
"description": "Monthly pay before CPF in S$, e.g. 5000. With direction=net: the amount wanted in the bank each month."
},
"age": {
"type": "integer",
"description": "Age in whole years (sets the CPF rate and Earned Income Relief)."
},
"who": {
"type": "string",
"enum": [
"sc",
"pr3",
"pr1g",
"pr2g",
"pr1f",
"pr2f",
"fr"
],
"default": "sc",
"description": "sc citizen; pr3 permanent resident from the 3rd year; pr1g / pr2g PR in the 1st / 2nd year on graduated rates; pr1f / pr2f PR in the 1st / 2nd year with full employer rates; fr foreigner (no CPF)."
},
"direction": {
"type": "string",
"enum": [
"gross",
"net"
],
"default": "gross",
"description": "gross: pay is before CPF. net: pay is the take-home wanted; the answer gives the pay needed."
},
"aws_months": {
"type": "number",
"default": 0,
"description": "Annual wage supplement or 13th month, in months of pay (0 to 12), paid in one month."
},
"bonus": {
"type": "number",
"default": 0,
"description": "Any other bonus for the year in S$, paid in the same month."
},
"fund": {
"type": "string",
"enum": [
"none",
"cdac",
"ecf",
"mbmf",
"sinda"
],
"default": "none",
"description": "Self-help group fund taken from pay: CDAC, ECF, MBMF or SINDA (CDAC and ECF for citizens and PRs only)."
},
"stay": {
"type": "string",
"enum": [
"full",
"61-182",
"up-to-60"
],
"default": "full",
"description": "Foreigners only: days working in Singapore in the year. full = tax resident (183 days or more, or as IRAS allows); 61-182 = non-resident, 15% or resident rates with no reliefs, whichever is more; up-to-60 = generally exempt."
}
},
"required": [
"pay",
"age"
],
"additionalProperties": false
}🟢calculate_income_tax(pay, bonus, employment_income, age, ya, ...)
Resident income tax from pay, bonus and other income, with every relief IRAS allows that the page counts (earned income, CPF, spouse, children, working mother, parents, NSman, life insurance, CPF top-ups, SRS), the relief cap, donations at 2.5 times, the Parenthood Tax Rebate, the band-by-band sum, and what an SRS or CPF top-up before 31 December would save. Worked out by the engine behind https://numbers.sg/tax/income-tax-calculator/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.
输入模式
{
"type": "object",
"properties": {
"pay": {
"type": "number",
"description": "Monthly pay before CPF in S$. Give pay (and bonus), or employment_income."
},
"bonus": {
"type": "number",
"default": 0,
"description": "The year’s bonus in S$."
},
"employment_income": {
"type": "number",
"description": "The year’s employment income in S$, instead of pay and bonus (no CPF is worked out from it: give cpf)."
},
"age": {
"type": "integer",
"default": 35,
"description": "Age on 31 December of the income year (sets Earned Income Relief and the CPF rate)."
},
"ya": {
"type": "string",
"enum": [
2026,
2027
],
"default": "2027",
"description": "Year of assessment (tax on the year before’s income)."
},
"res": {
"type": "string",
"enum": [
"sc",
"pr",
"fr"
],
"default": "sc",
"description": "sc citizen, pr permanent resident (CPF from the 3rd year assumed), fr foreigner who is a tax resident (no CPF)."
},
"sex": {
"type": "string",
"enum": [
"m",
"f"
],
"default": "m",
"description": "For NSman and working mother’s reliefs."
},
"cpf": {
"type": "number",
"description": "The year’s compulsory employee CPF in S$, if known; otherwise worked out from CPF Board’s rates."
},
"trade": {
"type": "number",
"default": 0,
"description": "Net trade, business or self-employed income in S$."
},
"rent": {
"type": "number",
"default": 0,
"description": "Net rental income in S$."
},
"other": {
"type": "number",
"default": 0,
"description": "Other taxable income in S$."
},
"donations": {
"type": "number",
"default": 0,
"description": "Approved donations in S$ (deducted at 2.5 times)."
},
"spouse": {
"type": "integer",
"enum": [
0,
1,
2
],
"default": 0,
"description": "Spouse Relief: 0 none, 1 spouse with income of S$4,000 or less, 2 disabled spouse."
},
"kids": {
"type": "string",
"description": "Children for Qualifying Child Relief, comma-separated: old (born before 2024) or new (born or adopted from 2024), add -dis for a child with disability, and :share for your share of the relief in %, e.g. \"new,old-dis:50\"."
},
"working_mother": {
"type": "boolean",
"default": false,
"description": "A working mother claiming Working Mother’s Child Relief (sex=f)."
},
"grandparent": {
"type": "boolean",
"default": false,
"description": "Grandparent Caregiver Relief (working mother with a child cared for by a grandparent)."
},
"parents": {
"type": "string",
"description": "Parents or grandparents claimed, comma-separated: stay (living with you) or apart, add -dis for disability, e.g. \"stay,apart\"."
},
"siblings_dis": {
"type": "integer",
"default": 0,
"description": "Siblings with disability you support."
},
"ns": {
"type": "string",
"enum": [
"none",
"gen",
"gen_act",
"kah",
"kah_act"
],
"default": "none",
"description": "NSman Relief for yourself: none, gen (non-key), gen_act (non-key, did activities), kah (key appointment holder), kah_act."
},
"ns_wife": {
"type": "boolean",
"default": false,
"description": "NSman Relief as the wife of an NSman."
},
"ns_parents": {
"type": "integer",
"default": 0,
"description": "NSman Relief as a parent: NSmen children (0 to 2)."
},
"disabled": {
"type": "boolean",
"default": false,
"description": "Earned Income Relief at the disability rate."
},
"life_premiums": {
"type": "number",
"default": 0,
"description": "Life insurance premiums paid in the year, S$ (relief only if CPF is under the limit)."
},
"life_insured": {
"type": "number",
"default": 0,
"description": "Sum insured on that life policy, S$."
},
"srs": {
"type": "number",
"default": 0,
"description": "SRS contributions in the income year, S$."
},
"topup_self": {
"type": "number",
"default": 0,
"description": "CPF cash top-ups to your own account, S$."
},
"topup_family": {
"type": "number",
"default": 0,
"description": "CPF cash top-ups for family members, S$."
},
"ptr": {
"type": "number",
"default": 0,
"description": "Parenthood Tax Rebate you still have, S$."
}
},
"required": [],
"additionalProperties": false
}🟢calculate_ssb_returns(bond, amount, redeem, switch_to)
Every interest payment on a Savings Bond, with its date and amount, to maturity or to an early redemption month (MAS’s coupon and accrued-interest sums), the total and the average return a year; with switch_to, keep the old bond or switch to a newer one, after the S$4 of fees. Worked out by the engine behind https://numbers.sg/tools/ssb-calculator/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.
输入模式
{
"type": "object",
"properties": {
"bond": {
"type": "string",
"description": "The bond: its issue code (GX26120A) or name (SBDEC26). Default: the newest bond MAS has announced."
},
"amount": {
"type": "integer",
"default": 10000,
"description": "Amount held in S$: multiples of 500, from 500 to 200000 (MAS’s limits)."
},
"redeem": {
"type": "string",
"description": "Month the money comes back if redeemed early, YYYY-MM (after the issue month, before maturity). Default: held to maturity."
},
"switch_to": {
"type": "string",
"description": "A later bond (code or name) to compare: keep the bond until it matures, or redeem it and buy this one, over the same months."
}
},
"required": [],
"additionalProperties": false
}🟢calculate_cpf_contribution(pay, bonus, age, born, who, ...)
What goes to CPF on a month’s pay and bonus: employee’s and employer’s shares, the rate for the age band, how it splits between the Ordinary, Special or Retirement and MediSave accounts, take-home before tax, and the employer’s cost with SDL and any offsets. Worked out by the engine behind https://numbers.sg/rates/cpf-contribution-rates/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.
输入模式
{
"type": "object",
"properties": {
"pay": {
"type": "number",
"description": "The month’s ordinary wage in S$ (pay before CPF), e.g. 5000. CPF counts it up to the ceiling."
},
"bonus": {
"type": "number",
"default": 0,
"description": "Additional wages paid this month in S$ (bonus, incentive). CPF counts them up to what the yearly ceiling leaves, assuming the same pay every month."
},
"age": {
"type": "integer",
"description": "Age in whole years. Give age or born; born is exact (CPF’s new rate starts the month after the birthday month)."
},
"born": {
"type": "string",
"description": "Birth month, YYYY-MM."
},
"who": {
"type": "string",
"enum": [
"sc",
"pr3",
"pr1g",
"pr2g",
"pr1f",
"pr2f",
"fr"
],
"default": "sc",
"description": "sc citizen; pr3 permanent resident from the 3rd year; pr1g / pr2g PR in the 1st / 2nd year on graduated rates; pr1f / pr2f PR in the 1st / 2nd year with full employer and graduated employee rates; fr foreigner (no CPF)."
},
"month": {
"type": "string",
"description": "The month the pay is for, YYYY-MM. Default: this month in Singapore. Months covered: the rate years CPF Board has published."
}
},
"required": [
"pay"
],
"additionalProperties": false
}社区
证据