Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

mta米塔

Agent Skill

mta 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,093

周安装

651

GitHub Stars

公开资料未说明

下载量

5,052
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mta(米塔)
来源仓库:https://github.com/brianleach/mta
安装命令:
openclaw skills install mta
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install mta

简介

纽约市地铁与公交实时信息查询工具。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

  • 提供到站预测、服务警报与路线规划服务。
  • 适用于通勤出行与交通状况了解。mta 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装命令:openclaw skills install mta。
  • 注意:数据由 NYC MTA 提供,可能存在延迟或误差。

SKILL.md

name
mta
description
NYC MTA transit — real-time subway arrivals, bus predictions, service alerts, and route info for the New York City subway and bus system. Use when the user asks about NYC public transit, subway times, MTA bus arrivals, service alerts, or nearby stops.
homepage
https://github.com/brianleach/mta-skill
license
MIT
metadata
clawdbot
emoji
🚇
tags
[transit, nyc, mta, transportation, subway, bus, train, schedule]
requires
bins
["node"]
env
["MTA_BUS_API_KEY"]
files
["scripts/mta.mjs", "proto/gtfs-realtime.proto", "proto/nyct-subway.proto"]
install
kind
shell
command
npm install --prefix $SKILL_DIR
label
Install Node.js dependencies (protobufjs)

NYC MTA Transit

Real-time New York City MTA transit data — subway arrivals (GTFS-RT protobuf), bus predictions (SIRI JSON API), service alerts, and route information. Subway and alerts work with zero config; bus data requires a free API key.

When to Use

  • User asks about NYC subway, MTA, the train, or specific lines (1/2/3, A/C/E, N/Q/R/W, etc.)
  • User asks "when is the next train" in a New York City context
  • User mentions specific NYC stations (Times Square, Penn Station, Grand Central, Union Square, etc.)
  • User asks about NYC bus routes (M1, B52, Bx12, Q44, S79, etc.)
  • User asks about MTA service alerts, delays, planned work, weekend service changes
  • User asks about MTA fares, MetroCard, OMNY
  • User asks about subway status or weekend service changes
  • User asks about nearby subway stops or bus stops in NYC

Data Sources

NYC MTA is multiple transit agencies with different data formats:

Subway Real-Time Feeds (GTFS-RT Protobuf, NO key required)

Feeds are grouped by line division. Each returns protobuf binary with NYCT extensions (direction, track info).

FeedLinesURL
1234567/GS1, 2, 3, 4, 5, 6, 7, Grand Central Shuttlehttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs
ACEA, C, E, Rockaway Shuttle, Franklin Shuttlehttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-ace
BDFMB, D, F, Mhttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-bdfm
GGhttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-g
JZJ, Zhttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-jz
LLhttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-l
NQRWN, Q, R, Whttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-nqrw
SIRStaten Island Railwayhttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs-si

Feeds update every ~30 seconds. No API key required.

Bus Real-Time (SIRI JSON API, requires MTA_BUS_API_KEY)

Get a free key at: https://register.developer.obanyc.com/

EndpointDescription
SIRI StopMonitoringArrivals at a specific bus stop
SIRI VehicleMonitoringAll vehicles on a bus route
OneBusAway Stop InfoStop details and nearby stops
OneBusAway RoutesRoute discovery

Rate limit: 1 request per 30 seconds.

Service Alerts (GTFS-RT Protobuf, NO key required)

FeedURL
Subway Alertshttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/subway-alerts
Bus Alertshttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/bus-alerts
All Alertshttps://api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/all-alerts

GTFS Static Feed

FeedURL
Subwayhttp://web.mta.info/developers/data/nyct/subway/google_transit.zip

Implementation

Script: scripts/mta.mjs

Main entry point. Supports these commands:

# Subway arrivals
node scripts/mta.mjs arrivals --stop-search "times square"
node scripts/mta.mjs arrivals --stop-search "penn station" --line A
node scripts/mta.mjs arrivals --stop 127N
node scripts/mta.mjs arrivals --station "Grand Central"

