Citi Bike MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
What it does
The server gives an assistant one tool, nearest_citibikes. The tool takes a location. It returns the nearest stations, with the count of e-bikes, classic bikes, and free docks at each one.
The data comes from the public Citi Bike GBFS feeds. The tool reads the feeds on each call, so the counts are live.
Related MCP server: Bay Wheels MCP Server
The tool
nearest_citibikes
Input | Type | What it is |
| number | Latitude, in decimal degrees. |
| number | Longitude, in decimal degrees. |
| number, optional | The number of stations to return, from 1 to 50. The default is 5. |
The tool returns JSON. The stations are in order of distance, nearest first.
{
"query": { "lat": 40.7359, "lon": -73.9911, "limit": 1 },
"stations": [
{
"station_id": "example-id",
"name": "Broadway & E 14 St",
"lat": 40.7346,
"lon": -73.9907,
"distance_m": 148,
"capacity_total_docks": 66,
"available_total_bikes": 21,
"available_ebikes": 6,
"available_classic_bikes": 15,
"available_docks": 43,
"is_renting": 1,
"is_returning": 1,
"last_reported": 1730000000
}
]
}The values in this example are not real.
Run it
You need Node 18 or later. The server uses Smithery to build and to run.
git clone https://github.com/sjhangiani12/citibike_mcp.git
cd citibike_mcp
npm install
npm run devnpm run dev opens the server in the Smithery playground. It needs a Smithery account.
To deploy, push the repository to GitHub. Then add it at https://smithery.ai/new.
How it works
All the code is in src/index.ts. Smithery loads the default export, createServer, which returns the MCP server.
The tool reads
station_information.jsonandstation_status.jsonat the same time.It joins the two feeds on the station ID.
It measures the distance to each station with the haversine formula.
It sorts the stations by distance.
Classic bikes. The tool uses the mechanical count from the feed. If the feed has no such count, the tool subtracts the e-bikes from the total.
Limits
The tool covers Citi Bike only (New York City and Jersey City).
The distance is a straight line. It is not the distance on foot.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Live UK bike-share availability: nearby bikes and stations, popular stations, 90-day history.
Live NYC-area transit: subway, bus, PATH, NJ Transit, LIRR, Metro-North, NYC Ferry, Citi Bike.
Find EV charging stations, detail, and reliability check-ins via the global Open Charge Map.
Get real-time NYC bus arrivals, live vehicle locations, and service alerts. Plan trips between any…
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides real-time NYC subway information including train arrivals, station search, service alerts, and nearby station finder using live MTA data with intelligent location handling.7MIT
- FlicenseAqualityDmaintenanceProvides access to Bay Wheels realtime bikeshare data, enabling users to find nearest available bikes (standard or ebike) and docking stations with available spaces in the San Francisco Bay Area.2-
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to Montreal's Bixi bike-sharing data through the GBFS API. Enables querying station information, availability, nearby stations, and system alerts.MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying real-time bike-share feed data, including station availability, nearby bikes and docks, route checks, alerts, and system information across many cities.-