@cyanheads/ris-austria-mcp-server

中文文档
0.6.2发布于 2026/11/10Apache-2.0TypeScriptES Module近 30 天下载 2382

Search Austrian consolidated federal & state law, court decisions, and the authentic Bundesgesetzblatt from the official RIS via MCP. Keyless. STDIO or Streamable HTTP.

原始使用文档
文档目录24 节
  1. Overview
  2. Tools
  3. Resources
  4. Capability reference
  5. ris_search_legislation tool
  6. ris_search_case_law tool
  7. ris_search_gazette tool
  8. ris_search_drafts tool
  9. ris_search_announcements tool
  10. ris_lookup_citation tool
  11. ris_get_document tool
  12. ris_track_changes tool
  13. ris_list_reference tool
  14. ris://document/{application}/{documentNumber} resource
  15. Features
  16. Getting started
  17. Configuration
  18. Running the server
  19. Local development
  20. Docker
  21. Project structure
  22. Development guide
  23. Contributing
  24. License

@cyanheads/ris-austria-mcp-server

Search Austrian consolidated federal & state law, court decisions, and the authentic Bundesgesetzblatt from the official RIS via MCP. Keyless. STDIO or Streamable HTTP.

9 Tools • 1 Resource

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Overview

Austrian law from RIS, the government's official legal information system: federal, state, and municipal law, court decisions, official gazettes back to 1848, draft legislation, and ministerial decrees. Every document is labeled with its binding status. No API key required.

Tools

ToolDescription
ris_search_legislationSearch consolidated federal, state, and municipal law as in force on a date (default today), plus English translations of selected laws
ris_search_case_lawSearch case law in one court or tribunal per call, across 17 court codes
ris_search_gazetteBrowse the federal, state, district, and municipal gazettes, with federal history auto-routed back to 1848
ris_search_draftsSearch ministerial review drafts (Begutachtungsentwürfe) and government bills (Regierungsvorlagen)
ris_search_announcementsSearch seven sectoral collections, from social-insurance notices to ministerial decrees and council-of-ministers minutes
ris_lookup_citationResolve one Austrian legal citation ("§ 6 DSG", "BGBl. I Nr. 165/1999", a Geschäftszahl, ECLI, Rechtssatz number, or RIS ELI link) to its document
ris_get_documentFetch one document as markdown, HTML, or XML, or just its rendition URLs, with its binding status
ris_track_changesList every document added, changed, or deleted in one application within a date window
ris_list_referenceLook up RIS vocabularies offline: applications, courts, states, ministries, gazette parts, citation formats, search syntax

Resources

ResourceDescription
ris://document/{application}/{documentNumber}Markdown text of one RIS document

The resource mirrors ris_get_document, so tool-only clients lose nothing.

Capability reference

ris_search_legislation tool

  • Search by query (full text) or title (title, short title, or abbreviation such as "DSG"). scope is federal (default) or a Bundesland, municipality switches a state scope to municipal law, and language: english searches the ~138 English translations
  • in_force_as_of defaults to today in Austria and is echoed as appliedInForceAsOf; include_all_versions and the entered_force_* / left_force_* windows are mutually exclusive alternatives
  • Records carry law_id (filter on it for every section of a law), section_label, abbreviation, keywords, in-force dates, eli, celex_references, and content_urls. Consolidated records carry the cites that make up promulgation as original_gazette, latest_change_gazette, and latest_change_relation

ris_search_case_law tool

  • court is required, one code per call. Filter by query, cited norm ("DSG §1"), case_number, decided_from/decided_to, and decision_type (headnote, full_text, or all, the default). Court-specific filters include court_name (justiz), state (lvwg/uvs), and collection_number (vfgh/vwgh/uvs); one sent to the wrong court fails as court_filter_mismatch
  • norm searches an article in any spelling ("Art. 6 DSGVO", "DSGVO Art6", "Artikel 6 MRK") under all three spellings RIS indexes, and the notice names the expression sent
  • Records carry case_numbers (a headnote lists every decision it covers), decision_date, ecli, norms_cited, and guiding_principle on headnotes; justiz records add legal_areas, and justiz headnotes rechtssatz_numbers
  • court: normenliste returns indexed laws under norm_index instead of decisions

