rail_stations

Pack: wmata · Endpoint: https://gateway.pipeworx.io/wmata/mcp

Return all WMATA Metro rail stations, optionally filtered by line_code. Returns station code, name, line codes served, and latitude/longitude.

Parameters

NameTypeRequiredDescription
line_codestringno

Example call

Arguments

{
  "line_code": "RD"
}

curl

curl -X POST https://gateway.pipeworx.io/wmata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rail_stations","arguments":{"line_code":"RD"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('rail_stations', {
  "line_code": "RD"
});

More examples

{
  "line_code": "BL"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Response from WMATA rail stations API"
}

Connect

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

{
  "mcpServers": {
    "wmata": {
      "url": "https://gateway.pipeworx.io/wmata/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026