Sudan Atlas

io.github.aminshennan由 GitHub 帳號 aminshennan 發布v0.1.5更新於 Nov 22, 2026

Match Sudanese place names (Arabic or English) to official P-codes; get places and boundaries.

發布方自己的服務:Red Atlas Api

已驗證Streamable HTTP可網頁執行位置與生活資料與分析

概覽

AI 產生的概覽

將阿拉伯語或英語的蘇丹地名比對為官方 P-code,並回傳名稱、人口估計與 GeoJSON 邊界。

可以做什麼
  • 將單一地名的或最多 1000 個地名批次比對為官方 P-code,附信心分數與候選結果
  • 依英文或阿拉伯語部分名稱搜尋州與地方行政區
  • 依 P-code 查詢官方名稱、層級、所屬州、面積與估計人口
  • 列出全部 19 個一級行政區,或全國及某一州的地方行政區
  • 取得某地的 GeoJSON 邊界要素,可選輕量或中等精度
適用情境
適合處理蘇丹行政區劃資料:在製圖或與其他人道主義資料集串接前清理地名表格,或查詢州與地方行政區的官方名稱、代碼、人口和邊界。
執行需求
遠端 MCP 端點,使用 streamable HTTP;不需帳號、金鑰或本機執行環境。README 說明每個位址每分鐘最多 60 次請求。
安裝前請注意
送出的地名會在伺服器上處理(網站稱不儲存、不記錄日誌)。比對可能出錯或有歧義:信心不足時 P-code 為 null 並回傳候選,應由人判斷。人口為 2025 年中期估計值而非統計數,邊界不代表對任何領土法律地位的立場。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Sudan Atlas,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.aminshennan%2Fsudan-atlas/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "sudan-atlas": {
      "type": "http",
      "url": "https://atlas-sudan.vercel.app/api/mcp"
    }
  }
}

README

[Sudan Atlas logo: Sudan drawn in dots, with Khartoum in green]

Sudan Atlas toolkit

[DOI] [npm] [PyPI] [mcptry]

An open toolkit that turns messy Sudanese place names into official codes, and gives the names (Arabic and English) and boundaries of Sudan's 18 states, the Abyei PCA area and 189 localities. It contains:

  • Python and JavaScript packages (sudan-atlas on PyPI and npm) with the same matcher, data and results;
  • the data: boundaries following OCHA's COD-AB for Sudan (v03), a gazetteer of reviewed spellings, and the pipeline that builds them;
  • a skill for AI assistants, and a Claude Code plugin that adds it together with the Sudan Atlas MCP server;
  • an evaluation of the matcher on real humanitarian data.

Status: packages 0.1.5 on npm and PyPI; data release 2026.1 (COD-AB Sudan v03).

Use it online: the website atlas-sudan.vercel.app is built on this toolkit: a map of every state and locality, a map-maker that turns a spreadsheet of place names into a map (in the browser; files never leave your device), and the documentation.

Quick start

JavaScript (npm install sudan-atlas)

js
import { match, getFeature } from "sudan-atlas";match("El Hasaheesa", { stateHint: "Al Gezira", level: 2 }).pcode; // "SD15034"const shape = await getFeature("SD15034", "medium");               // GeoJSON Feature

Python (pip install sudan-atlas, or "sudan-atlas[geo]" for GeoDataFrames)

python
from sudan_atlas import match, get_localitiesmatch("الفاشر", level=2)["pcode"]  # 'SD02114'get_localities("SD15")              # the localities of Aj Jazirah

In a browser with no build step: import { match } from "https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"; the data files are on jsDelivr too, under …/[email protected]/data/.

AI assistants: in Claude Code, add the plugin, which brings the skill and the MCP server:

text
/plugin marketplace add aminshennan/sudan-atlas/plugin install sudan-atlas@sudan-atlas

Or add the server alone, in any client that supports remote MCP servers: claude mcp add --transport http sudan-atlas https://atlas-sudan.vercel.app/api/mcp. The skill works in other agents too: copy plugins/sudan-atlas/skills/sudan-atlas/ into the agent's skills folder. Names sent to the MCP server are processed on the server and not stored; each address may make 60 requests a minute.

Examples: a D3 choropleth from a messy spreadsheet, a state-and-locality picker, and a Python notebook.

What a match returns

