search_agencies

Pack: transit-land · Endpoint: https://gateway.pipeworx.io/transit-land/mcp

Search transit agencies/operators by name or geo. Operators are the entities running services.

Parameters

NameTypeRequiredDescription
querystringnoFree-text search by agency/operator name (e.g. “BART”, “MTA”)
agency_idstringnoGTFS agency_id
latnumbernoLatitude (with radius_m + lon)
lonnumbernoLongitude
radius_mnumbernoSearch radius in meters (default 1000)
limitnumberno1-100 (default 20)

Example call

Arguments

{
  "name": "Bay Area Rapid Transit"
}

curl

curl -X POST https://gateway.pipeworx.io/transit-land/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_agencies","arguments":{"name":"Bay Area Rapid Transit"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('search_agencies', {
  "name": "Bay Area Rapid Transit"
});

More examples

{
  "lat": 37.7749,
  "lon": -122.4194,
  "radius_m": 5000,
  "limit": 10
}

Response shape

FieldTypeDescription
agenciesarrayList of matching agencies
metaobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "agencies": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agency_email": {
            "type": "null"
          },
          "agency_fare_url": {
            "type": "null"
          },
          "agency_id": {
            "type": "string",
            "description": "GTFS agency_id"
          },
          "agency_lang": {
            "type": "string"
          },
          "agency_name": {
            "type": "string"
          },
          "agency_phone": {
            "type": "string"
          },
          "agency_timezone": {
            "type": "string"
          },
          "agency_url": {
            "type": "string"
          },
          "feed_version": {
            "type": "object",
            "properties": {
              "feed": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "number"
                  },
                  "onestop_id": {
                    "type": "string"
                  }
                }
              },
              "fetched_at": {
                "type": "string"
              },
              "id": {
                "type": "number"
              },
              "sha1": {
                "type": "string"
              }
            }
          },
          "geometry": {
            "type": "object",
            "properties": {
              "coordinates": {
                "type": "array",
                "items": {
                  "type": "array",
                  "items": {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                }
              },
              "type": {
                "type": "string"
              }
            },
            "description": "GeoJSON geometry"
          },
          "id": {
            "type": "number",
            "description": "Transitland onestop_id"
          },
          "onestop_id": {
            "type": "string"
          },
          "operator": {
            "type": "object",
            "properties": {
              "feeds": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "name": {
                      "type": "null"
                    },
                    "onestop_id": {
                      "type": "string"
                    },
                    "spec": {
                      "type": "string"
                    }
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "onestop_id": {
                "type": "string"
              },
              "short_name": {
                "type": [
                  "null",
                  "string"
                ]
              },
              "tags": {
                "type": "null"
              }
            }
          },
          "places": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "adm0_name": {
                  "type": "string"
                },
                "adm1_name": {
                  "type": "string"
                },
                "city_name": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              }
            }
          }
        }
      },
      "description": "List of matching agencies"
    },
    "meta": {
      "type": "object",
      "properties": {
        "after": {
          "type": "number"
        },
        "next": {
          "type": "string"
        }
      }
    }
  },
  "description": "Search results for transit agencies/operators"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "transit-land": {
      "url": "https://gateway.pipeworx.io/transit-land/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026