Borgo

io.github.ABCastor由 GitHub 账号 ABCastor 发布v0.1.0更新于 Nov 7, 2026

Compare cities to live in on open, sourced data: take-home pay, rent, visas, climate, safety.

概览

AI 生成的概览

基于公开且有来源的数据比较宜居城市——税后收入、房租、签证、气候与安全,并按用户自己的权重排序。

可以做什么
  • 按权重对任意数量的城市进行对比和排名,维度包括结余、宜人天气、安全、健康与研究
  • 用各国税务模型从税前薪资推算每月结余,扣除房租、开销、育儿与医疗费用
  • 依据护照判断家庭成员能否免签移居某地
  • 按需抓取任意真实地点的数据,并标注来源、时段以及是城市还是国家级
  • 提交对数据、规则或来源的更正建议以供审核
适用场景
适合在考虑移居或择业时,让助手按明确权重、有来源的数字和可见的数据缺口来比较候选城市,而不是逐个网站拼凑答案。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 22.13 或更高版本。未声明需要账号、API 密钥或环境变量。它会从 Open-Meteo、GeoNames、世界银行、OpenStreetMap 等公开来源抓取数据,因此需要网络访问。
安装前请注意
它会就所查询的地点向第三方公开数据源发起请求,发送地名和坐标。对比结果保存在浏览器本地存储中;分享链接在勾选后可能包含薪资、护照、年龄、子女和自定义数字。项目处于早期阶段,英国和爱尔兰以外缺少房租数据,部分指标为国家层面而非城市层面。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Borgo,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Borgo

[checks]

Borgo (Italian for a village) compares any number of cities on open data, weighted by what you value: what you would earn after tax and keep after rent, who in your household can move there without a visa, and how each place does on climate, air, safety, health and research. Every figure shows its source, the period it describes, and whether it describes the city itself or only its country.

It runs in the browser with no account and no server. The same engine runs as a command-line tool (borgo, which also answers to where-to-live) and as an MCP server, so an AI assistant can answer "where should I live?" with the numbers you would see.

Why I built this: I was deciding with a co-founder where to live and start a company, weighing San Francisco, London and Dublin against staying here in Torino. When I put together my own comparison, every site I pulled from answered one slice: one had price levels, another weather, another a salary calculator, and none weighted them by what mattered to me or said whether both of us could legally work there. Teleport, which once put those pieces together, is gone. So I built the comparison I wanted and made it open, for anyone (or their agent) to run with their own weights.

Status: early. Any city can be fetched on demand; 57 have public pages. Take-home pay for 26 countries (most of Europe, the United Kingdom, the United States with eight state modules and New York City, Canada, Australia, Singapore, Japan and the UAE), and 17 tax regimes for people moving in, with their conditions and how long they last.

Quickstart

With Node.js 22.13 or newer, one command runs Borgo, with no clone:

sh
npx -y @abcastor/borgo mcp                                       # the MCP server, over stdionpx -y @abcastor/borgo compare Lisbon Berlin --salary "60k EUR"   # the command line

Add the MCP server to your assistant.

Claude Code

sh
claude mcp add borgo -- npx -y @abcastor/borgo mcp

Claude Desktop, Cursor and other JSON-configured clients:

json
{  "mcpServers": {    "borgo": {      "command": "npx",      "args": ["-y", "@abcastor/borgo", "mcp"]    }  }}

Codex

sh
codex mcp add borgo -- npx -y @abcastor/borgo mcp

docs/agents.md has every tool, every command and where each client keeps its configuration.

From a clone, with Node.js 26 or newer, which runs the TypeScript sources directly:

sh
git clone https://github.com/ABCastor/borgo && cd borgonpm installnode pipeline/build-data.ts      # assemble data/ into public/data/dataset.json, refusing anything unsourcednode scripts/build.ts --serve    # build dist/ and serve it at http://127.0.0.1:8794/npm test                         # engine, money model and tax modules

Pick your cities and the answer is there: the cities ranked on two dials, money left and nice days, with one sentence saying who leads and the one input that would make the answer firmer (your salary, a rent no open source has, a passport). Nice days are yours to define: the range, 18 to 30 °C feels-like to start, sits on the nice-days dial and on every sheet. Add a third priority if you like; the rest (the right to live there as a weight, health, safety, children once you have them, people, work and ambition, getting around, nature, where you stand, and lines of your own) waits under More priorities, each group one dial with its parts inside. Who can move there is a check, not a dial: give each person's passport and every sheet says yes, needs a visa or permit, or not checked; mark it must pass to rule out the rest. No salary is assumed: money counts once you give one (one figure everywhere, or one per city), and pension shares, tax settings and newcomer regimes sit behind each money sheet's advanced section. Click any figure to see where it came from, or replace it with your own number. Settings (the gear) switches °C or °F, km or miles, the currency money is shown in, and how numbers and dates are written.