js
{  pcode: "SD15034", name_en: "Al Hasahisa", name_ar: "الحصاحيصا", level: 2,  score: 0.9,            // 0 to 1  method: "fuzzy",         // exact, variant or fuzzy; ambiguous or none when there is no match  alternatives: [ ... ]    // the next three candidates, each with pcode, names, level and score}

When the best candidate scores below 0.82, or another place scores almost as high, pcode is null (None in Python) and alternatives lists the candidates: the matcher never guesses silently. "Gallabat" lies on a locality border and "Abyei" can mean the Abyei PCA area or the West Kordofan locality, so both come back as ambiguous for a person to decide. A state hint (a P-code or a state name in any spelling) and a level (1 = state, 2 = locality) settle most ambiguity.

We tested the matcher on 299 place names copied from eight public HDX datasets (UNHCR refugee sites, OCHA people reached and 3W, IOM DTM, IPC, schools, floods and population tables): 253 that should match a state or locality and 46 that should match nothing (camps, villages, names shared by several places, header and total rows). With a state hint, it finds the right place first time for 94.9 % of the 253, puts it among the top three for 99.6 %, and named no wrong place for any of the 299. Without a state hint: 85.0 % first time and 2.3 % wrong matches. The threshold was chosen on this same set, so these figures describe it rather than an independent test, and new data will produce some wrong matches; please report them. Details and every failure: docs/MATCHER_EVALUATION.md. The Python and JavaScript packages share the same rules and return identical results.

Independent test. We then measured the matcher once, unchanged, on 148 names it had never seen, from 16 other HDX datasets (docs/MATCHER_HOLDOUT.md). With a state hint it found the right place first time for 90.2 % of the 92 state and locality names (95 % range 82–95 %) and sent one of them to a wrong place. But 9 of the 56 village, camp and market names, which should match nothing, were matched to a locality, mostly where the data had no state column or the site is named after its town. Give the state whenever you have it, and check any match that comes from a village, camp, market or site column.

What it does

  • Name matching: El Fasher, Al Fashir and الفاشر all resolve to the same official P-code, with a confidence score and alternatives.
  • Boundaries: states (admin 1) and localities (admin 2) as GeoJSON and TopoJSON at three resolutions, following OCHA's COD-AB exactly.
  • Bilingual: every feature carries pcode, name_en and name_ar.
  • Runs on your machine: the packages ship the data as files and match locally, with no network calls (boundaries can also be loaded from a CDN in the browser).

Repository layout

text
data/          boundaries, gazetteer and test cases (one source of truth)pipeline/      Python scripts that rebuild data/ from data/raw/packages/js/   npm package: data + matcher (TypeScript)packages/py/   PyPI package: same API (Python)plugins/       Claude Code plugin: the skill plus the MCP serverexamples/      D3 map, dropdown form, Python notebookdocs/          DATA_POLICY.md, SOURCES.md, GAZETTEER.md, MATCHER_EVALUATION.md

Citing Sudan Atlas

If you use Sudan Atlas in a report, paper or product, please cite it:

Shennan, A. (2026). Sudan Atlas: official names, P-codes and boundaries for Sudan's states and localities. Zenodo. https://doi.org/10.5281/zenodo.24191931

Each GitHub release is archived on Zenodo; the "Cite this repository" button on GitHub gives the citation in APA and BibTeX, from CITATION.cff. Please also credit the boundary source: "OCHA (COD-AB Sudan), via HDX".

Help improve it

Found a spelling the matcher misses, or a name that should match differently? Open an issue with the name as written and the place it refers to. Every new spelling is reviewed before it is added.

Licence

  • Code: MIT
  • Boundaries: CC BY 3.0 IGO, derived from OCHA's COD-AB (details)
  • Gazetteer additions (variant spellings, normalisation rules, test cases): CC BY 4.0
  • OpenStreetMap town spellings: ODbL 1.0, © OpenStreetMap contributors. They are kept in their own file (variants_osm.json), so the ODbL covers that file only, not the other data or your matching results (details)
  • Sources are listed in docs/SOURCES.md. Boundary choices are documented in docs/DATA_POLICY.md.

Boundaries are shown for humanitarian, research and practical use and do not imply any opinion on the legal status of any territory.

Made by Amin Shennan.

來源:README.md,提交 5d8e96f

工具

6

match_place_name

Match a Sudanese place name

Match one state or locality name, in Arabic or English and any spelling, to its official P-code. Returns pcode (null when not confident), names, score 0-1, method (exact, variant, fuzzy, ambiguous, none) and up to three alternatives.

輸入參數name必填levelstate_hint

match_place_names

Match many Sudanese place names

Match up to 1,000 names at once (for example a spreadsheet column). Each item can carry its own state hint. Results are in the same order as the input.

輸入參數levelnames必填

search_places

Search Sudan's states and localities

Find states and localities whose official English or Arabic name contains the text, best first, with the matcher's answer for misspellings.

輸入參數limitquery必填

get_place

Details of a state or locality

Official names, level, parent state, localities (for a state), area in km² and estimated population (COD-PS 2025, mid-2025) for a P-code.

輸入參數pcode必填

list_places

List states or localities

All 19 admin-1 units (18 states and the Abyei PCA area), or the localities of the whole country or of one state.

輸入參數level必填state_pcode

get_boundary

Boundary of a state or locality

The boundary as a GeoJSON Feature (EPSG:4326) with the place's properties. 'light' is small and enough for most maps; 'medium' is more detailed.

輸入參數pcode必填resolution

版本歷史

2
  1. v0.1.5最新Nov 22, 2026
  2. v0.1.4Nov 20, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Atlas 整合