ris_search_gazette tool

  • scope is federal (default), a Bundesland, district, or municipal. Filter by number, part, type, published_from/published_to, issuer, district_authority, or municipality; state scopes also take series and state_era
  • Federal queries are served from one era (BgblAuth 2004+, BgblPdf 1945–2003, BgblAlt 1848–1940), echoed as servedApplication; a date range spanning two eras fails as cross_tier_range with the dates to split at
  • Records carry application (the code ris_get_document takes with document_number, equal to servedApplication), binding (authentic, historical_record, consolidated_informational), authentic_pdf_url where one exists, alex_url (ÖNB scan) for 1848–1940, celex_references where applicable, and promulgation on federal entries from 1848–2003

ris_search_drafts tool

  • stage is required: review_drafts (with in_review_on) or government_bills (2004+, with decided_from/decided_to); ministry accepts an abbreviation such as "BMF" or a full designation
  • Records carry review_start and review_deadline or decided, abbreviation and keywords where RIS supplies them, plus materials[] (Erläuterungen, Textgegenüberstellung, Vorblatt/WFA, annexes) classified by type. Pass a materials[].url to ris_get_document to read one

ris_search_announcements tool

  • collection is required: social_insurance, veterinary, court_rules, trade_exam_rules, health_structure_plans, ministerial_decrees, or council_minutes. A filter its collection doesn't accept fails as collection_filter_mismatch, including changed_since on social_insurance and veterinary. issuer expands ministry ("BMF") and social-insurance carrier ("ÖGK") abbreviations
  • Records carry binding (authentic, administrative_directive, or preparatory), authentic_pdf_url, and document_url, the only browsable view of council minutes and decrees
  • Each collection adds its own metadata where RIS supplies it, such as case_numbers, in_force_from/in_force_until, keywords, court_name, plan_state, and session_number

