
Borgo
io.github.ABCastorPublished by GitHub account ABCastorv0.1.0Updated Nov 7, 2026
Compare cities to live in on open, sourced data: take-home pay, rent, visas, climate, safety.
Overview
Compares cities to live in on open, sourced data — take-home pay, rent, visas, climate and safety — weighted by the user's own priorities.
- What you can do
- Compare and rank any number of cities on weighted dials such as money left, nice days, safety, health and research
- Model monthly money kept from gross salary through country tax models, minus rent, spending, childcare and health costs
- Check who in a household can move to a place without a visa, using passports
- Fetch figures for any real place on demand, each with its source, period and city-or-country level
- Propose corrections to figures, rules or sources for review
- When to use it
- Useful when someone is weighing where to live or work and wants an assistant to compare candidate cities with explicit weights, sourced numbers and visible gaps rather than one-site-at-a-time answers.
- Requirements
- Runs locally over stdio via npx, needing Node.js 22.13 or newer. No account, API key or environment variable is declared. It fetches data from public sources such as Open-Meteo, GeoNames, World Bank and OpenStreetMap, so network access is needed.
Installation
In SourceWeft
- Open Borgo in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Borgo
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:
Add the MCP server to your assistant.
Claude Code
Claude Desktop, Cursor and other JSON-configured clients:
Codex
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:
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.
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; runnode pipeline/sources/geonames.ts, then the snapshot sources. - A source is one file in
registry/(copy a similar one;npm testvalidates it) and, to fetch it on demand, one fetcher insrc/fetch/registered insrc/fetch/index.ts(browser and Node) orsrc/fetch/node/index.ts(Node only).pipeline/build-data.tsrefuses 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 insrc/core/groups.ts. - A country's tax is one module in
src/tax/with its official sources and caveats, registered insrc/tax/index.ts, with worked examples intest/.
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/.
Source: README.md at commit 5086af3
Tools
0Version history
1- v0.1.0LatestNov 7, 2026
Score
50% 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 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- 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