Skip to main content
Glama
README.md
![tickets.dev AI: ask for the cheapest 2 seats for the Eagles at Sphere, get the same seats priced on TickPick, SeatGeek, Vivid Seats and Gametime](assets/banner.gif)

# Tickets.dev AI

This repo is the home for using Tickets.dev with AI agents. Tickets.dev returns live ticket listings, all-in prices and seat maps from [Ticketmaster](https://tickets.dev/ticketmaster-api), [StubHub](https://tickets.dev/stubhub-api), [SeatGeek](https://tickets.dev/seatgeek-api), [Vivid Seats](https://tickets.dev/vivid-seats-api), [TickPick](https://tickets.dev/tickpick-api), [Gametime](https://tickets.dev/gametime-api), [Viagogo](https://tickets.dev/viagogo-api) and more, in one schema.

Tickets.dev is a standard HTTP API, so any agent that can make web requests can use it. This repo adds an agent skill, plugins for popular agent tools, and how to connect the hosted MCP server.

## What you can ask

> I have 2 seats in section 110, row 36 for the Eagles at Sphere. What are the same and nearby seats listed for on each marketplace?

> Show the seat map for this StubHub event with the cheapest all-in price in each section.

> How many tickets are listed for each Sphere show next month, and what's the get-in price?

> Write a script that saves the listed tickets and get-in price for these events every morning.

## Use the API with any agent

Give your agent the [OpenAPI spec](https://tickets.dev/openapi.json), the [agent docs](https://tickets.dev/llms.txt) and your API key. Get a key at [tickets.dev](https://tickets.dev/pricing) and send it in the `x-api-key` header.

Most tasks take two calls. Find the event, then capture one marketplace page:

```bash
curl "https://api.tickets.dev/v1/events?query=eagles%20sphere" \
  -H "x-api-key: $TICKETS_DEV_KEY"

curl -G "https://api.tickets.dev/v1/capture" \
  --data-urlencode "url=https://www.ticketmaster.com/eagles-live-at-sphere-las-vegas-nevada-12-11-2026/event/17006483D6FAFC60" \
  -H "x-api-key: $TICKETS_DEV_KEY"
```

## Agent skill

The [`tickets-dev` skill](skills/tickets-dev/SKILL.md) covers the details of ticket data that agents tend to get wrong, such as all-in prices, sellable quantities, and why a listing that disappears isn't proof of a sale. It's plain Markdown, so you can add it to any agent's instructions.

## Plugins

If you use one of these agent tools, we recommend installing the Tickets.dev plugin. It includes the skill and tools your agent can call directly. The first time the tools are used, you sign in at tickets.dev and approve the connection, so there's no API key to copy.

### Claude Code

Run these commands in Claude Code:

```bash
/plugin marketplace add Tickets-dot-dev/ai
/plugin install tickets-dev@tickets-dev
```

Then run `/mcp`, pick `tickets-dev` and choose **Authenticate** to sign in.

### Codex

Run this command:

```bash
codex plugin marketplace add Tickets-dot-dev/ai
```

Then restart Codex, install Tickets.dev from the Plugins directory, and sign in:

```bash
codex mcp login tickets-dev
```

### Cursor

Install the plugin from [cursor.directory](https://cursor.directory), or use the [MCP server](#mcp-server).

### Gemini CLI

Run this command:

```bash
gemini extensions install https://github.com/Tickets-dot-dev/ai
```

Then run `/mcp auth tickets-dev` in Gemini CLI to sign in.

### Grok Build

The plugin is coming to the Grok Build marketplace. Until then, use the [MCP server](#mcp-server).

## MCP server

The tools are hosted at `https://api.tickets.dev/mcp` (Streamable HTTP).

Add that URL and sign in. You'll be sent to Tickets.dev to sign in and approve the connection, which creates an API key for that app. Disconnect it any time from your account settings.

In Claude Code:

```bash
claude mcp add --transport http tickets-dev https://api.tickets.dev/mcp
```

Then run `/mcp`, pick `tickets-dev` and choose **Authenticate**.

In Claude or ChatGPT, add it as a custom connector with the same URL.

In clients that take a URL, for example `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "tickets-dev": {
      "url": "https://api.tickets.dev/mcp"
    }
  }
}
```

For scripts and clients that can't sign in, send an [API key](#api-key) as a header instead, for example `"headers": { "Authorization": "Bearer tk_live_..." }`, or in Claude Code `--header "Authorization: Bearer $TICKETS_DEV_KEY"`.

Clients that only start local servers, such as Claude Desktop's `claude_desktop_config.json`, can run the `tickets-dev-mcp` package. It's a small bridge that forwards to the same hosted server:

```json
{
  "mcpServers": {
    "tickets-dev": {
      "command": "npx",
      "args": ["-y", "tickets-dev-mcp"],
      "env": { "TICKETS_DEV_KEY": "tk_live_..." }
    }
  }
}
```

| Tool | What it does |
|---|---|
| `find_events` | Finds upcoming events and their URL on every marketplace. Free. |
| `get_listings` | Returns every listing on one event page, with all-in prices. |
| `compare_prices` | Ranks one event's listings across marketplaces by all-in price. |
| `get_seat_map` | Returns the section and seat maps, the cheapest price per section and, where the map gives it, venue capacity. |
| `list_marketplaces` | Lists supported marketplaces. Free. |

The tools only read data. They can't buy, hold or list tickets.

## API key

You only need a key for the HTTP API, scripts, and clients that can't sign in. The `tickets-dev-mcp` package and the skill's direct API calls read it from the `TICKETS_DEV_KEY` environment variable:

```bash
export TICKETS_DEV_KEY=tk_live_...
```

Restart your agent after setting it. Don't paste your key into a chat. If the key is missing, the agent tells you how to add it.

Each capture of one event on one marketplace is billed, the same as a direct API call. One tool call uses at most 15 captures, and up to 3 tool calls can run at once per account. See [pricing](https://tickets.dev/pricing).

## More from Tickets.dev

* [API documentation](https://tickets.dev/docs)
* Guides: [compare ticket prices across marketplaces](https://tickets.dev/guides/compare-ticket-prices-across-marketplaces), [price and inventory alerts](https://tickets.dev/guides/ticket-price-inventory-alerts)
* Examples: [price comparison app](https://github.com/Tickets-dot-dev/ticket-price-comparison-app), [price alerts](https://github.com/Tickets-dot-dev/ticket-price-alerts), [price tracker](https://github.com/Tickets-dot-dev/ticket-price-tracker)

## Development

```bash
npm install
node --test                                  # offline tests
TICKETS_DEV_E2E_KEY=<your key> node --test   # end-to-end through api.tickets.dev/mcp (uses a few captures)
```

## License

[MIT](LICENSE). Not affiliated with any ticket marketplace.

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation4/5

The primary overlap is between get_listings and compare_prices/ get_seat_map, since all three capture marketplace data; however, the descriptions make the boundary fairly clear (single marketplace event page vs. multi-marketplace ranking vs. seat maps). find_events and list_marketplaces are cleanly distinct discovery tools.

Naming Consistency5/5

All five tools follow a consistent snake_case verb_noun pattern: find_events, get_listings, compare_prices, get_seat_map, list_marketplaces. Verbs are used appropriately to signal the operation type.

Tool Count5/5

Five tools is a well-scoped surface for a ticket price comparison service: two free discovery tools, three billed capture tools. Each tool earns its place with no obvious redundancy.

Completeness4/5

The core workflow (find event, compare prices, inspect listings and seat maps) is fully covered. Minor gaps exist—no dedicated event-detail tool or historical price lookup—but agents can work around these via find_events and fresh captures.

Maintenance

ActivityNo data
ResponsivenessOutdated data