USVI Public Records
Search and read U.S. Virgin Islands public records: laws, court records, audits, hearings, reports.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
SBB Open Data via OpenDataSoft
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"sbb-opendata": {
"command": "uvx",
"args": [
"sbb-opendata-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add sbb-opendata -- uvx sbb-opendata-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"sbb-opendata": {
"command": "uvx",
"args": [
"sbb-opendata-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"sbb-opendata": {
"type": "stdio",
"command": "uvx",
"args": [
"sbb-opendata-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub malkreide ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.0) เข้า registry 42 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี USVI Public Records, Korean Government Documents (HWPX), Korea Tax Law
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Search and read U.S. Virgin Islands public records: laws, court records, audits, hearings, reports.
Turns a draft into a Korean government report or press release as HWPX in each ministry's format
Korea tax law: NTS rulings, court/tribunal decisions, basic rules, treaties, point-in-time statutes
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide/swiss-public-data-mcp)
MCP server connecting AI models to Swiss Federal Railways (SBB) open data – passenger frequency, live rail disruptions, infrastructure & real-estate projects, train counts, platform data, rolling stock and station search from data.sbb.ch. No API key required.
🇩🇪 Deutsche Version
sbb-opendata-mcp gives AI assistants like Claude direct access to public SBB data – no copy-pasting or manual API calls. A question like *"How many passengers passed through Zürich HB every day in 2024?"* is answered with real measured data.
The SBB Open Data portal speaks the OpenDataSoft REST API (v2.1). This server translates it into clean Markdown and JSON for the AI model, and adds MCP structuredContent alongside the human-readable text so programmatic clients can consume the underlying records without re-parsing. The server is model-agnostic and works with any MCP-compatible client.
Anchor demo query: *"Compare Zürich HB, Bern and Basel SBB by passenger frequency and platform capacity."* → More use cases by audience →
Install uv (recommended):
curl -LsSf https://astral.sh/uv/install.sh | sh
From PyPI:
pip install sbb-opendata-mcp
Or with uvx (no permanent installation):
uvx sbb-opendata-mcp
For local development, install from a clone in editable mode:
git clone https://github.com/malkreide/sbb-opendata-mcp.git
cd sbb-opendata-mcp pip install -e ".[dev]"
# Start the server (stdio mode for Claude Desktop)
sbb-opendata-mcp
Try it immediately in Claude Desktop:
*"How many people boarded at Zürich HB daily in 2024?"*
*"Are there any current disruptions on the Swiss rail network?"*
The server needs no configuration to run over stdio. The variables below tune the optional Streamable HTTP transport, logging and observability.
| Variable | Effect | Default |
|---|---|---|
MCP_HOST | Bind host for the HTTP transport. Keep 127.0.0.1 locally; only bind 0.0.0.0 inside a controlled container/cloud environment. | 127.0.0.1 |
MCP_PORT | Port for the HTTP transport. | 8000 |
MCP_ALLOWED_HOSTS | Comma-separated host allow-list for DNS-rebinding protection (e.g. your-app.onrender.com,your-app.onrender.com:*). | localhost only |
MCP_ALLOWED_ORIGINS | Comma-separated browser-origin allow-list (e.g. https://your-app.onrender.com). | _(none)_ |
LOG_LEVEL | Log verbosity (DEBUG/INFO/WARNING/…). | INFO |
LOG_FORMAT | json for structured logs; anything else for human-readable text. Always written to stderr. | text |
🔒 DNS-rebinding / Origin protection is always on; localhost is allow-listed
so local HTTP development works out of the box. Logs go to stderr — stdout is
reserved for the stdio JSON-RPC channel.
{
"mcpServers": { "sbb-opendata": { "command": "uvx", "args": ["sbb-opendata-mcp"] } } }
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonRestart Claude Desktop — the server is downloaded automatically on first use.
Works with Cursor, Windsurf, VS Code + Continue, LibreChat, Cline and self-hosted models via mcp-proxy — same configuration as above.
For use via claude.ai in the browser or remote servers (e.g. Render.com). The cloud transport is Streamable HTTP (endpoint /mcp).
Docker (recommended):
# Build + run with explicit resource limits (see docker-compose.yml)
docker compose up --build
The image is a multi-stage build running as a non-root user; docker-compose.yml adds read_only, no-new-privileges and memory/CPU/PID limits.
Manual / Render.com:
pip install -e .
export MCP_HOST=0.0.0.0 export MCP_ALLOWED_HOSTS="your-app.onrender.com,your-app.onrender.com:*" export MCP_ALLOWED_ORIGINS="https://your-app.onrender.com" python -m sbb_opendata_mcp.server --http --port 8000
⚠️ Binding: In a network transport the server binds to
127.0.0.1by
default so a locally started server is not exposed to your whole network.
Set
MCP_HOST=0.0.0.0only in a container/cloud environment where binding
to all interfaces is intended (the Docker image does this for you), and place
the server behind a reverse proxy that enforces rate limiting (and
authentication, if the endpoint should not be public). See
SECURITY.md.
| Tool | Description | Data Update |
|---|---|---|
sbb_get_passenger_frequency | Boardings/alightings by station and year (daily avg.) | Annual |
sbb_get_rail_disruptions | Live rail traffic messages | Every 5 min. |
sbb_get_real_estate_projects | SBB real estate development projects | Daily |
sbb_get_trains_per_segment | Train counts per route segment (SBB, BLS, SOB …) | Annual |
sbb_get_platform_data | Platform data (length, type, area) | Ongoing |
sbb_get_rolling_stock | Rolling stock (capacity, year built) | Ongoing |
sbb_compare_stations | Compare up to 10 stations (multi-dataset) | – |
sbb_search_stations | Search stops (Swiss DiDok register, all CH) | Ongoing |
sbb_list_datasets | List all ~89 SBB open datasets | – |
All tools support response_format: "markdown" (human-readable) and "json" (machine-readable), plus pagination. Every tool also returns MCP structuredContent (the underlying records/metadata) alongside the rendered text, and declares its shape as outputSchema. Error results carry isError: true and {error, upstream_unavailable} instead.
| Query | Tool |
|---|---|
| *"How many people boarded at Zürich HB daily in 2024?"* | sbb_get_passenger_frequency |
| *"Are there any current disruptions on the Swiss rail network?"* | sbb_get_rail_disruptions |
| *"Compare Zürich HB, Bern and Basel SBB"* | sbb_compare_stations |
| *"Which SBB real-estate construction projects are running?"* | sbb_get_real_estate_projects |
| *"How many trains run yearly on the Zürich–Winterthur route?"* | sbb_get_trains_per_segment |
| *"Which stops exist in Wädenswil?"* | sbb_search_stations |
→ More use cases by audience
┌─────────────────┐ ┌───────────────────────────┐ ┌──────────────────────────┐
│ Claude / AI │────▶│ SBB Open Data MCP │────▶│ data.sbb.ch │ │ (MCP Host) │◀────│ (MCP Server) │◀────│ │ └─────────────────┘ │ │ │ OpenDataSoft REST v2.1 │ │ 9 Tools │ │ (public, no API key) │ │ Stdio | Streamable HTTP │ │ │ │ │ │ passagierfrequenz │ │ Shared httpx client │ │ rail-traffic-information │ │ (pooled, lifespan-managed)│ │ construction-projects │ │ ODSQL escaping + Pydantic │ │ perron · rollmaterial │ │ validation │ │ zugzahlen · dienststellen│ └───────────────────────────┘ └──────────────────────────┘
sbb-opendata-mcp/
├── src/sbb_opendata_mcp/ │ ├── init.py │ └── server.py # FastMCP server, all 10 tool definitions ├── tests/ │ └── test_server.py # Unit + live API smoke tests ├── audits/ # MCP best-practice audit evidence ├── docs/assets/demo.svg # README demo asset ├── .github/workflows/ci.yml # GitHub Actions (Python 3.11/3.12/3.13) ├── Dockerfile # Multi-stage, non-root runtime image ├── docker-compose.yml # Local run with resource limits ├── claude_desktop_config.json # Example Claude Desktop config ├── pyproject.toml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── SECURITY.md ├── EXAMPLES.md ├── LICENSE ├── README.md # This file (English) └── README.de.md # German version
year/canton are regex-validated and every value interpolated into an ODSQL where clause is escaped via a central helper.See SECURITY.md for the full security posture.
limit and pagination.ตัดมาแค่ช่วงต้น อ่านต่อใน repo