# AtlasFetch [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/atlasfetch-dev/atlasfetch-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1189  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/atlasfetch-2

## Description
Reverse geocode a coordinate to country, region and municipality, and match your own geofences.

## Tools
Capabilities this server exposes over MCP:

- **lookup_location** — Reverse geocode a coordinate to the administrative areas that contain it — country,
region (state or province) and municipality — as names plus ISO 3166 codes, optionally the
nearest street, and matches from boundary sets the account has uploaded: all in one call.

Use for: which country, region or municipality a point is in; which street a point is on
(add "street" to base); geofence checks against your own polygons; tagging data with region
codes.
For the other direction, an address to a coordinate, use geocode_address. For a route,
a travel distance or a travel time, use get_route — 10 lookups on the standard plans to
this one’s 1. Do NOT use for place search by name or for fetching boundary geometry.

Caveats worth repeating to the user: municipal is the finest unit AVAILABLE, not a
consistent kind of thing — Los Angeles returns a city, rural Kansas returns a county, so
do not assume it names a city. A layer that matched nothing comes back null. The errors
array is always present: a boundary set that is unavailable or not granted to this key is
skipped and reported there, while the call itself still succeeds.

STREETS (opt-in via base, worldwide). base.street is ALWAYS three
answers, for 5 m, 20 m and unlimited in that order,
each with radiusMeters, streetNumber, streetName, postcode and distanceMeters. A numbered
address within the radius wins over a nearer street (for the unlimited entry the address
must still be within 20 m); otherwise the nearest named street; unnamed roads never answer.
Two different nulls: base.street === null means there is no street data for the point’s
country, while an entry whose fields are null means nothing was within that radius —
never report them the same way. streetNumber and postcode are STRINGS (44A, 12-14, 0181),
house numbers are rare outside well-mapped areas. Street geometry comes back only when
streetGeometry is set — leave it off unless something will draw the line.

One call is one billed lookup however many layers, sets or grid codes it touches, and a
call that matches nothing still bills.
- **geocode_address** — Turn ONE address into a point, with an honest account of how much of it was found. Built
for deliveries. South Africa today; more countries as their data loads. 1 lookup per
address, found or not.

Send either q (one line) or address (housenumber, street, suburb, city, postcode, unit) —
never both. If the address is already split, send it split: it matches better.

READ precision BEFORE using the point. "address" means the house was found;
"interpolated" means it was estimated between the numbers either side; "intersection"
means a street corner ("Cnr Main Rd and Belmont Rd", "Bree & Strand Streets"), at the
point where the two meet, with the second street in matched.crossStreet; "site" means a
named site — a shopping centre, office park, complex or estate, hospital, school, airport
or hotel — at a point inside it, named in matched.site; "street" means the right street
but NOT the house; "locality" means only the suburb or town. NEVER present
a street- or locality-level point as a door: a driver sent there will be at the wrong
house. In South Africa most answers are street-level, because OpenStreetMap has house
numbers on about 13% of street names — that is the data being honest, not a failure.

What to do with an answer — the result line says which applies:
- address, interpolated, intersection or site, not ambiguous, confidence 0.5 or more:
  dispatch. For a site, pass on the unit or shop number from the original address
  ("Shop 12") — the answer does not include it, and the driver needs it.
- street: ask the recipient for a pin or a landmark.
- ambiguous, or locality: ask the customer before dispatching.
When the advice is to ask the customer, ASK — do not pick one. result.alternatives holds up
to 4 other candidates the answer was chosen from, and the result line lists them with their
distance and direction from the first, because they often share a street name AND a town
(five "Long Street, Cape Town"s). Put the first answer and those to the user. Free: still
one lookup.
confidence ranks answers; it is NOT a probability. ambiguous means a same-named street
elsewhere scored about as well, or the street was a near-miss spelling with no house
number to confirm it. result null means nothing trustworthy was found, and that still
costs the lookup.

Some addresses name something that cannot be placed: an erf, stand, plot or farm portion
(land parcels — there is no cadastre), a township stand, a PO box or private bag. Those
parts come back in unmatched and the answer is the place named, at locality: ask the
customer for a street address.

