Skip to main content
Glama

exyu-mcp

An MCP server that gives AI agents (Claude, ChatGPT, and others) the ex-Yugoslav cultural context they're currently missing.

The problem

LLMs are fluent in ex-YU languages but culturally thin. They know the five most-famous lines of a cult film, not the 200th-most-quoted one, the exact wording, or who actually said it. The exact quote, the correct attribution, the slang meaning, the modern usage — that long tail is missing or hallucinated. This repo builds the layer that fills it: a factual, citable, safe-by-construction cultural-reference database exposed as an MCP server, so any connected agent (Claude, ChatGPT, others) can look it up instead of guessing.

Related MCP server: BENZEMA's Personal Knowledge Card

Scope

This repo is deliberately narrow: cultural reference resolution only — quotes, attribution, timestamps, slang meaning, cultural weight. Safe, factual, sourced. Full design in brainstorming/.

We don't try to convince or configure the host platforms — we build the data and the MCP, ship it, and let each platform decide whether to use it. The lever we control is trust: transparent sourcing and per-field provenance, not permission-seeking.

Explicitly out of scope here: shaping how a model talks — tone, directness, swearing as normal register rather than something to sanitize. That's a different kind of problem (what a model is willing to say, not what it knows) and needs a different delivery mechanism than an MCP tool call to someone else's chat app. Planned as a separate future project — a skills/harness layer for a custom chat app or direct API use, potentially reusing this repo's MCP/data. Not started; revisit once this repo's MVP is live.

Current-phase decisions

  • Copyright/licensing: deferred. We go bold on short-quote usage for now and treat it as a solved problem — there's no way around ingesting copyrighted subtitles/lyrics for the payload this project needs, and stalling on it blocks everything else. The full risk/tier analysis is kept in brainstorming/09-risks-and-licensing.md for when this needs a real answer (before any wide/public distribution) — it's deferred, not forgotten.

Status

Working MVP, not yet through live acceptance. The Phases 0–2 build from the design spec is implemented and green in CI:

  • TypeScript MCP server exposing resolve_reference over Streamable-HTTP (src/server/http.ts) and an npx stdio twin (bin/exyu-mcp.ts).

  • Postgres + pgvector/pg_trgm/tsvector storage, with a trigram → FTS → vector cascade and fully-cited results (work, speaker, timestamps, countersign, meaning, modern usage, per-field provenance).

  • YAML records validated against a locked JSON Schema, ingested into Postgres transactionally and idempotently.

  • Docker Compose deployment behind Caddy (TLS + rate limiting), with push-to-main CI/CD to a Hetzner box.

Not done yet: the live vertical-slice acceptance test — the Valter record is still a stub with ⚠ TO-VERIFY fields (countersign, speaker, timestamps) that need real subtitle data, and the 06-plan.md acceptance test (type "Vazduh gori ko da…" into a real Claude/ChatGPT chat and get the resolved record back) has not been run against a live deploy.

Full design: docs/superpowers/specs/ and docs/superpowers/plans/; original design notes in brainstorming/.

Quickstart

cp .env.example .env          # then fill in the values below
npm ci
docker compose up -d db       # or `docker compose up -d --build` for the full stack
npm run build                 # required: `npm run migrate` runs the compiled output
npm run migrate               # apply db/migrations/
npm run validate              # schema-check every records/**/*.yaml
npm run ingest -- records/film/ref_valter_vazduh_trepti.yaml
npm run dev                   # http://localhost:8787/mcp  (or `npm start` after build)

Other scripts: npm test (vitest; the DB-backed tests need Docker for testcontainers), npm run migrate:dev (migrate via tsx, no build needed).

Environment variables

Variable

Required

Notes

DATABASE_URL

yes

e.g. postgres://exyu:exyu@localhost:5432/exyu

PORT

no

HTTP transport port, default 8787

CHAT_PROVIDER

ingest only

anthropic | openai | grok, default anthropic

ANTHROPIC_API_KEY / OPENAI_API_KEY / GROK_API_KEY

ingest only

key for the selected CHAT_PROVIDER

EMBEDDING_PROVIDER

yes

openai | voyage | local, default openai

OPENAI_EMBEDDING_API_KEY / VOYAGE_API_KEY / LOCAL_EMBEDDING_URL

yes

credential for the selected EMBEDDING_PROVIDER

OPENSUBTITLES_API_KEY

no

only for npm run fetch-subtitle

EXYU_DOMAIN

production

public hostname Caddy terminates TLS for; falls back to localhost

The refs.embedding column is vector(1536), matching the default OpenAI text-embedding-3-small model. Switching EMBEDDING_PROVIDER to a different-dimension model (voyage-3 is 1024) requires altering that column; ingest and resolve both fail with an explicit dimension-mismatch error otherwise.

Available Tools

1 tool
resolve_referenceA
Read-onlyIdempotent

Call this for ANY ex-YU film quote, song lyric, slang term, or meme reference — including partial, misremembered, or colloquial phrasings. The model's internal knowledge of ex-YU culture is unreliable for exact wording, attribution, and modern usage; do not answer from memory without calling this tool first.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesThe quote, lyric, slang term, or meme phrase to resolve.

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already provide readOnlyHint and idempotentHint, so the safety profile is known. The description adds behavioral context beyond annotations: it states that the tool accepts partial, misremembered, or colloquial phrasings, and that the model's internal knowledge is unreliable, which explains the tool's necessity. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description consists of two sentences, both essential. The first sentence is front-loaded with the action ('Call this') and the exact scope, while the second sentence reinforces the need and urgency. There is no redundant information or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter read-only tool, the description covers the key aspects: what it does, when to use it, and why it is needed. It omits details about the return format or error behavior, but with strong annotations and a clear purpose, the description is sufficiently complete for the agent to act correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema describes the 'query' parameter as 'The quote, lyric, slang term, or meme phrase to resolve' with 100% coverage. The description further enriches the parameter semantics by clarifying that partial, misremembered, or colloquial phrasings are acceptable inputs, giving the agent a better understanding of the expected input format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'resolve' and clearly identifies the resource: ex-YU film quotes, song lyrics, slang terms, and memes. It even notes the comprehensive scope ('ANY') and explicitly differentiates this tool as the required handler for these reference types, making its purpose unmistakable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: 'Call this for ANY ex-YU film quote...' and even instructs the agent not to answer from memory without invoking it. It also explains why the tool is necessary (model's internal knowledge is unreliable), giving clear context and no ambiguity about when to invoke it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev0.1.0
    • First observedresolve_reference

TDQS

A4.7/5.0
Disambiguation5/5

Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clearly defined and distinct.

Naming Consistency5/5

The single tool name follows a verb_noun structure (resolve_reference), which is clear and consistent. With only one tool, there are no inconsistencies.

Tool Count4/5

One tool is on the low end, but the server's scope is extremely narrow (ex-YU cultural reference resolution), making a single-tool design appropriate. It is slightly under the typical 3-15 range but not a deficiency.

Completeness5/5

The tool comprehensively covers the domain of ex-YU references, including quotes, lyrics, slang, and memes, with no obvious missing operations for the stated purpose.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/easingthemes/exyu-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server