Your comparison stays in your browser (its local storage) and is sent nowhere. Share shows what its link will carry before you copy it: the cities, the weights and must-pass lines, the nice-day range, the home size and the settings. Pay, spending and savings; who is moving (names, passports, ages, children); your own numbers (rents and replaced figures); your own lines; and where you stand stay out unless you tick them. The link carries them after #share=, the part of an address browsers never send to a server, and the app removes it from the address once read. The page loads its own files and nothing else; adding a place sends only its name and coordinates to the sources that cover it.

Explore more places, under your cities (and on its own page, Map), colours the whole world by what you value: your own score, nice days in your own range, who in your household may live there, money kept or any other dial, and it follows the dials as you move them. The land shows how many months of the year, 0 to 12, have an afternoon high in your nice-day range, and changes as you change the range. Your cities are ringed and ranked on whatever the map shows. Point at any city or town to read it; click it to pin its card (its months in your range, take-home pay once you give a salary, and the figures its rank rests on), and add it from there with Add to my cities. The card works from the keyboard and closes with Escape; on a phone it rises from the bottom of the screen.

How the score works

Each line turns one figure into a score from 0 to 1 against a fixed worst and best: PM2.5 runs from 35 µg/m³ down to the WHO guideline of 5, the shortest day of the year from 6 to 11 hours. Your weight decides how many of the 100 points that line can give. A group's dial is the sum of its lines' weights: moving it shares the new weight over them in the proportions they had, so the score is the same as setting each line by hand. A missing figure never scores better than a real one. Where a city has no figure on a line, it scores as the lowest of your other cities on it, so a gap can only cost it, never win it a place; a line no city has a figure for counts for none of them; and a city that lacks a figure your other cities have is marked "Partial data", with the share of its score that rests on its own figures and what it lacks. A passport, a salary or a rent you have not given is not partial data: the answer asks for it instead. Money is never filled in: when one city lacks rent, every city is compared on take-home pay alone, less the health premium where cover is bought outside pay (or on cost alone when no salary is given, or money is left out of the score), and one line says so with the input that would fix it, such as "add your rent for Zurich". When a city's missing figures could still carry it past the leader, the answer says the lead is provisional and what is missing. A line marked must pass passes, fails or is unknown: a city that fails is ruled out, and a city that cannot be checked yet (no figure, a passport not given) is shown as unknown and ranks after every city that passes. "Everyone can move there" is the usual one; a person whose passports are not given is not checked, rather than called in need of a visa.