country is a hard filter; region (ZA-WC, or "Western Cape") only ranks streets inside it
first, so a wrong province does not lose the address. An uncovered country is refused,
unbilled, with the list of covered countries in the message — that message is the live
coverage list; there is no other. sets and base answer "which delivery zone is it in" in
the same call, at no extra cost.

One address per call, deliberately. For a delivery list, call this once per row so the
user sees what is being spent; programs with thousands of rows should use the API’s
POST /geocode/batch directly. Not for: searching for a business or landmark by name,
or a coordinate to an address (that is lookup_location with the street layer).
- **list_boundary_sets** — Lists the boundary sets on this account with their boundary counts and the API keys (id and label) each is granted to. A set only matches during a lookup when it is available AND granted to the key making the call. On the shared demo key, grantedKeys is always empty.
- **create_boundary_set** — Creates an empty named set to hold your own polygons: delivery zones, service areas,
sales territories.

IMPORTANT, and not a bug: a new set is created unavailable and granted to no key, so it
matches nothing until both are changed. Granting is addressed by API key id, and nothing
this server can call tells it its own key's id. So this tool can create the set and add
boundaries to it, but the FIRST grant has to happen in the dashboard: tell the user to
switch the set on and grant it to the key this server uses, at
https://atlasfetch.xyz/dashboard.
- **add_boundary** — Adds ONE polygon to an existing boundary set on this account, so that lookup_location
reports when a point falls inside it — delivery zones, service areas, sales territories.
Each call creates a new boundary: calling twice with the same name stores two.

Before calling: the set must already exist (create_boundary_set). A set matches nothing in
lookups until it is switched on and granted to an API key in the dashboard at
https://atlasfetch.xyz/dashboard, which this server cannot do.

geometry must be a single GeoJSON Polygon — not a MultiPolygon, Feature or
FeatureCollection. Positions are [longitude, latitude]. Each ring needs at least 4
positions and must be closed (last position equals the first); extra rings are holes.
Self-intersecting shapes are rejected. To store a MultiPolygon, add each part separately.

A polygon may have at most 50 points on EVERY plan, the closing one included; more is
refused, unbilled, with advice to simplify the shape or split it into several boundaries.
Plan limits cap properties per boundary and boundaries per set. WITHOUT YOUR OWN KEY, the
shared demo key is on the Public plan: properties only category (zone, area, route, place,
other), color (green, blue, red, yellow, purple, orange) and priority (low, medium, high),
and one set shared with every demo user, where adding to a full set silently deletes its
oldest boundary. Never upload anything private with the demo key.

Returns the stored boundary: id, set, name, properties, pointCount and createdAt.
- **update_boundary** — Replace the shape of ONE existing boundary. Its id, name, properties and set stay as they
are, so every lookup that matches it keeps returning the same properties.

Use this to fix or move a zone. Do NOT delete it and add it again: that gives it a new id
and loses the properties unless they are re-sent.

Name the boundary by set and name; this finds its id. If a set holds two boundaries with
that name, the answer lists their ids and asks for one. The new shape gets the same
checks as add_boundary, including the 50-point cap (refused, unbilled).
Only boundaries on this account can be changed.
- **get_route** — A driving, cycling, walking or truck route from the first location to the last, via any
in between, with distance, duration and turn-by-turn steps.

COST: a route is 10 LOOKUPS on the standard plans, not one (a custom plan may charge less;
X-Lookups-Remaining is always the truth). Everything it returns is included in that, so do
not call it in a loop to compare options without saying so.

Durations are FREE-FLOW: the road network at its own speed limits, with NO live or
historical traffic. Never present one as an arrival time in traffic — for that, say a
traffic-aware service (Google, Mapbox) is needed.

The route line is NOT returned unless routeGeometry is set, because an encoded polyline is
thousands of characters that no one reads. Ask for it only when something will draw it.

Locations are SNAPPED to the nearest routable road, and locations[] in the response says
how far each one moved. A large snapDistanceMeters means the answer starts somewhere else
than asked — worth repeating to the user.

avoidSets and exposureSets name BOUNDARY SETS on the account (list_boundary_sets), not
ad-hoc shapes. avoid routes around every zone in those sets; exposure leaves the route
alone and reports how far it ran inside each zone. A zone containing one of the locations
cannot be avoided for that route: it is skipped and reported in avoid.skipped. Along very
many exposure zones (over 1,000, or over 5 s to measure) exposure is skipped: it comes back
empty with a note in errors, and the route is still answered and billed.