ris_lookup_citation tool

  • One citation per call, classified as a norm ("§ 6 DSG"), gazette number ("BGBl. I Nr. 165/1999"), case number ("VfGH G 13/2025"), ECLI, Justiz Rechtssatz number ("RS0022961"), collection number ("VfSlg 19.632/2012"), or RIS ELI link. kind forces a route, court and state narrow it, and in_force_as_of pins a norm's version (default today)
  • Returns found, kind, and a record in the matching search tool's shape, with alternatives_count when several documents matched. A miss returns found: false with guidance instead of an error
  • A norm resolves to the cited law:
    • the law is matched as RIS files it ("§ 2 EStG" → EStG 1988 § 2; "AlVG 1977" → the AlVG, filed without its year; "VwGVG 2014 §28" → VwGVG § 28), and a long title is read by its short form ("StaatsanwaltschaftsG - StAG §35" → StAG § 35)
    • sub-provisions and a trailing ";" are set aside ("Art. 6 (1) B-VG" → B-VG Art 6), and an ordinal-led abbreviation reads like any other ("1. COVID-19-JuBG §1")
    • a cited version is set aside ("ABGB idF BGBl I 2010/28 §988" → ABGB § 988 as in force on the requested date, never the amending act's gazette entry), with a note saying the cited version was not applied
    • an entry citing several provisions ("DSG §1, §24", "ZPO §179. ZPO §275 Abs2") resolves the first and names the rest
  • An EU act RIS does not consolidate ("DSGVO Art32", "RL 2006/123/EG", "VO (EG) 178/2002 Art3") returns found: false with its EUR-Lex link, without a RIS request
  • A gazette number without its part ("BGBl. Nr. 50/2025") comes back ambiguous, naming parts I, II, and III
  • A string of several gazette cites, as a consolidated record's promulgation joins them ("BGBl. Nr. 267/1967 zuletzt geändert durch BGBl. I Nr. 17/2026"), resolves by its first cite and names the others; a first cite in a gazette the lookup does not read returns found: false without a search. A state organ carrying its Bundesland ("LGBlNÖ Nr. 72/2016") needs no state hint, and a disagreeing hint is reported as not applied
  • An RIS ELI link (a consolidated-law or authentic-gazette record's eli or document_url, over https or http, with or without the scheme) resolves to the provision or entry it names, whatever version is in force; in_force_as_of and state don't apply. A path that spells a gazette cite (/eli/bgbl/{I|II|III}/{year}/{number}, /eli/lgbl/{state}/{year}/{number}, or /eli/{bgbl|rgbl|stgbl|gbloe}/{year}/{number} with no part, as before 1997) followed by nothing but date, language, or format segments resolves as that cite (/eli/bgbl/II/2026/317, /eli/bgbl/1974/60). Other /eli/ layouts, including a provision's path cut before its document number (/eli/bgbl/i/1999/165/A2P4), return found: false, kind: unknown, without a request
  • A Rechtssatz number ("RS0022961", "RIS-Justiz RS0022961 [T3]", "RW0001127") resolves to that headnote through Justiz whatever the court hint; a bracketed T number is not searched
  • A VwSlg cite VwGH stores in another shape ("VwSlg 0017 F/1947", "VwSlg. 1485 A/1950", "VwSlg 1809/50") resolves through one more search within the cited year

ris_get_document tool

  • Address by document_number + application, or by a document_url: a record's own document_url or eli (an ELI or Dokument.wxe web view, read for the document it names), a content_urls entry, or a draft's materials[].url; format is markdown (default), html, xml, or urls_only
  • Every result carries binding_status and authentic_pdf_url where one exists. Where a PDF is the only rendition (district and municipal promulgations, court rules, party-transparency decisions, council minutes, and draft companions filed without HTML), markdown returns the text extracted from it: plain text with a --- Page N of M --- line before each page, text_source: pdf, and a notice naming the PDF. A scanned PDF with no text layer, one over 16 MiB, or one that cannot be fetched in time returns a notice with the usable URL instead of failing, as do html and xml there and the 1848–1940 gazettes, which have no PDF to read
  • Markdown writes image references as absolute URLs on the content host. A rendition that is nothing but page images reads its PDF's text, and keeps the image URLs with a notice when the PDF has none
  • Markdown over 40,000 bytes returns kind: outline; re-call with sections to fetch entries. html and xml over 40,000 bytes return kind: link with byte_size and content_urls, so read with markdown

ris_track_changes tool

  • application (any of the 39 codes) plus changed_from/changed_to; include_deleted adds removals, which no other tool reports
  • Records carry changed, published, and binding_status; deletions set deleted: true with deleted_at
  • Law rows carry section_label, law_id, and in_force_from/in_force_until (no end date is not the same as in force now), and decision rows carry case_numbers and decision_date

ris_list_reference tool

  • topic selects one of 17 static tables: applications, courts, states, decision types and kinds, issuing bodies, ministries, collections, stages, changed-since intervals, section types, gazette parts, law types, district authorities, justiz subject areas, search syntax, and citation formats
  • Returns summary and entries (value, label, details) with no upstream call

ris://document/{application}/{documentNumber} resource

  • text/markdown of one document, addressed by application + documentNumber from a search or lookup result; same content as ris_get_document with format: markdown
  • Applications that publish only a PDF return its extracted text in a fenced block with a note naming the PDF; the 1848–1940 gazettes and a PDF with no extractable text return a note pointing at the PDF or scan. Oversized text returns the outline, so use the tool to fetch an entry

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

RIS-specific:

  • All 39 OGD applications: consolidated law, federal, state, district, and municipal gazettes, 17 court and tribunal collections, the lawmaking pipeline, and sectoral announcements
  • Citations resolve through exact filters (section plus title, gazette number, Geschäftszahl, Sammlungsnummer) rather than keyword search
  • Dates are YYYY-MM-DD; search tools page with page and page_size (1–100, served as pages of 10 or 20; default 20); omit a text filter rather than sending it blank
  • Court, application, state, and ministry codes come from ris_list_reference
  • Tool descriptions are English; titles, field values, and RIS error messages stay German

Agent-friendly output:

  • Every record carries a typed binding status (authentic, consolidated_informational, historical_record, decision, preparatory, administrative_directive, translation)
  • Paged results report totalCount and truncated and echo what the server applied, such as appliedInForceAsOf and servedApplication
  • Typed error reasons (court_filter_mismatch, cross_tier_range, invalid_query, document_not_found, …) and zero-hit notices name the next call

Getting started

Connect to the hosted instance, no install:

claude mcp add --transport http ris-austria-mcp-server https://ris-austria.caseyjhand.com/mcp

Or run it locally:

claude mcp add ris-austria-mcp-server -- npx -y @cyanheads/ris-austria-mcp-server

For other clients, add this to the MCP config file:

{
  "mcpServers": {
    "ris-austria-mcp-server": {
      "command": "npx",
      "args": ["-y", "@cyanheads/ris-austria-mcp-server"]
    }
  }
}

No API key is needed. For Docker or a source build, see Running the server.

Configuration

VariableDescriptionDefault
RIS_API_BASE_URLRIS OGD REST API base URL.https://data.bka.gv.at/ris/api/v2.6
RIS_CONTENT_BASE_URLDocument content host that rendition URLs are built on and documents are fetched from. https://www.ris.bka.gv.at answers automated clients with a bot-check page.https://ogd.ris.bka.gv.at
RIS_CONTACTContact string appended to the User-Agent.none
RIS_FOLD_INPUT_SPELLINGSAccept a court or application code in any letter case, and a state by its German or English name, folding it to the code before validation. false restores strict validation for every such field.true
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTHTTP server port.3010
MCP_SESSION_MODEHTTP session mode: stateless, stateful, or auto.stateless
MCP_AUTH_MODEAuthentication: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (debug, info, warning, error, etc.).info
OTEL_ENABLEDEnable OpenTelemetry.false

See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4.4 or higher (or Node.js v24+).

  • Clone and install:

    git clone https://github.com/cyanheads/ris-austria-mcp-server.git
    cd ris-austria-mcp-server && bun install
    
  • Build and run:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker run --rm -p 3010:3010 ghcr.io/cyanheads/ris-austria-mcp-server:latest

The image defaults to HTTP transport, stateless session mode, and logs to /var/log/ris-austria-mcp-server. To run it over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/ris-austria-mcp-server:latest"]. To build locally, docker build -t ris-austria-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools and resources.
src/configOptional RIS endpoint, contact, and input-fold configuration, parsed with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts).
src/mcp-server/resourcesResource definitions (*.resource.ts).
src/services/risRIS request building, HTTP access, normalization, and static reference data.
docs/design.mdDesign notes: tool surface, service spec, live-confirmed RIS API reference.
tests/Unit and integration tests mirroring src/.
framework-skills/Development skills synced from @cyanheads/mcp-ts-core.

Development guide

See CLAUDE.md / AGENTS.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources via createApp() in src/index.ts
  • Wrap the RIS API: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

RIS OGD data is CC BY 4.0 (attribution: RIS, Bundeskanzleramt Österreich). The underlying legal texts are copyright-free official works. Only the authentic, amtssignierte gazette wording is legally binding — consolidated RIS text is informational.

版本与发布记录

@cyanheads/ris-austria-mcp-server 共发布 26 个版本,首次发布于 2026/07/10;过去 12 个月发布了 26 个版本。

版本发布日期距今
0.6.2latest2026/11/101 天前
0.6.12026/10/3111 天前
0.6.02026/10/2814 天前
0.5.52026/10/2517 天前
0.5.42026/10/2517 天前
0.5.32026/10/2418 天前

关于 @cyanheads/ris-austria-mcp-server 的常见问题

@cyanheads/ris-austria-mcp-server 是什么?

Search Austrian consolidated federal & state law, court decisions, and the authentic Bundesgesetzblatt from the official RIS via MCP. Keyless. STDIO or Streamable HTTP.

如何安装 @cyanheads/ris-austria-mcp-server?

在项目目录运行 npm install @cyanheads/ris-austria-mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 ris-austria-mcp-server,可以用 npx ris-austria-mcp-server 直接运行。

@cyanheads/ris-austria-mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cyanheads/ris-austria-mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cyanheads/ris-austria-mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cyanheads/ris-austria-mcp-server 可以商用吗?

@cyanheads/ris-austria-mcp-server 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@cyanheads/ris-austria-mcp-server 的下载量有多少?

根据 npm 官方下载统计,@cyanheads/ris-austria-mcp-server 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,382 次,日均约 79 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cyanheads/ris-austria-mcp-server 还在维护吗?

最新版本 0.6.2 发布于 2026/11/10(1 天前);至今共发布 26 个版本,其中过去 12 个月发布了 26 个;首次发布于 2026/07/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。