Borrowing it
Nothing to install: this file belongs to amirdaraee/luxembourg-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/amirdaraee/luxembourg-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/amirdaraee/luxembourg-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/amirdaraee/luxembourg-mcp/claude-md)<a href="https://agentmods.dev/instructions/amirdaraee/luxembourg-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/amirdaraee/luxembourg-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/amirdaraee/luxembourg-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/amirdaraee/luxembourg-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02162 | $0.02162 |
| Opus 5.5 | $0.00865 | $0.00865 |
| Sonnet 5.5 | $0.00432 | $0.00432 |
| Haiku 4.5 | $0.00216 | $0.00216 |
Grade A, and why
luxembourg-mcp CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `src/luxembourg_mcp/http.py` — `HttpClient` wraps urllib; every network failure becomes `UpstreamError`. Enforces a 25 MB response cap and exact-hostname HTTPS allowlisting including on redirects (`_SafeRedirectHandler How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
pip install -e . # install (editable)
PYTHONPATH=src python -m unittest discover -s tests -v # offline test suite (deterministic, no network)
PYTHONPATH=src python -m unittest tests.test_server.ProtocolTests.test_initialize # single test
LUXEMBOURG_MCP_LIVE=1 PYTHONPATH=src python -m unittest tests.test_live_tools -v # opt-in E2E against real upstreams
luxembourg-mcp # stdio transport (default)
luxembourg-mcp --transport http --port 8000 # HTTP: /mcp endpoint, / catalog, /health, /status
LUXEMBOURG_MCP_RATE_LIMIT sets the HTTP per-IP requests/minute limit (0 disables; IPv6 bucketed by /64). LUXEMBOURG_MCP_MAX_CONNECTIONS caps concurrent HTTP connections (default 32).
Hard constraint: zero dependencies
dependencies = [] in pyproject.toml is deliberate. The MCP protocol (JSON-RPC), HTTP client, XML/CSV/zip parsing, and JSON Schema validation are all hand-implemented on the stdlib. Do not add runtime dependencies; extend the existing minimal implementations instead (e.g. validate_schema in server.py supports only the schema keywords the tools actually declare).
Architecture
Three layers, strictly ordered:
src/luxembourg_mcp/http.py—HttpClientwraps urllib; every network failure becomesUpstreamError. Enforces a 25 MB response cap and exact-hostname HTTPS allowlisting including on redirects (_SafeRedirectHandler):allowed_hostswhen passed, otherwise the request URL's own host only (so a hardcoded upstream that starts redirecting cross-host fails loudly in the weekly live tests — update the constant rather than widening the policy).src/luxembourg_mcp/providers.py—LuxembourgData, one method per tool ("fetch → parse → shape"). Upstream base URLs are hardcoded constants. TTL cache via_cached()for expensive fetches (STATEC catalog, GTFS zip, ENTSO-E electricity documents, plenary votes, deputies, ADEM figures and commune registers: 1 h; air quality and LU-Alert metadata: 10 min; FLEX and Vël'OK: 2 min)._latest_resource()picks the newest file in datasets that publish one per day/quarter.HttpClientis constructor-injected, which is what lets tests run offline with a fake.src/luxembourg_mcp/status.py—StatusMonitorbehindGET /status(the catalogue's per-card status lights): one cheapHttpClient.probe()per upstream inUPSTREAMS(reads only 4 KB; dataset-backed tools probe the small data.public.lu API v2 record, not v1), refreshed at most every 10 min, stale-while-revalidate; the first visitor waits at most 5 s and each round has a 30 s deadline, because request threads share the HTTP connection cap with /mcp. One failure = degraded, two in a row = down; a tool shows the worst state of itsTOOL_UPSTREAMS.src/luxembourg_mcp/server.py—McpServer: the tool registry (name →Tooldataclass with JSON schema), JSON-RPC dispatch (dispatch()→ HTTP status + body;handle()wraps it for stdio/tests), schema validation, and both transports (stdio loop; statelessThreadingHTTPServerwith body-size cap,RateLimiter, and localhost-Origin check).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago Changed · -1 lines · -21 tokens per session 168fc4cc6c9f
- 1mo ago Changed · +2 lines · +232 tokens per session 3af57734af53
- 1mo ago Changed · +1 lines · +108 tokens per session 0af4748ac066
- 1mo ago Changed · +10 lines · +708 tokens per session ea9742de6e17
- 2mo ago First seen · 59 lines · 1,135 tokens per session scan A d68dceb206f3
luxembourg-mcp CLAUDE.md is an instructions file published in the GitHub repository amirdaraee/luxembourg-mcp (8 stars, last pushed 10d ago), licensed MIT. It adds 2,162 tokens to every session, about $0.0086 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
luxembourg-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| luxembourg-mcp CLAUDE.mdamirdaraee/luxembourg-mcp | Instructions file | 8 | 10d ago | MIT | A | 2,162 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 275k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |