# Put AI to work on your location data

> Let Claude, ChatGPT or Cursor work on your location content through MCP, as drafts you review, or have Claude Code or Codex build your own app on the Content Delivery API.

Let an assistant such as Claude or ChatGPT work on your content, or have a coding agent such as Claude Code or Codex build your own app on it. Either way, your team decides what goes live.

## Choose your path

Pick the path that fits. Each has its own section below:

- **[Work on your content](https://spatibase.com/ai/#work).** An assistant such as Claude, ChatGPT or Cursor reads your entries, imports and fixes them, and prepares drafts in your project. You decide what goes live.
- **[Build your own app](https://spatibase.com/ai/#build).** A coding agent such as Claude Code or Codex builds a website, map or mobile app that reads your published content through the Content Delivery API.

## Work on your content: Let the assistant do the content admin

Imports, missing descriptions, seasonal updates, duplicate clean-up: the assistant works through your own content model, so every entry it touches fits your types and fields.

- Drafts by default, live only with your permission
- A review list of everything an assistant changed
- Every action in Activity, under the key’s or your name

### What working with an assistant looks like

#### Import a spreadsheet (Edit key or sign-in)
- **You ask:** Here’s our list of 86 bike shops. Add them as “Bike shop” and find each one from its street address.
- **The assistant:** `describe_project` reads the Bike shop type: name, address, opening hours, phone; `import_features` dry run: 86 rows, 84 addresses to look up, 2 rows without an address; `import_features` 84 entries created as drafts
- **You get:** Added **84 bike shops** as drafts, each placed on the map from its address. Two rows had no address (“Velo Lab”, “Spoke & Co”): send me their addresses and I’ll add them too.

#### Fill in missing content (Edit key or sign-in)
- **You ask:** Which trails have no description yet? Write one for each from its length, difficulty and region, in our usual tone.
- **The assistant:** `search_entries` type=trail, description is empty → 23 trails; `get_draft` reads length, difficulty, region and a few well-written trails for tone; `bulk_update_entries` dry run, then 23 descriptions saved; other fields left untouched
- **You get:** Drafted descriptions for **23 trails**. They’re marked **Changed by AI** in Entries, so an editor can read them before they go live.

#### Ask questions about your places (Read key, sign-in or public project)
- **You ask:** How many campsites within 10 km of Lake Tahoe allow dogs? Closest first.
- **The assistant:** `search_entries` type=campsite, near Lake Tahoe (-120.04, 39.09), radius 10 km, dogs allowed = yes, sorted by distance
- **You get:** **14 campsites** allow dogs. The closest are Camp Richardson (0.4 km), Fallen Leaf (2.1 km) and Nevada Beach (3.8 km). Want the full list as a table or on a map (GeoJSON)?

#### Update and publish in one go (Edit key + Allow publishing)
- **You ask:** Winter is coming: mark every mountain hut in Tyrol as closed until 1 May, then publish.
- **The assistant:** `search_entries` type=mountain-hut inside Tyrol’s bounding box → 31 huts; `bulk_update_entries` dry run shows 31 changes (status, reopening date); then saved; `mark_ready` dry run: all 31 pass validation; then marked ready; `publish_project` preview: 31 changed; then published as version 14
- **You get:** Done: **31 huts** are marked closed until 1 May and live in your apps now as version 14. If anything looks wrong, I can go back to version 13.

#### Clean up duplicates (Edit key + Allow deleting)
- **You ask:** Find viewpoints that are within 25 m of each other with almost the same name, and remove the copies.
- **The assistant:** `search_entries` type=viewpoint → the assistant compares names and distances: 6 likely pairs; `delete_entries` dry run lists the 6 copies and the 2 entries that link to them; `delete_entries` 6 copies moved to the trash
- **You get:** Moved **6 duplicate viewpoints** to the trash and kept the more complete entry of each pair. They can be restored for 30 days.

#### Change the content model (Owner, signed in)
- **You ask:** Add a “Wheelchair accessible” yes/no field to all trail types.
- **The assistant:** `create_element` preview: new yes/no field “Wheelchair accessible”; `assign_elements` preview: added to Trail (inherited by Hiking trail and Bike trail); `create_element, assign_elements` confirmed and applied
- **You get:** Added **Wheelchair accessible** to Trail; Hiking trail and Bike trail inherit it. Editors see the new field right away.

### Decide what each assistant can do

What an assistant can do depends on the key or sign-in you give it. Start with questions, add drafting, and switch on publishing or deleting only where it makes sense.

- **Ask** (Read key, sign-in or public project): Search, count and look up published entries, by field, area or distance. Nothing can change.
- **Draft** (Edit key or sign-in): Create entries, import files and fix fields. Everything lands as a draft marked Changed by AI.
- **Publish** (Allow publishing): Mark drafts ready, publish them as a new version or go back to an earlier one. Off until you switch it on.
- **Clean up** (Allow deleting): Remove duplicates and outdated entries. Everything waits in the trash for 30 days.

### Changes stay easy to review and undo

An assistant works inside the same rules as your team, plus a few of its own:

- **Dry run first.** Bulk changes, imports, publishing and deleting show what would happen before anything is written. Content-model changes always start as a preview.
- **A review list.** Entries an assistant changed are marked Changed by AI in Entries until someone reviews them. Saving your own change clears the mark.
- **Nothing hidden.** Every action is in Activity with a robot icon, named after the key or after you and the app. Tick AI changes to see only those.
- **Easy to undo.** Drafts never reach your apps until they are published. Go back to any earlier version in one click; deleted entries and files wait in the trash for 30 days.
- **Access stays with people.** Assistants never manage keys or members, switch a project between public and private, delete it or empty the trash.
- **Limits per connection.** 120 calls a minute, 30 writes a minute and 2,000 changed entries a day, per key or sign-in, so a mistake repeated in a loop stays small.

### Works with the assistant you already use

Copy your project’s assistant address from AI agents, Work on your content, in the app. Then sign in from your assistant, or give it a key. Owners signing in can also let it change the content model, with a preview before every change.

**Claude Code:** One command in your terminal, then /mcp to sign in. Or add an edit key.

```
claude mcp add --transport http spatibase \
  https://mcp.spatibase.com/projects/{id}
```

**Claude Desktop:** Add to claude_desktop_config.json (Settings, Developer, Edit Config), then restart. Needs Node.js and an edit key; without a key use the Claude.ai tab.

```
{
  "mcpServers": {
    "spatibase": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.spatibase.com/projects/{id}",
        "--header", "Authorization: Bearer ${SPATIBASE_KEY}"],
      "env": { "SPATIBASE_KEY": "sb_edit_…" }
    }
  }
}
```

**Cursor:** Paste into .cursor/mcp.json, with an edit key.

```
{
  "mcpServers": {
    "spatibase": {
      "url": "https://mcp.spatibase.com/projects/{id}",
      "headers": { "Authorization": "Bearer sb_edit_…" }
    }
  }
}
```

**Claude.ai or ChatGPT:** No key to copy: add a custom connector and sign in. Claude Desktop works the same way.

```
1. Settings → Connectors → Add custom connector
2. URL: https://mcp.spatibase.com/projects/{id}
3. Sign in and choose what it may do
```

[Step-by-step setup for each assistant](https://spatibase.com/docs/ai/connect-an-assistant/)

## Build your own app: Your own app on your content, built by a coding agent

This is the backend. Your team keeps the places up to date here, the Content Delivery API serves what’s published, and the agent writes the app around it. There is no server or database for you to build.

- A ready prompt with your real addresses
- A typed OpenAPI file for your fields
- Docs for agents: llms.txt and Markdown pages
- Read-only, published content only

What the agent reads, relative to the project’s API address:

- `/openapi.json`: Your fields and types, typed
- `/entries`: Search, filter, near me, paging
- `/entries.geojson`: Points, lines and areas for a map
- `/tiles.json`: Vector tiles for MapLibre
- `/groups/<key>`: Curated lists, in your order

### From idea to a working app

You need a coding agent such as Claude Code or Codex, and a project with some published entries.

1. **Paste your project’s prompt.** In the app, open AI agents, choose Build your own app and copy the prompt. It holds your API address, content types and key rules. Paste it into your coding agent.
2. **Ask for what you want.** Describe the app in your own words, or start from an idea below. The agent reads your typed OpenAPI file, so it uses your real fields.
3. **Check that it works.** Compare the app with the live answers in Try it. Only published entries reach the app, usually within a few minutes.

[Full guide: build an app with a coding agent](https://spatibase.com/docs/build/build-with-a-coding-agent/)

### Try it on real data

Pick an idea. Each one has a prompt and a public demo project to run it on, so you can paste it into your coding agent and get a working app. No sign-up and no key.

- **Store locator with search and “near me”.** Build a store locator for these coffee shops. A list next to a map, a search box, and a “Near me” button that sorts the shops by distance. Each shop opens a panel with its details and a “Get directions” link. It should work well on a phone. Demo data: Kettlewind Coffee Roasters, public: [preview the data](https://app.spatibase.com/view/0a28fef1-a54a-4dc3-8f8b-42f8626c39d4), API at https://api.spatibase.com/delivery/v1/projects/0a28fef1-a54a-4dc3-8f8b-42f8626c39d4.
- **Trail or route explorer.** Build a trail explorer. Draw the trails and parks on a map, filter them by length and difficulty, show the main facts in a popup, and let me download a GPX file of the selected trail. Demo data: Front Range trails, public: [preview the data](https://app.spatibase.com/view/4b305b0c-0b2f-4aec-8b64-68974a353b34), API at https://api.spatibase.com/delivery/v1/projects/4b305b0c-0b2f-4aec-8b64-68974a353b34.
- **Mobile app for places nearby.** Build a phone app that finds playgrounds, toilets, drinking fountains and museums near me. A map, a list sorted by distance, a detail screen, and the last results kept for offline use. Demo data: Vienna family places, public: [preview the data](https://app.spatibase.com/view/094350e7-de29-4325-b83f-2039a32aeda8), API at https://api.spatibase.com/delivery/v1/projects/094350e7-de29-4325-b83f-2039a32aeda8.
- **Curated guide website.** Build a guide website from the chapters. One page for each chapter with its places in my order, a small map with numbered pins, and good titles and descriptions for search engines. Demo data: Lisbon guide, public: [preview the data](https://app.spatibase.com/view/b6f52dac-0042-4453-accf-28a95bcaa630), API at https://api.spatibase.com/delivery/v1/projects/b6f52dac-0042-4453-accf-28a95bcaa630.
- **Geo analytics dashboard.** Build a dashboard for the city data. Totals by type and district, a few charts, a heatmap, and an area selection that updates every chart. Demo data: San Francisco city data, public: [preview the data](https://app.spatibase.com/view/b5df46ba-0be5-4c7a-9ec7-7fe39e1a56bc), API at https://api.spatibase.com/delivery/v1/projects/b5df46ba-0be5-4c7a-9ec7-7fe39e1a56bc.

## Fits the stack you have

- **AI assistants and coding agents:** Assistants work over MCP with a key or a sign-in. Coding agents read the Content Delivery API and its OpenAPI files. Claude, Codex, Mistral, Cursor, DeepSeek.
- **Map libraries:** Vector tiles for the vector libraries, GeoJSON for all of them. MapLibre, Mapbox, Leaflet, OpenLayers, deck.gl.
- **GIS and mapping platforms:** Add the published GeoJSON or the vector tiles as a layer, or import the file. QGIS, ArcGIS, Felt, CARTO, Kepler.gl.
- **Your own code:** Plain JSON over HTTPS with caching, and open standards in and out. Python, JavaScript, Node.js, curl, GeoJSON.

## Questions

### Which AI tools work with Spatibase?

To work on your content: any app that supports MCP, such as Claude.ai, Claude Desktop, Claude Code, ChatGPT, Cursor and your own agents. To build an app: any coding agent, such as Claude Code, Codex or Cursor, because the project prompt is plain text. You keep the tools and subscriptions you already have.

### Can an assistant publish or delete without us knowing?

Only if you allow it. Publishing and deleting are separate permissions, both off until you switch them on for a key or tick them when you sign in. Changes run as a dry run first, every action is in Activity under the key’s or your name, published changes can be unpublished, and deleted items stay in the trash for 30 days.

### Can it see our unpublished drafts?

Only with an edit key or a sign-in you approved. A read key, or no key on a public project, sees exactly what your public API shows: published content only.

### What can an assistant never do?

Change who can reach your data. Assistants can’t create or revoke keys, manage members, switch a project between public and private, delete a project or empty the trash. Those stay with people.

### Do I need to be a developer to build my own app?

It helps to be comfortable running a coding agent such as Claude Code or Codex. The agent writes the code from your request and the project prompt; you describe what you want, check the result and decide where to host it. The backend is already there, so there is no server or database to build.

### Can an app built this way change our content?

No. The app reads the Content Delivery API, which is read-only and returns published content only. Drafts never reach it, and your editors keep working as before.

### What happens to our API key?

A public project needs no key. For a private project, the prompt tells the agent to read the key from an environment variable and call the API from server code, never from the browser. The prompt itself never contains your real key.

### Is my data used to train models?

No, we don’t train models on your data. What an assistant or coding agent reads is handled by the AI provider you use, under your agreement with them.