# Bus arrivals (requires MTA_BUS_API_KEY)
node scripts/mta.mjs bus-arrivals --stop MTA_308209
node scripts/mta.mjs bus-arrivals --stop MTA_308209 --route M1

# Vehicle tracking
node scripts/mta.mjs vehicles --line 1
node scripts/mta.mjs bus-vehicles --route B52

# Service alerts
node scripts/mta.mjs alerts
node scripts/mta.mjs alerts --subway
node scripts/mta.mjs alerts --bus
node scripts/mta.mjs alerts --line A

# Routes and stops
node scripts/mta.mjs routes
node scripts/mta.mjs bus-routes
node scripts/mta.mjs stops --search "grand central"
node scripts/mta.mjs stops --near 40.7484,-73.9856
node scripts/mta.mjs bus-stops --near 40.7484,-73.9856
node scripts/mta.mjs bus-stops --route M1
node scripts/mta.mjs route-info --line A

# Maintenance
node scripts/mta.mjs refresh-gtfs

Setup: Bus API Key

Subway and alert commands work with zero configuration. For bus commands:

  1. Get a free key at https://register.developer.obanyc.com/
  2. Set environment variable: MTA_BUS_API_KEY

Setup: GTFS Static Data

On first use, run node scripts/mta.mjs refresh-gtfs to download subway stop/route data to ~/.mta/gtfs/. Refresh periodically (data updates hourly).

NYC Subway Lines Reference

LineColorRouteTerminals
1Red7th Ave LocalVan Cortlandt Park-242 St ↔ South Ferry
2Red7th Ave ExpressWakefield-241 St ↔ Flatbush Ave-Brooklyn College
3Red7th Ave ExpressHarlem-148 St ↔ New Lots Ave
4GreenLexington Ave ExpressWoodlawn ↔ Crown Heights-Utica Ave
5GreenLexington Ave ExpressEastchester-Dyre Ave ↔ Flatbush Ave-Brooklyn College
6GreenLexington Ave LocalPelham Bay Park ↔ Brooklyn Bridge-City Hall
7PurpleFlushingFlushing-Main St ↔ 34 St-Hudson Yards
ABlue8th Ave ExpressInwood-207 St ↔ Far Rockaway / Ozone Park-Lefferts Blvd
CBlue8th Ave Local168 St ↔ Euclid Ave
EBlue8th Ave LocalJamaica Center ↔ World Trade Center
BOrange6th Ave ExpressBedford Park Blvd ↔ Brighton Beach
DOrange6th Ave ExpressNorwood-205 St ↔ Coney Island-Stillwell Ave
FOrange6th Ave LocalJamaica-179 St ↔ Coney Island-Stillwell Ave
MOrange6th Ave LocalMiddle Village-Metropolitan Ave ↔ Forest Hills-71 Ave
GLight GreenBrooklyn-Queens CrosstownCourt Sq ↔ Church Ave
JBrownNassau StJamaica Center ↔ Broad St
ZBrownNassau St ExpressJamaica Center ↔ Broad St (Peak only)
LGray14th St-Canarsie8 Ave ↔ Canarsie-Rockaway Pkwy
NYellowBroadway ExpressAstoria-Ditmars Blvd ↔ Coney Island-Stillwell Ave
QYellowBroadway Express96 St ↔ Coney Island-Stillwell Ave
RYellowBroadway LocalForest Hills-71 Ave ↔ Bay Ridge-95 St
WYellowBroadway LocalAstoria-Ditmars Blvd ↔ Whitehall St-South Ferry
SGray42nd St ShuttleTimes Sq-42 St ↔ Grand Central-42 St
SGrayFranklin Ave ShuttleFranklin Ave ↔ Prospect Park
SGrayRockaway Park ShuttleBroad Channel ↔ Rockaway Park-Beach 116 St
SIRBlueStaten Island RailwaySt George ↔ Tottenville

