Montenegro Facts

Montenegro Facts

A free, open reference about Montenegro for AI agents and the people who use them: what to see, where to go, what things cost, and what the official statistics say. Written to be quoted, with dated claims, named sources and honest "verify" flags where facts go stale.

  • Updated

The site is built agent-first (clean Markdown and JSON, no scripts needed), with a plain landing page for humans at index.html. Everything is static files, free to read and reuse with attribution.

For AI agents

  1. Fetch /llms.txt, the index (per the llms.txt convention). /llms-full.txt is the whole corpus in one request. Accept: text/markdown on / returns the Markdown overview.
  2. Read the Markdown pages. Each has title, description, last_updated and lang in its front matter. Destination pages add best_season.
  3. For structured data start at /api/index.json, the catalogue of every JSON endpoint (also listed in /.well-known/api-catalog):
    • destinations and directory: places, where to stay, trending eats;
    • country facts: capital, currency, emergency numbers, population;
    • tourism: overnight stays 2017 to 2026, top source countries, hotel arrivals and accommodation capacity;
    • economy: inflation and average pay;
    • people: unemployment rates and population by municipality.
  4. Keep the attribution. Every statistic carries source, source_url, retrieved_at and citation_note; cite MONSTAT and don't strip it.
  5. Trust dated stable facts; re-verify anything flagged verify or on pages marked volatility: HIGH. A Montenegrin (cnr) mirror of the pages lives under /me/; the statistics endpoints are English-only for now.

Use from an AI assistant

An AI assistant that supports the Model Context Protocol can connect to the read-only MCP server at https://montenegrofacts.org/mcp (Streamable HTTP). Its discovery card is at /.well-known/mcp.json. Every answer carries its source attribution and caveats, and requests are rate-limited (about 10 per minute).

For people

Open index.html for a short guide with the destinations sorted by what is in season. The Markdown pages read fine in any browser or editor:

Human visits are counted with Cloudflare Web Analytics, which uses no cookies and does not track individuals; the site itself stores no personal data. The Markdown pages, the JSON API and the MCP endpoint carry no analytics script.

How content is chosen

  • The directory lists only long-established places, each with a status, and leaves out phone numbers and prices (they go stale).
  • "Trending eats & drinks" sections are the opposite: current buzz, dated "as of <month year>", each pick cross-checked against two independent signals (TripAdvisor plus recent press) and re-researched roughly every season.
  • "Where to stay" sections are accommodation picks sourced the same way. They link to Booking.com. No affiliate programme is currently active, so the site earns nothing from them.
  • Statistics are official MONSTAT figures, shown as curated headline aggregates, never copies of MONSTAT's tables. Where an open-licence copy exists (data.gov.me, Creative Commons Attribution) we use it and say so in the licence_signal field.

Corrections

Corrections are welcome: file an issue or pull request. Factual claims should cite an official source (gov.me, montenegro.travel, MONSTAT, operator sites).

Repository layout and maintenance

index.html            human landing page (JSON-LD: WebSite + Dataset)
llms.txt, llms-full.txt   agent index; generated full corpus
index.md, guides/, destinations/, directory/   the content pages (Markdown is the source of truth)
destinations/*.html, guides/*.html, directory/index.html   generated web-page twins (also under me/); built by tools/build-pages.mjs
tools/                build tooling (Node); node_modules git-ignored
api/                  static JSON (see api/index.json); me/api/ = Montenegrin
robots.txt            all crawlers welcome + Content-Signal (search / ai-input / ai-train = yes)
sitemap.xml           every page, for search and AI crawler discovery
_headers              CORS, content types, RFC 8288 Link discovery headers
wrangler.jsonc, worker/index.js   Cloudflare Worker with static assets; Markdown negotiation on / and /me/
.assetsignore         repo-only files kept off the public site (README.md stays public as the About page)
.well-known/api-catalog   RFC 9727 linkset listing the JSON index endpoints
me/                   Montenegrin (lang: cnr) mirror of the tree above
build-*.ps1           generators: llms-full, destination/directory JSON, tourism, economy, people
data-source/          raw third-party inputs, git-ignored (MONSTAT is All Rights Reserved)
data-staging/         unreviewed ingested statistics, not served
tests/                Playwright e2e suite (links, agent endpoints, landing pages, season order, a11y, content)
.claude/              maintenance notes and agent definitions

Updating content: edit the .md file and its last_updated; mirror the change into /me/; for destination pages, guides and the directory run node tools/build-pages.mjs (after npm ci in tools/) to regenerate the HTML twins, and commit them; run build-llms-full.ps1 and build-llms-full-me.ps1, then build-api-json.ps1 and build-api-json-me.ps1; update the page's <lastmod> in sitemap.xml. After a new MONSTAT release, replace the file in data-source/ and run the matching build-api-*.ps1 -RetrievedAt <date> script. data.gov.me asks for 10 seconds between requests and disallows its own /api/ path, so the economy and people scripts download only specific files.

Running the tests:

cd tests
npm ci
npx playwright test                 # full suite against an auto-started `wrangler dev`
BASE_URL=https://montenegrofacts.org npx playwright test e2e/links.spec.ts e2e/agent-endpoints.spec.ts   # prod smoke, no browser needed

CI runs the full suite on every PR and push to main (.github/workflows/e2e.yml), plus a daily production smoke test (.github/workflows/prod-smoke.yml).

Deploying: the site is plain static files with no build step. It is deployed as a Cloudflare Worker with static assets (Workers Builds, connected to this GitHub repo): main runs the production deploy and every other branch gets a preview via npx wrangler versions upload. Both read wrangler.jsonc.

  • Local preview: npx wrangler dev serves the site as deployed. Check Markdown negotiation with curl -sI -H "Accept: text/markdown" http://localhost:8787/ and expect Content-Type: text/markdown.
  • Adding a repo-only file or folder (docs, scripts, tooling) at the root? Add it to .assetsignore, or it becomes publicly downloadable.
  • Custom domain: attach montenegrofacts.org in the Worker's "Domains" settings; if the nameservers point to Cloudflare, DNS and SSL are provisioned automatically.
  • Netlify / Vercel: possible as plain static hosting, but replicate _headers (on Vercel via a vercel.json headers block) and the Worker's Markdown negotiation yourself.
  • While testing on a free *.workers.dev address, don't submit it to Google Search Console or Bing Webmaster Tools; wait until montenegrofacts.org is attached.

Back to home