Skip to content
Agenaby Fernando Verboonen

Open API · Europe

One query. Four surfaces.

Search Agena's own events as JSON, Markdown, a live calendar, or through MCP. Reading is keyless and open to browser clients. Writing needs a bearer key. Every event keeps the original source link.

Sample placeholders are left out. Prices are only what the source stated. q is ranked with keyword and topic scores, not a paid language model.

Agents: the v1 API at /api offers a free 10-event sample and a paid full feed ($0.05 USDC on Base per call, via x402). OpenAPI: /api/v1/openapi.json. MCP also answers at /mcp.

No code? Put the event list on your website with one snippet.

Machine-readable description: OpenAPI 3.1 (openapi.yaml) · API reference · llms.txt · API catalog.

JSON

GET /api/events

q ranks matches and fills matchReasons. city, country, topic (comma-separated), format, from, and to hard-filter. limit is 1–100 and defaults to 50. Without from, events that have ended are left out. An event with no end time counts as ended six hours after its start.

ParamNotes
qFree text. Title, topic, organiser, place, then description.
citySlug or name, any case. Zurich, zurich and Zürich all work. List: /api/cities.
countryCH, DE, AT, GB, FR, NL, or the country name. UK maps to GB.
topicComma list of slugs or names, any case: ai-finance, AI × Finance and finance are the same. An event matches if it has any of them. List: /api/topics.
formatmeetup, conference, workshop, hackathon, online, hybrid, other. in_person means not online.
from, toISO date or datetime. A date is a day in Coordinated Universal Time (UTC).
limit1–100. Default 50. total is the match count before the page.
offset, pagePaging. offset skips that many matches; page counts from 1. Use one, not both. Every response has next: the address of the next page, or null on the last.

The body is query, count, total, offset, next, calendar, and events. Each event has id, slug, title, start and end in Coordinated Universal Time (UTC), timezone, utcOffset, localStart and localEnd (local time with offset), localTime (for example “Thu 29 Oct 2026, 14:00–17:00 Greenwich Mean Time (UTC+0)”), city, country, venue, venueAddress, geo, format, price, topics, organizer, description, source, registrationUrl, url, markdown, calendar (a one-event .ics), and matchReasons. geo.precision is venue only when the listing has its own point; otherwise it is the city centroid. Responses send Access-Control-Allow-Origin: * and Cache-Control: public, max-age=60, s-maxage=300, stale-while-revalidate=3600.

Search

curl "https://agentevents.xyz/api/events?q=agents&city=zurich&limit=10"

Next page

curl "https://agentevents.xyz/api/events?city=london&limit=50&offset=50"

One event

curl "https://agentevents.xyz/api/events/<id or slug>"

Topics and cities

curl "https://agentevents.xyz/api/topics"
curl "https://agentevents.xyz/api/cities"

REST errors

Every error under /api is JSON in the RFC 9457 form (application/problem+json), including 404s. An unknown or misspelt parameter is a 400 that names the parameter and lists the valid ones; an unknown city, topic, format or country lists the valid values.

Example error

{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "detail": "Unknown parameter \"citty\". Valid parameters: q, city, …",
  "parameter": "citty",
  "validParameters": ["q", "city", "country", "topic", "format", "from", "to", "limit", "offset", "page", "mine"]
}

Markdown

GET /api/md · /events.md · /cities/{slug}.md · /topics/{slug}.md

The same filters and paging, as a table: local date and time with the year, end time and time zone, the event, venue and address, price, organiser, the registration link, and topics. A live-source line points at the API URL that always has the current list. Each event also has its own page at /events/{slug}.md, and the home, city, topic and event pages answer Accept: text/markdown.

City feed

curl "https://agentevents.xyz/cities/berlin.md"

One event

curl "https://agentevents.xyz/events/<slug>.md"

Same filters as JSON

curl "https://agentevents.xyz/api/md?topic=robotics&country=ch"

Calendar

GET /api/calendar

text/calendar with a one-hour VALARM on each event, the street address in LOCATION, and lines folded at 75 octets. With event=<slug> or id=<id> alone you get a file with that one event, for “add to calendar”. With filters, the URL is a subscription: clients re-fetch it (we ask for every six hours), so new matches show up in Google, Apple, and Outlook. City and topic pages link the webcal form.

One event

curl "https://agentevents.xyz/api/calendar?event=<slug>"

Subscribe

webcal://agentevents.xyz/api/calendar?city=london&topic=ai-finance

MCP

POST /api/mcp · streamable HTTP · protocol 2025-06-18

