get_network
Pack: citybikes · Endpoint: https://gateway.pipeworx.io/citybikes/mcp
Check live bike availability at stations in a specific network (e.g., “citi-bike-nyc”). Returns station locations, available bikes, and empty slots.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Network id (e.g. “citi-bike-nyc”, “velib” for Paris, “nextbike-berlin”) |
Example call
Arguments
{
"id": "citi-bike-nyc"
}
curl
curl -X POST https://gateway.pipeworx.io/citybikes/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_network","arguments":{"id":"citi-bike-nyc"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_network', {
"id": "citi-bike-nyc"
});
More examples
{
"id": "velib"
}
Response shape
Always returns: id, name, city, country, station_count, stations
| Field | Type | Description |
|---|---|---|
id | string | Network identifier |
name | string | Network name |
city | string | City where network operates |
country | string | Country where network operates |
station_count | integer | Total number of stations in network |
stations | array | Array of stations in network |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Network identifier"
},
"name": {
"type": "string",
"description": "Network name"
},
"city": {
"type": "string",
"description": "City where network operates"
},
"country": {
"type": "string",
"description": "Country where network operates"
},
"station_count": {
"type": "integer",
"description": "Total number of stations in network"
},
"stations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Station identifier"
},
"name": {
"type": "string",
"description": "Station name"
},
"free_bikes": {
"type": "integer",
"description": "Number of available bikes"
},
"empty_slots": {
"type": "integer",
"description": "Number of empty docking slots"
},
"latitude": {
"type": "number",
"description": "Station latitude"
},
"longitude": {
"type": "number",
"description": "Station longitude"
},
"timestamp": {
"type": "string",
"description": "Last update timestamp"
}
},
"required": [
"id",
"name",
"free_bikes",
"empty_slots",
"latitude",
"longitude",
"timestamp"
]
},
"description": "Array of stations in network"
}
},
"required": [
"id",
"name",
"city",
"country",
"station_count",
"stations"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"citybikes": {
"url": "https://gateway.pipeworx.io/citybikes/mcp"
}
}
}
See Getting Started for client-specific install steps.