"What you keep" each month is take-home pay (gross salary through the country's tax model, after pension contributions) minus rent, minus your own monthly spending scaled by the city's price level, minus childcare for children under 6 after public support (your own cost when you give it, none when you use no paid care), minus health costs paid out of pocket and any health insurance premium bought outside pay. A figure that leaves out a cost that is due (a premium, childcare with no open figure) reads "at most", names what it lacks with a field to add it, and is not scored until it is whole; a tax approximation is named beside the figure; a newcomer regime you count without confirming every condition is labelled a scenario. Cost of living is shown beside it and counts on its own only if you weight it, since money left already counts every cost. Savings show as months of expenses covered with no income. You can override any of it.

Where the data comes from

The project keeps a curated list of sources, not a copy of their figures. registry/ holds one file per source: what it measures in plain words, where and when it applies, its licence, whether we may redistribute it, how to fetch it (endpoint, whether a browser may read it, any key), how often it changes, and who vetted it. Your browser, the CLI or the MCP server fetch from those sources for the places you ask about and keep the figures, each with the address it was read from, on your side. See docs/architecture.md.

Any real place works: type "Palermo" in the app, run borgo fetch "Palermo, IT", or ask your agent through the MCP server. A small snapshot of open-licensed figures for 57 seed cities is committed so the public city pages can show numbers.

WhatSourceLicenceLevel
Place, coordinates, population, regionGeoNames (through Open-Meteo's geocoder), WikidataCC BY 4.0, CC0city
Air and feels-like temperature, hourly temperature, cloud, wet daysOpen-Meteo (ERA5 reanalysis, last five full years)CC BY 4.0city coordinates
Sunshine, measuredWMO 1991-2020 normals (NOAA NCEI), MeteostatWMO policy, CC BY 4.0nearest station
Fine dust (PM2.5)WHO Ambient Air Quality Database, else CAMS modelledWHO terms, CC BY 4.0city
RentsONS (UK), CSO and RTB (Ireland)OGL v3, CC BY 4.0city or region
Price levels, homicides, life expectancy, doctors, unemploymentWorld Bank WDICC BY 4.0country
Control of corruptionWorld Bank Worldwide Governance IndicatorsCC BY 4.0country
Politics, left to rightLatest national election: official results from the electoral authorities, party positions from ParlGov; 18 countries, Swiss cantons, Canadian provinces and Australian states, no figure where too little of the vote is positioned; see docs/positions.mdCC BY 4.0 (as compiled here)country, canton, province or state
Abortion law, same-sex couples in lawThe statutes, each citedofficial textscountry, or US state
Life satisfactionOECD Well-being DatabaseOECD termscountry
Research output per residentOpenAlex institutionsCC0city
Developers on GitHub per 1,000 residentsGitHub user search: total counts of profiles by location onlyno data licence; counts only (GitHub Acceptable Use Policies)city
Distance to the edge of the built-up cityGHSL Urban Centre Database 2025 (European Commission, JRC)CC BY 4.0city
Adults with a degreeEurostat regional labour force survey (edat_lfse_04)Eurostat reuse with acknowledgementregion
Walkable streets, cycle networkOpenStreetMap via the Overpass APIODbL 1.0city
The world map: land, countries, townsNatural Earth 1:50m countries, 1:10m populated placesPublic domaincountry, town
The world map: afternoon high by monthNASA POWER climatology (MERRA-2, 2001-2025)CC0grid of about 50 km, averaged per map tile
Free movementEU Directive 2004/38/EC, the EEA Agreement, the EU-Swiss agreement, the UK-Ireland Common Travel Area, the Trans-Tasman arrangementofficial textscountry

Numbeo, WeatherSpark, the EIU and similar closed sources are in the registry as link-only pages: their terms forbid copying and automated reading, so the app links to them and no agent fetches them. A figure you read there yourself can be kept as your own number, in your browser or your own cache, and is never copied into this project.

Politics and the law are positions, not scores. You say where you stand and a place scores by how close it is; until you do, those lines show the fact and count for nothing. See docs/positions.md, and docs/values-research.md for what people weigh when choosing where to live and the open data behind each dial.

Sunshine is measured, not modelled. Reanalysis models overstate sunshine by 30 to 90% against weather stations (ERA5 gives London 2,765 hours a year; Heathrow measures 1,595), so sunshine comes only from station normals and is missing where no station is close.

The real gap is rent. No open source gives a one-bedroom rent for cities worldwide: official data covers the UK and Ireland today. Elsewhere the app asks for your own figure rather than inventing one. Research output counts papers per resident from universities, labs, hospitals and companies; it is a proxy for "who is in the room", not a count of startups. Homicides and the other World Bank lines are national figures standing in for the city, and say "national" beside the number.

Adding to it

Everything is a small, separate piece.

  • A city needs nothing: any place resolves on demand. A seed city (one with a public page) is one line in data/cities.seed.json; run node pipeline/sources/geonames.ts, then the snapshot sources.
  • A source is one file in registry/ (copy a similar one; npm test validates it) and, to fetch it on demand, one fetcher in src/fetch/ registered in src/fetch/index.ts (browser and Node) or src/fetch/node/index.ts (Node only). pipeline/build-data.ts refuses snapshot figures from a source the registry does not clear for redistribution, or does not declare for that metric.
  • A metric is one entry in src/core/metrics.ts.
  • A scoring line is one entry in src/core/criteria.ts: what it asks, its worst and best, and how it reads the data. It joins a group by its category, or by name in src/core/groups.ts.
  • A country's tax is one module in src/tax/ with its official sources and caveats, registered in src/tax/index.ts, with worked examples in test/.

Pull requests need a source and a licence for every number they add.

Corrections to any figure, rule or source are welcome from people and their agents: Suggest a correction under any figure's sources, the proposal form, or propose_change in the MCP server (borgo propose on the command line). Each proposal cites the official text it comes from and is checked on GitHub, then reviewed; borgo stale lists the curated facts due for review. See CONTRIBUTING.md.

Licence

The Map follows the spirit of Nick Winans' Where to Live map of pleasant days in the US (MIT); no code is copied from it.

Code under the Apache License 2.0. Compiled data under CC BY 4.0, with each source's own licence kept beside its figures. Fonts under the SIL Open Font License, with their licence files in public/fonts/.

[Chip, the Castor beaver, Castor, we give a dam]

来源:README.md,提交 5086af3

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Nov 7, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分