Algeria

io.github.syscliv0.1.0更新于 Oct 10, 2026

Algeria's 69 wilayas and 1541 communes, GPS lookups, and checks for Algerian formats.

概览

AI 生成的概览

让助手查询阿尔及利亚的省与市镇、把 GPS 坐标定位到市镇,并校验电话号码、RIP 等阿尔及利亚格式。

功能
该服务器通过只读工具提供阿尔及利亚行政区划数据:search_communes 可按法语或阿拉伯语名称查找市镇,支持旧名、音译和拼写错误;get_wilaya 按代码或名称返回省及其市镇;get_commune 按 ONS 代码返回市镇,并给出 69、58、48 省制下的归属;wilaya_changes 列出 2026 或 2019 年改革中变更归属的市镇;locate_point 返回某个 GPS 点所在的市镇与省;validate 校验电话号码、RIB、RIP、CCP、车牌、邮政编码、NIN、NIF、NIS、RC、省和市镇。
适用场景
适合助手需要回答阿尔及利亚行政区划问题的场景,例如某地属于哪个省、哪些市镇在改革中变更了省份、某个坐标落在哪个市镇,或某个阿尔及利亚标识符格式是否正确。
运行要求
以 stdio 方式在本地运行,需要 Node.js 18 或更高版本;通过 npm 包 @syscli/algeria-mcp 安装,例如使用 npx。未声明任何账号、API 密钥、环境变量或请求头,且不发起网络请求,因为数据随包提供。
安装前请注意
所有工具均为只读,不会写入、发送或删除数据。locate_point 使用的边界数据来自 OpenStreetMap(经 geoBoundaries,CC BY-SA 2.0),行政区划数据来自官方公报;结果取决于该包版本的数据与改革版本,而非实时官方记录。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

algeria-mcp

[npm] [CI]

An MCP server that lets AI assistants answer questions about Algeria's 69 wilayas and 1541 communes from the Journal officiel, and check Algerian formats such as phone numbers and RIP keys.

Ask your assistant things like:

  • Which wilaya is Bou Saada in since 2026?
  • Which communes moved to the wilaya of El Kantara?
  • Which commune is the point 36.365, 6.6147 in?
  • Is the RIP 007 99999 0000000200 91 well formed?

Setup

Also listed in the official MCP Registry as io.github.syscli/algeria-mcp.

Claude Code:

sh
claude mcp add algeria -- npx -y @syscli/algeria-mcp

Claude Desktop, Cursor and other clients, in their MCP configuration file:

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

It runs locally over stdio, needs Node.js 18 or later, and makes no network calls: all the data ships with the package.

Tools

tool
search_communesfind communes by name in French or Arabic, with old names, transliterations and typos
get_wilayaa wilaya by code or name, with its communes
get_communea commune by ONS code, with its wilaya under the 69, 58 and 48 maps
wilaya_changescommunes moved by the 2026 or 2019 reform
locate_pointthe commune and wilaya of a GPS point
validatecheck a phone number, RIB, RIP, CCP, plate, postal code, NIN, NIF, NIS, RC, wilaya or commune

All tools are read-only.

Data

  • Wilayas and communes: @syscli/algeria, from the Journal officiel. MIT.
  • Boundaries used by locate_point: OpenStreetMap via geoBoundaries, CC BY-SA 2.0. (c) OpenStreetMap contributors.
  • Format rules: @syscli/dz-format, with the source of each rule.

Related projects

projectwhatget it
algeriathe 69 wilayas and 1541 communes, search, GPS lookupsnpm @syscli/algeria, PyPI syscli-algeria, site AlgerieGeo
dz-formatchecks for phone numbers, RIP and RIB keys, plates, NIF, RC and morenpm @syscli/dz-format, PyPI dz-format, playground
algeria-mcpboth of the above for AI assistantsnpm @syscli/algeria-mcp, MCP Registry io.github.syscli/algeria-mcp

Releases and security

Versions are listed in CHANGELOG.md. Releases are published from GitHub Actions with npm provenance; npm audit signatures checks them. To report a security problem, see SECURITY.md.

License

MIT

来源:README.md,提交 b981cb7

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.1.0最新Oct 10, 2026