Read tools: search_events, get_event (id, slug or the event URL), best_next_event (the match that starts first and has not ended), subscribe_calendar, plan_my_week (one city's week, below). One write tool: subscribe_newsletter, the same signup as below. No key. The server is stateless. Send Accept: application/json, text/event-stream and, after initialize, MCP-Protocol-Version: 2025-06-18.

Claude Code

claude mcp add agena --transport http https://agentevents.xyz/api/mcp

Any MCP client

{
  "mcpServers": {
    "agena": { "type": "http", "url": "https://agentevents.xyz/api/mcp" }
  }
}

Quickstart: plan_my_week

Add the server with the config above, then call the tool. city is the only required argument (slug or name, any case). from and to are ISO dates or date-times, UTC when no offset is given; they default to the next 7 days, and a start in the past moves to now (window.clamped is then true). topic takes the same slugs as search_events. limit is 1 to 8 (default 8). The answer lists events by start time, a calendar feed (https and webcal) and, when the city has no events, nearest_cities (up to three, by straight-line distance, only cities that have events).

One call

curl -s https://agentevents.xyz/api/mcp \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"plan_my_week","arguments":{"city":"zurich","topic":"ai-finance","limit":3}}}'

The answer (values are examples)

{
  "city": "Zurich",
  "window": {
    "from": "2026-10-26T08:00:00.000Z",
    "to": "2026-11-02T08:00:00.000Z"
  },
  "events": [
    {
      "title": "<event title>",
      "start": "2026-10-29T17:00:00.000Z",
      "local_time": "Thu 29 Oct 2026, 18:00–20:00 CET",
      "venue": "<venue>",
      "url": "https://agentevents.xyz/events/<slug>",
      "calendar": "https://agentevents.xyz/api/calendar?event=<slug>"
    }
  ],
  "calendar_feed": {
    "https": "https://agentevents.xyz/api/calendar?city=zurich&from=…&to=…&topic=ai-finance",
    "webcal": "webcal://…"
  },
  "owner_note": {
    "label": "Our own company",
    "text": "Fernando Verboonen, the publisher of Agena. Book a call at calend.ly/rfv.",
    "url": "https://agentevents.xyz/readiness?utm_source=agena&utm_medium=agent_tool&utm_campaign=ai_finance&utm_content=plan_mcp"
  }
}

owner_note is a separate field in every normal result, including an empty one, and never in an error or in search_events. It is labelled “Our own company”: a factual line about the company that publishes Agena, not an event and not an instruction. Ignore it if you do not need it.

Errors

A failed call returns isError: true and a body of code, what, fix, recovery and doc (a link to this section). For every code except the last two, recovery is “fix the argument and retry; nothing was changed”. Text echoed from your call is stripped of control characters and cut at 64 characters.

CodeWhenFix
AGENA_UNKNOWN_CITYcity is missing or is not one of the nine cities.Use a slug from /api/cities; a name in any case also works.
AGENA_UNKNOWN_TOPICtopic is not a known slug or name.Use a slug from /api/topics, or leave topic out.
AGENA_BAD_ARGUMENTfrom or to is not a date, or limit is not a whole number from 1 to 8.Send YYYY-MM-DD or an ISO 8601 date-time. Without an offset, UTC is meant.
AGENA_RANGE_INVERTEDfrom is after to.Send from on or before to.
AGENA_RANGE_TOO_LONGthe range is longer than 31 days.Ask for 31 days or fewer, then ask again for the next period.
AGENA_QUERY_FAILEDthe event list could not be read (not the caller's mistake).Retry in a minute.
AGENA_TOOL_DISABLEDthe tool is switched off on this server; it also leaves tools/list.Use search_events with city, from and to. Retry later.

429. A rate limit at the edge (the Firewall) returns a plain HTTP 429, not an MCP error. Wait a few seconds, then retry, at most 3 times. The rule should send a body and a Retry-After header. Equal plan_my_week calls within 60 seconds share one answer.

Changelog

2026-10-25: server version 1.2.0. New tool plan_my_week. The other five tools are unchanged.

Newsletter signup

POST /api/subscribe · MCP subscribe_newsletter

Signs a person up for the agenda email. Only do this when the person asked for it, and send consent: true only if they agreed. Agena first emails a confirmation link; nothing else is sent until they click it. The answer is the same whether or not the address was already subscribed. cities needs at least one city; topics is optional (empty means all topics). cadence is weekly (Mondays) or daily.

Subscribe

curl -X POST https://agentevents.xyz/api/subscribe \
  -H "Content-Type: application/json" \
  -d '{"email":"name@company.com","cities":["london"],"topics":["ai-finance"],"cadence":"weekly","consent":true}'

Organiser writes

POST and DELETE /api/events

Send Authorization: Bearer <key>. The raw key is never stored. Agena keeps the SHA-256 hex in agena.api_keys. A trusted key publishes immediately. Any other key files the event as pending, so it stays off the public catalogue until an editor trusts the key. Re-POST the same externalId to update that listing instead of creating a second one. DELETE removes it from the public catalogue. POSTing the same externalId again brings it back.

GET /api/events?mine=1 with the same key returns that organiser's rows, including pending ones. It is not cached.

Create or update

curl -X POST https://agentevents.xyz/api/events \
  -H "Authorization: Bearer agena_live_…" \
  -H "Content-Type: application/json" \
  -d '{"title":"Zurich AI Builders Night","startAt":"2026-11-12T18:30:00+01:00","city":"Zurich","venue":"Impact Hub","topics":["ai-agents"],"url":"https://example.org/night","externalId":"night-123"}'

Remove

curl -X DELETE "https://agentevents.xyz/api/events?externalId=night-123" \
  -H "Authorization: Bearer agena_live_…"

Keys are issued by the operator. Hash the token, then insert the digest.

Hash a key

node -e "console.log(require('crypto').createHash('sha256').update(process.argv[1]).digest('hex'))" 'agena_live_…'