à portée MCP server
README.md
<p align="center"><img src="images/icon.png" width="96" height="96" alt="à portée"></p>
# à portée MCP server
[à portée](https://aportee.ca) maps walking, cycling and transit times to everyday places across
Canada. Its MCP server lets Claude, ChatGPT, Cursor and other AI clients look up those times from
any point in Canada, list the nearest places on foot with their direction, and find towns by name.
Members can also check whether a trip fits a time window, see what lies within some minutes of a
point, and find where two to four people could meet.

This repository has the server's listing, licence and issue tracker. The source code is private.
Documentation lives at **[aportee.ca/dev/mcp](https://aportee.ca/dev/mcp)**.
## Connect
**Hosted (no install, no key to start):** add a custom connector with this URL.
```
https://aportee.ca/v1/mcp
```
- **Claude:** Settings, then Connectors, then Add custom connector.
- **ChatGPT:** Settings, then Apps, then Add custom MCP server.
- **Claude Code:**
```sh
claude mcp add --transport http aportee https://aportee.ca/v1/mcp
```
Without a key, the server answers 100 requests a day from each IP address. A free key raises that to
1,000 a day and adds batches of up to 100 points, walking routes, the search for named places near a
point, transit outside the weekday morning peak, the worst-case transit time, bike and transit
together, and Reach. To get one from the chat, ask the assistant to sign you in: `start_sign_in`
gives a link and a code to approve in your browser. To keep using a key, add it to the client as the
`X-Api-Key` header (in Claude Code, `--header "X-Api-Key: $APORTEE_API_KEY"`).
The [MCP docs](https://aportee.ca/dev/mcp) cover keys, coordinates and the map and compass views.
To have your AI assistant set it up in Cursor, VS Code, Codex or another client, give it
[SETUP.md](SETUP.md).
## Tools
| Tool | What it does |
| --- | --- |
| `travel_times` | Minutes from a point to the nearest place of each of 35 everyday types (grocery, school, clinic, park and more) on foot, by bike and by transit, for one point or, with a key, up to 100; for one point, also how many places of each type lie within a walk you choose (5 to 55 minutes, 15 by default), with up to three named places per type |
| `nearby_places` | For each of eight everyday trips, the nearest place on foot with its walking minutes and direction, then the next places within 30 minutes; the compass as an image on request |
| `walking_routes` | The walked path to the nearest place of one to five types, with its minutes and metres and the seconds at each vertex; needs a key, and counts one request per type routed |
| `check_trip` | Reach: whether a trip on foot, by bike or by transit fits between a departure and an arrival time, with the minutes to spare or the minutes it is short |
| `reach_area` | Reach: the area within some minutes of a point by each mode, how many places of each type it holds and the nearest few |
| `find_meeting_area` | Reach: where two to four people, each with their own mode, could be together, for how long and at which places |
| `find_place` | Up to five Canadian towns by name, with their centre, province and population; with a key and a point, also the places of that name within a walk you choose (5 to 55 minutes, 15 by default) of the point |
| `get_catalog` | The amenity types in English and French, the modes and where each works, what needs a key, coverage, the method and how to cite it |
| `account_status` | The connection's tier, daily limit and requests left, and whether it can use Reach |
| `start_sign_in` | A link and a code for the person to approve in their browser, to get a free key |
| `check_sign_in` | The key, once the person has approved |
Walk counts, walking routes and the search near a point are routed live in twelve cities: Hamilton,
Toronto, Ottawa, Montréal, Québec, Vancouver, Victoria, Calgary, Edmonton, Winnipeg, Halifax and
Saskatoon. The Reach tools need a key from a free à portée account and give 50 answers a day. In
clients that show MCP Apps (Claude on the web and desktop, VS Code with GitHub Copilot, Microsoft
365 Copilot, Goose), `travel_times` and `find_place` show the à portée map in the conversation, and
`nearby_places` shows the compass.
## Example prompts
> How long is the walk to a grocery store, a pharmacy and a park from 45.5225, -73.5800 in
> Montréal?
> What can I reach on foot from 49.2735, -123.0695 in Vancouver, and in which direction?

> Sign me in to à portée, then show me the walking route from 43.2508, -79.8181 in Hamilton to the
> nearest grocery store and the nearest library.
> Find Kingston and show it on the à portée map.

> Sign me in to à portée, then check whether I can get from 43.6453, -79.3806 to 43.6677,
> -79.3948 by transit between 8:00 and 8:30 on a weekday.
## Data and privacy
à portée keeps the points you ask about only in short-lived request logs, to find and fix errors.
Requests are counted by IP address, or by key when one is used, to enforce the daily limits, and
each count is deleted a day after it starts. à portée stores only a scrambled form of each key. The
server uses a key the assistant passes as a tool argument for that call alone, but anyone who can
read the conversation can read it: if you share the transcript, revoke the key on your account page.
The map view loads the à portée map from aportee.ca, which counts the visit like any other. Details
are in the [privacy policy](https://aportee.ca/docs/privacy/).
## Issues
Report bugs and ask for features in this repository's Issues. For anything private, email
feedback@aportee.ca.
## Licence
This repository's contents are under the MIT licence in [LICENSE](LICENSE). The hosted service
follows the [terms of use](https://aportee.ca/docs/terms/): it is free for personal use, students,
research and teaching, journalism and charities, and commercial or public-sector use needs an
agreement (services@aportee.ca). The Python client and CLI,
[`aportee`](https://pypi.org/project/aportee/) on PyPI, are MIT too. The server's source is not
published.