npm floodwisestdioApache-2.0updated 2mo ago
England flood-risk by postcode for AI agents โ verified Environment Agency data, not guesses.
What can you do with floodwise?
floodwise
England flood-risk by postcode for AI agents โ verified Environment Agency data, not guesses.
Verified, trustworthy data tools for AI agents. "Qiniso" means "truth" in Zulu.
Website ยท npm ยท MCP Registry
Ask an LLM "what's the flood risk at SW1A 1AA?" and it will answer confidently โ but it cannot know: per-postcode flood risk is specific, curated data that lives in a government dataset, not in a model's weights. floodwise looks the postcode up in the Environment Agency's official "Flood risk: postcode search tool" data and returns the real long-term risk band โ or an honest "not found" instead of a guess.
โ ๏ธ Read this first โ what floodwise is and isn't
- England only. The data is the Environment Agency's, which covers England. Wales (Natural Resources Wales), Scotland (SEPA) and Northern Ireland (DfI) are not covered. A valid Welsh/Scottish postcode returns "not found", never a guess.
- Area-level, not property-level. The risk is for the area around the addresses in a postcode โ not a specific building. The EA states this data is "generally not suitable for property level assessment".
- Long-term risk, not a live warning. It reflects the long-term annual chance of flooding, not whether flooding is happening now or forecast. It is not insurance, underwriting, surveying or professional advice.
Add it to Claude
floodwise runs locally over stdio (no key, no login). Once it's on npm, add it under mcpServers in your client config:
{ "command": "npx", "args": ["-y", "floodwise"] }
Use it as a library
npm i floodwise
import { floodRiskByPostcode, validatePostcode } from "floodwise";
floodRiskByPostcode("SW1A 1AA");
// {
// postcode: "SW1A 1AA", found: true, headlineRisk: "Very Low",
// addressesAtRisk: { high: 0, medium: 0, low: 0 }, groundwater: "Unlikely",
// coverage: "England", dataset: "ea-official", ...
// }
floodRiskByPostcode("EH1 1AA").found; // false โ valid postcode, but Scotland (out of EA coverage), no guess
validatePostcode("ec1a1bb"); // { valid: true, postcode: "EC1A 1BB", outcode: "EC1A", incode: "1BB" }
Postcodes are accepted spaced or unspaced, any case. A well-formed postcode that isn't in the loaded England dataset returns found: false with a clear note โ it never invents a risk level.
Tools โ 2
| Tool | What it answers |
|---|---|
| flood_risk_by_postcode | The EA long-term flood-risk band (High/Medium/Low/Very Low) for an England postcode, address counts per band, and the groundwater indication |
| validate_postcode | Is this a well-formed UK postcode? (deterministic format check + outcode/incode split) |
Data
The flood data is the Environment Agency "Flood risk: postcode search tool data" (England), published as open data under the Open Government Licence v3.0. Each postcode carries the number of addresses whose surrounding area is at high (โฅ3.3%/yr), medium (1โ3.3%) or low (0.1โ1%) long-term risk from rivers, sea or surface water (the highest of these), plus a separate groundwater Possible/Unlikely indication. Refreshed roughly quarterly.
This repository ships an illustrative starter sample (non-geographic
ZZpseudo-postcodes) so tests run out of the box โ every response from it is taggeddataset: "sample". To load the real data, downloadPostcodes_Risk_Assessment_All.csvfrom data.gov.uk / the Defra Data Services Platform and run:npm run build-data /path/to/Postcodes_Risk_Assessment_All.csv 2025-Q4 npm run build && npm test
Attribution: Contains public sector information licensed under the Open Government Licence v3.0. ยฉ Environment Agency copyright and/or database right. See NOTICE.
What it is not
- Not advice. Not insurance, underwriting, surveying, mortgage or legal advice; not a property-level survey.
- Not all flood types. Excludes flooding from highway drains, sewers and overland flow; groundwater is reported separately and isn't combined into the headline band.
- Not the whole UK. England only (see above).
- Not a guesser. Unknown/out-of-coverage postcodes return an honest "not found", never a fabricated risk level.
Architecture
A single TypeScript package exposing one MCP server over stdio (local / npx), driven by the same core.ts tool definitions that power the importable library. A Cloudflare Worker entry is included for a future hosted edge endpoint โ note the full England dataset (~1.6M postcodes) exceeds the Worker bundle limit, so the hosted build will move the data into Cloudflare D1 (a follow-on); the npm library and stdio server run the full dataset directly.
npm install
npm run build
npm test
Privacy
This tool runs locally on your machine and is built not to collect, store, or transmit your data โ no analytics, no telemetry, no account. All reference data is bundled โ no network calls, and nothing leaves your device. Full policy: https://qinisolabs.github.io/privacy.html.
License
Apache-2.0. Flood data ยฉ Environment Agency, Open Government Licence v3.0; see NOTICE.
Install
Add floodwise to your client. Pick the one you use.
claude mcp add floodwise -- npx -y floodwisecodex mcp add floodwise -- npx -y floodwiseamp mcp add floodwise -- npx -y floodwise{
"mcpServers": {
"floodwise": {
"command": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"floodwise": {
"command": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"floodwise","command":"npx","args":["-y","floodwise"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"floodwise": {
"command": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"floodwise": {
"command": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"floodwise": {
"command": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"floodwise": {
"type": "local",
"command": "npx",
"args": [
"-y",
"floodwise"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"floodwise": {
"command": {
"path": "npx",
"args": [
"-y",
"floodwise"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y floodwiseRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation21/25
- Maintenance16/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 71 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.0Latest | Jun 18, 2026 |