---
name: "xpay-mta-guide-nearest-station"
description: "Find closest subway stations by distance with accessibility info and real-time service status"
version: "1.0.0"
price: "$0.01/call"
provider: "MTA Guide"
---

# Nearest Station

Find closest subway stations by distance with accessibility info and real-time service status

**Provider:** MTA Guide
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to find closest subway stations by distance with accessibility info and real-time service status. This is part of the MTA Guide provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 7+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("mta-guide/nearest_station")`
2. **`xpay_run`** — Execute: `xpay_run("mta-guide/nearest_station", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `accessible_only` | boolean | No | Return only wheelchair accessible stations |
| `limit` | number | No | Maximum number of stations to return |
| `location` | string | No | Address, landmark, or neighborhood |
| `lon` | number | No | Longitude coordinate |
| `radius` | number | No | Search radius in meters |
| `service_filter` | array | No | Only return stations served by specific lines |
| `lat` | number | No | Latitude coordinate |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [MTA Guide (all tools)](https://xpay.tools/skills/mta-guide/SKILL.md) — 8 tools
- [Find Station](https://xpay.tools/skills/mta-guide/find-station/SKILL.md) — $0.01/call
- [Next Trains](https://xpay.tools/skills/mta-guide/next-trains/SKILL.md) — $0.01/call
- [Service Status](https://xpay.tools/skills/mta-guide/service-status/SKILL.md) — $0.01/call
- [Subway Alerts](https://xpay.tools/skills/mta-guide/subway-alerts/SKILL.md) — $0.01/call
- [Station Transfers](https://xpay.tools/skills/mta-guide/station-transfers/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/mta-guide/nearest-station/
- Provider: https://xpay.tools/mta-guide/
- All tools: https://xpay.tools/explore
