[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [Mobility Database transit records](https://spiral.ai/integrations/vscode/mobility-database-transit-records)

# How to Use Mobility Database transit records in VS Code

Returns rows from a feed's stop, route, trip, stop-time, shape, or calendar data. Use it to build a network map, assemble a timetable, or compare published schedule records in bulk.

|  |  |
| --- | --- |
| Model | Mobility Database transit records |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Mobility Database transit records in VS Code

- Use Mobility Database transit records to collect the available stop and route rows for the selected TriMet feed. Build a review table in this project from the returned data.
- Use Mobility Database transit records to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Mobility Database transit records and tell me what changed since last week.
- Check Mobility Database transit records and summarize what you find in three bullet points.
- Pull the newest data from Mobility Database transit records and give me the result as a table.

## How to set up Mobility Database transit records in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Mobility Database transit records**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "mobilitydatabase-org/transit-feeds/records_list",
    "input": {
      "table": "agency",
      "feed_id": "<feed_id>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds Mobility Database transit records on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## Mobility Database transit records tools and prices

- [MobilityData Mobility Database (mobilitydatabase.org) · Records list](https://spiral.ai/tools/alexandria/mobilitydatabase-org/transit-feeds/records_list) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 1000 | — | Rows per page; default 100. |
| cursor |  | — | `next_cursor` from the previous page. Carries feed, table, dataset id, zip SHA-256 and row offset; a cursor for another feed or table is invalid_input. |

## What can you do with Mobility Database transit records in VS Code?

Build a transit map or schedule importer around an agency's published GTFS data. Use Mobility Database to find the feed, inspect its publications, and investigate the records behind import problems.

### Refresh a trip planner's schedule data

Find the agency's feed, check the latest mirrored publication, review its version history, and collect the schedule records needed for the next import.

### Check a transit map before publication

Locate the relevant agency feed and publication, collect its stop and route records, and inspect individual records behind questionable map labels or locations.

### Investigate an import regression

Identify which publication an import used, review the available versions, and compare collected records with individual examples that failed during processing.

### Build a regional transit inventory

Find feeds serving a region and collect their published stops and routes for a planning inventory.

### Resolve a station data discrepancy

Check the selected publication, inspect the station record in question, and compare it with the surrounding records in the same feed.

### Document the evidence behind a schedule comparison

Choose archived publications, collect the records used in the comparison, and inspect individual examples cited in the findings.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## Mobility Database transit records in other agents

- [Amp](https://spiral.ai/integrations/amp/mobility-database-transit-records)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/mobility-database-transit-records)
- [Claude](https://spiral.ai/integrations/claude-desktop/mobility-database-transit-records)
- [Claude Code](https://spiral.ai/integrations/claude-code/mobility-database-transit-records)
- [Cline](https://spiral.ai/integrations/cline/mobility-database-transit-records)
- [Codex](https://spiral.ai/integrations/codex/mobility-database-transit-records)
- [Cursor](https://spiral.ai/integrations/cursor/mobility-database-transit-records)
- [Devin](https://spiral.ai/integrations/devin/mobility-database-transit-records)
- [dots](https://spiral.ai/integrations/dots/mobility-database-transit-records)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/mobility-database-transit-records)
- [Gemini](https://spiral.ai/integrations/gemini/mobility-database-transit-records)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/mobility-database-transit-records)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/mobility-database-transit-records)
- [goose](https://spiral.ai/integrations/goose/mobility-database-transit-records)
- [Grok](https://spiral.ai/integrations/grok/mobility-database-transit-records)
- [Grok Build](https://spiral.ai/integrations/grok-build/mobility-database-transit-records)
- [Hermes](https://spiral.ai/integrations/hermes/mobility-database-transit-records)
- [Instinct](https://spiral.ai/integrations/instinct/mobility-database-transit-records)
- [Manus](https://spiral.ai/integrations/manus/mobility-database-transit-records)
- [Muse](https://spiral.ai/integrations/muse/mobility-database-transit-records)
- [Muse Code](https://spiral.ai/integrations/muse-code/mobility-database-transit-records)
- [n8n](https://spiral.ai/integrations/n8n/mobility-database-transit-records)
- [Notion](https://spiral.ai/integrations/notion/mobility-database-transit-records)
- [OpenClaw](https://spiral.ai/integrations/openclaw/mobility-database-transit-records)
- [opencode](https://spiral.ai/integrations/opencode/mobility-database-transit-records)
- [Perplexity](https://spiral.ai/integrations/perplexity/mobility-database-transit-records)
- [Raycast](https://spiral.ai/integrations/raycast/mobility-database-transit-records)
- [Windsurf](https://spiral.ai/integrations/windsurf/mobility-database-transit-records)
- [Zapier](https://spiral.ai/integrations/zapier/mobility-database-transit-records)

## More VS Code guides

- [Mobility Database transit record](https://spiral.ai/integrations/vscode/mobility-database-transit-record)
- [NGA World Port Index search](https://spiral.ai/integrations/vscode/nga-world-port-index-search)
- [Mobility Database transit feed search](https://spiral.ai/integrations/vscode/mobility-database-transit-feed-search)
- [NGA maritime publication status](https://spiral.ai/integrations/vscode/nga-maritime-publication-status)
- [Mobility Database feed version history](https://spiral.ai/integrations/vscode/mobility-database-feed-version-history)
- [NGA maritime record details](https://spiral.ai/integrations/vscode/nga-maritime-record-details)

## Questions about Mobility Database transit records in VS Code

**Can VS Code use Mobility Database transit records?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Mobility Database transit records like any built-in tool.

**How much does Mobility Database transit records cost in VS Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need an Alexandria account to use Mobility Database transit records in VS Code?**

No. Spiral runs Mobility Database transit records on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Mobility Database transit records in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while Mobility Database transit records runs?**

Mobility Database transit records runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Which countries and transit formats does Mobility Database cover?**

The full catalog advertises more than 6,000 feeds across more than 100 countries, covering GTFS Schedule, GTFS Realtime, and GBFS. The schedule records described here come from GTFS Schedule feeds.

**How often does Mobility Database check for new publications?**

It checks producer feed URLs every day at midnight UTC and automatically adds a new version when it detects a change. A dataset's download timestamp indicates when Mobility Database collected that publication.

**Does Mobility Database include older TransitFeeds data?**

Yes. Mobility Database says all historical TransitFeeds data was migrated in December 2025; the dataset list for a feed identifies its available archived publications.

**Can I reuse the catalog metadata and feed contents under the same license?**

MobilityData-generated metadata uses CC0 1.0. The contents of each transit feed remain subject to that data owner's license, which you must check before reuse.

**What quality checks does Mobility Database provide?**

It integrates the Canonical GTFS Schedule and GBFS Validators and publishes feed quality reports. Those reports help identify data problems before you use a feed in a map or schedule analysis.