TRUCKS (Pro only): a truck over 9 t, or with no weightTonnes, is capped at 80 km/h, as South
African law caps goods vehicles; a lighter truck keeps car speeds. The vehicle’s height,
width, length, weight, axle load and hazmat are checked against road limits where
OpenStreetMap records them, which is not everywhere — a good start, not a legal clearance.

Limits by plan: 2 locations and 1 alternative on the free plans, up to 25 and 2 on Pro;
alternatives need exactly 2 locations. Over a cap the answer is 403,
and nothing is billed. A location with no road near it, or two places with no road
between them, is 422 — and that one IS billed, because the route was attempted.

Not for: distance matrices, isochrones or live traffic (none exist yet), and not for
which-area-is-this questions — that is lookup_location, at one lookup.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "atlasfetch": {
    "command": "npx",
    "args": ["-y","atlasfetch-mcp"]
  }
}
```

## Documentation

## What AtlasFetch does

AtlasFetch exposes location operations through MCP. `lookup_location` reverse geocodes a coordinate into country, region, and the finest available municipal-level area, including ISO 3166 codes. The optional street layer can return nearby street names, mapped house numbers, postcodes, distances, and—when requested—street geometry. The same lookup can test the point against boundary sets belonging to the account.

`geocode_address` converts one address into a coordinate. It accepts either a single-line query or structured address fields, with South Africa as the available coverage area. Results include a precision classification and delivery-oriented guidance. `get_route` provides driving, cycling, walking, or truck directions with distance, duration, and turn-by-turn steps.

Boundary administration is handled by `list_boundary_sets`, `create_boundary_set`, `add_boundary`, and `update_boundary`. These tools support custom delivery zones, service areas, and sales territories represented as polygons.

## How it works

Install the package as a standard MCP process and configure it in an MCP client. Calls are sent to the AtlasFetch API using an API key, with an anonymous shared demo key available when no key is supplied. A coordinate lookup is billed once regardless of how many layers or boundary sets it examines. Address geocoding also costs one lookup per address, including unsuccessful results. Routes cost 10 lookups on standard plans.

`lookup_location` uses the finest administrative unit available, which may be a city, county, district, or another area rather than consistently a municipality. Street results are opt-in and always contain entries for 5-meter, 20-meter, and unlimited search ranges. A null street layer means the country lacks street data; null fields within an entry mean that range found nothing.

## Setup and configuration

The package requires Node.js 20 or newer. Claude Code can add it with `npx -y atlasfetch-mcp`; other clients use an MCP configuration with `command` set to `npx` and arguments `-y`, `atlasfetch-mcp`.

Set `ATLASFETCH_API_KEY` to use an account key. Without it, requests use the shared public demo key, which has a pooled quota and rate limit. `ATLASFETCH_API_URL` can override the default API endpoint for local or staging deployments.

Boundary sets created through MCP begin disabled and are granted to no API key. Enable the set and grant it to the relevant key in the AtlasFetch dashboard before expecting matches.

## Tools and capabilities

- Reverse geocode coordinates to administrative areas and ISO codes.
- Find nearby named streets and optional street geometry worldwide.
- Geocode one South African address with precision and confidence information.
- Calculate free-flow routes for cars, bikes, pedestrians, or trucks.
- Create, list, add to, and reshape custom polygon boundary sets.
- Avoid or measure exposure to named boundary sets during routing.

## Limitations and notes

Address geocoding handles one address per call and is not a general place or landmark search. Street-level or locality-level results should not be treated as a confirmed delivery door. Ambiguous results provide alternatives that should be shown to the customer rather than selected automatically.

Boundary polygons must be individual GeoJSON `Polygon` objects, use longitude-latitude positions, have closed rings, and contain no more than 50 points per polygon. MultiPolygons must be added as separate boundaries. Route durations use free-flow speeds without live or historical traffic, and route lines are omitted unless geometry is requested. The service does not provide distance matrices, isochrones, map tiles, or boundary geometry downloads.

_Full upstream README: https://allmcps.com/mcp/atlasfetch-2/readme_