Key Bus Routes Reference

RouteNameBorough
M15th Ave / Madison AveManhattan
M151st Ave / 2nd AveManhattan
M3434th Street CrosstownManhattan
M4242nd Street CrosstownManhattan
M60LaGuardia Airport LinkManhattan/Queens
B44Nostrand AveBrooklyn
B52Gates Ave/Greene AveBrooklyn
Bx12Fordham Road/Pelham PkwyBronx
Q44Merrick Blvd/Cross IslandQueens
S79Hylan BlvdStaten Island
X27Bay Ridge-Downtown Manhattan ExpressBrooklyn

MTA Fares Reference (2025)

Fare TypePrice
Subway/Bus (OMNY tap or MetroCard)$2.90
Bus-to-bus / subway-to-bus transferFree within 2 hours
Express Bus$7.00
7-Day Unlimited$34.00
30-Day Unlimited$132.00
Single Ride (vending machine only)$3.25
Reduced Fare$1.45

Payment via OMNY (contactless tap), MetroCard, or Ventra. Free transfers between subway and bus within 2 hours with OMNY.

Tips for Users

  • Subway stop IDs end with N (northbound/uptown) or S (southbound/downtown). Example: 127N = Times Sq northbound
  • Subway works with zero config — no API key needed for any subway command
  • Bus requires a free API key — get one at https://register.developer.obanyc.com/
  • Alerts always work — no key needed
  • Multiple subway feeds exist; the skill automatically fetches the right one(s) for the line requested
  • Use --stop-search for fuzzy name matching, --stop for exact stop IDs

Error Handling

  • If MTA_BUS_API_KEY is not set, bus commands print a helpful message with the signup URL; subway commands still work
  • Invalid station/stop searches show "No matching station found"
  • Network errors and API error responses produce friendly messages
  • If a subway feed returns empty data, note that real-time data may be temporarily unavailable

Response Formatting

When presenting transit info to the user:

  • Lead with the most actionable info (next arrival time, active alerts)
  • Show line letter/number + direction (e.g., "A train toward Far Rockaway, arriving 3 min")
  • For subway: show "Approaching" for trains at the station, minutes for upcoming
  • Show track info when available (actual vs scheduled track)
  • Always mention active service alerts for the line being queried
  • For buses: show route + destination + minutes/stops away
  • Times in 12-hour format with AM/PM

External Endpoints

EndpointData SentData Received
api-endpoint.mta.info/Dataservice/mtagtfsfeeds/nyct/gtfs*None (GET only)Subway positions/arrivals (Protobuf)
api-endpoint.mta.info/Dataservice/mtagtfsfeeds/camsys/*-alertsNone (GET only)Service alerts (Protobuf)
bustime.mta.info/api/siri/*API key (query param)Bus arrivals/positions (JSON)
bustime.mta.info/api/where/*API key (query param)Stop/route discovery (JSON)
web.mta.info/developers/data/nyct/subway/*None (GET only)GTFS static data (ZIP)

Subway and alert endpoints are open access with no authentication. Bus endpoints require a free API key passed as a query parameter.

Security & Privacy

  • Subway: No credentials required — subway and alert feeds are open access, no API keys or tokens
  • Bus: Free API key required — passed as a URL query parameter to MTA's official BusTime API
  • No user data transmitted — requests contain only API keys and route/stop identifiers, no personal information
  • Local storage only — GTFS static data is cached locally at ~/.mta/gtfs/; no data is written elsewhere
  • No telemetry — this skill does not phone home or collect usage data
  • Input handling — stop names and route IDs from user input are used only for local filtering, never interpolated into shell commands

Trust Statement

This skill reads publicly available transit data from MTA's official feeds and APIs. The bus API key is used only for MTA BusTime API authentication. The skill does not access, store, or transmit any personal information beyond the API key configured by the user.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.07%
按下载量换算3,793

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills