Skip to main content
Glama
Audiala MCP Server
by audiala
README.md
# Audiala MCP Server

Official public [Model Context Protocol](https://modelcontextprotocol.io) server for [Audiala](https://audiala.com) — narrated audio guides, city overviews, and trip-planner handoff for **44,000+ places across 1,900+ cities in 11 languages**. Free hosted Streamable HTTP endpoint, no API key, no signup.

In ChatGPT, Claude, and other [MCP Apps](https://modelcontextprotocol.io/docs/extensions/apps) hosts, results render as an interactive Audiala card with a photo, source-cited summary, a 45-second narrated audio preview, top city highlights, and a deep link into the app.

| | |
|---|---|
| **Endpoint** | `https://mcp.audiala.com/mcp` |
| **Transport** | Streamable HTTP (JSON-RPC 2.0 over `POST /mcp`) |
| **Auth** | None (free, read-only) |
| **Discovery** | [`/.well-known/mcp.json`](https://mcp.audiala.com/.well-known/mcp.json) |
| **Official MCP Registry** | `com.audiala/mcp` |
| **Website & Docs** | [audiala.com](https://audiala.com) · [mcp.audiala.com](https://mcp.audiala.com) |
| **Open POI Dataset** | [`audiala/open-data`](https://github.com/audiala/open-data) (CC BY 4.0 · [Zenodo DOI 10.5281/zenodo.24847659](https://doi.org/10.5281/zenodo.24847659)) |
| **License** | MIT |

## Tools

| Tool | Arguments | What it returns |
|---|---|---|
| `get_city_overview` | `name`, `lang?` | City card: summary, hero image, audio-guide count, top places that have a guide, plus canonical `audiala.com` URL, web-app link (`app_url`), and app deep link (`open_in_app`). |
| `get_audio_guide_preview` | `city`, `monument`, `lang?` | Place card: photo, summary, 45-second narrated audio preview URL, coordinates, Wikidata ID, and app deep links. Matches across the 44,000+ place catalog; unknown places return closest matches in that city. English place names resolve to the requested language via `hreflang` alternates. |
| `get_trip_planner_link` | `city`, `lang?`, `q?` | A link into Audiala's zero-login browser trip planner (`app.audiala.com/trip/new`) prefilled with the city and optional walk brief (`q`), plus top city places and an in-app deep link. Does not generate itineraries server-side. |
| `audiala_contact_team` | `from_email`, `confirmed`, `purpose?`, `from_name?`, `from_org?` | Listed for Claude clients only; callable by name from any client. Returns the appropriate Audiala contact mailbox and intro template after explicit user confirmation (`confirmed: true`, enforced at runtime). |

Backward compatibility: earlier tool aliases (`audiala_find_city`, `audiala_audio_guide`, `audiala_plan_trip`) remain callable via `tools/call` for clients with cached tool lists.

Supported languages: English (`en`), French (`fr`), German (`de`), Spanish (`es`), Italian (`it`), Portuguese (`pt`), Russian (`ru`), Japanese (`ja`), Chinese (`zh`), Czech (`cs`), and Hindi (`hi`).

## Install in your AI assistant

**Claude Code**

```bash
claude mcp add --transport http audiala https://mcp.audiala.com/mcp
```

**Claude (claude.ai / Desktop)** — Find **Audiala** in the Claude Connectors Directory, or go to Settings → Connectors → *Add custom connector* → URL: `https://mcp.audiala.com/mcp`.

**Cursor** — add to `~/.cursor/mcp.json` (or `.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "audiala": {
      "url": "https://mcp.audiala.com/mcp"
    }
  }
}
```

**Clients that only speak stdio** — bridge with [`mcp-remote`](https://www.npmjs.com/package/mcp-remote):

```json
{
  "mcpServers": {
    "audiala": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.audiala.com/mcp"]
    }
  }
}
```

**ChatGPT** — Settings → Apps & Connectors → Advanced → enable *Developer mode*, then connect `https://mcp.audiala.com/mcp` with no authentication. Try asking *"Play the Audiala guide for the Colosseum"* or *"Which places in Lisbon have an Audiala guide?"*.

## MCP Apps interactive cards

- The three read tools return `structuredContent` and declare `_meta.ui.resourceUri` (plus `openai/outputTemplate`) pointing to `ui://audiala/card-v1.html`.
- `resources/read` serves `src/widget.js` as a self-contained `text/html;profile=mcp-app` document with zero build step and zero outbound XHR/fetch calls (media loaded only from allowlisted `audiala.com`, `s3.audiala.com`, `images.pexels.com`, `images.unsplash.com`, and `upload.wikimedia.org`).
- Hosts without MCP Apps widget support receive the identical structured JSON in `content` text.

## Registry metadata

- [`server.json`](./server.json) — [Official MCP Registry](https://registry.modelcontextprotocol.io) definition (`com.audiala/mcp`).
- [`smithery.yaml`](./smithery.yaml) — [Smithery](https://smithery.ai) external remote server config.
- [`glama.json`](./glama.json) — [Glama](https://glama.ai/mcp/servers) maintainer metadata.

## Local development & tests

```bash
npm install
npm test
npx wrangler dev
```

Smoke-test locally:

```bash
curl -sS -X POST http://localhost:8787/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq

curl -sS -X POST http://localhost:8787/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_city_overview","arguments":{"name":"rome"}}}' | jq
```

## Architecture

- **Cloudflare Worker:** `src/index.js` (JSON-RPC 2.0 protocol, tool routing, rate-limit hooks), `src/schemas.js` (JSON Schemas), and `src/widget.js` (11-locale MCP Apps card UI).
- **Catalog data:** Reads public per-language destination indexes (`https://audiala.com/search/<lang>/destinations-index.json`) and public place/city metadata on `audiala.com` with Cloudflare Cache API caching.
- **Endpoints:** `POST /mcp` (primary Streamable HTTP endpoint), `POST /chatgpt/mcp` (dedicated ChatGPT client route), `GET /.well-known/mcp.json` (discovery), and `GET /` (human-readable docs).
- **Deployment secrets:** Configured via `npx wrangler secret put` (`MCP_CAPTURE_TOKEN`, `OPENAI_APPS_CHALLENGE`); zero secrets are committed in this repository.

## License

MIT — see [LICENSE](./LICENSE). Built by [Audiala Solutions SA](https://audiala.com) (Morges, Switzerland).