MCP 서버

dokumendiregister.ee — Estonian public-authority documents

io.github.Nimistu/dokumendiregister-mcp

이 MCP로 할 수 있는 일

Searches and retrieves Estonian public-authority documents, including full text, metadata, attachments, and documents linked to companies.

documents_by_company
Public-authority documents involving a company
Given an 8-digit Estonian registry code (registrikood), return every public-authority document that names that company — across ALL registers at once, with the authority, document type, date and the company's role. Each authority publishes its own register with no shared search, so this cross-register company join is unique to dokumendiregister.ee. Find a registry code via nimistu.ee or the nimistu MCP.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['reg_code'], 'properties': {'limit': {'type': 'integer', 'maximum': 50, 'minimum': 1}, 'offset': {'type': 'integer', 'minimum': 0}, 'reg_code': {'type': 'string', 'description': "8-digit Estonian company registry code, e.g. '16887028'."}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['company', 'total', 'documents'], 'properties': {'total': {'type': 'number'}, 'company': {'anyOf': [{'type': 'object', 'required': ['regCode', 'name'], 'properties': {'name': {'type': 'string'}, 'regCode': {'type': 'string'}}, 'additionalProperties': False}, {'type': 'null'}]}, 'documents': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'reference', 'authority', 'docType', 'date', 'restriction', 'role', 'url'], 'properties': {'id': {'type': 'string'}, 'url': {'type': 'string'}, 'date': {'type': ['string', 'null']}, 'role': {'type': ['string', 'null']}, 'title': {'type': ['string', 'null']}, 'docType': {'type': ['string', 'null']}, 'authority': {'type': 'string'}, 'reference': {'type': ['string', 'null']}, 'restriction': {'type': ['string', 'null']}}, 'additionalProperties': False}}}, 'additionalProperties': False}
fetch
Fetch a document by id
Retrieve the full metadata, attached-file list and extracted text of a document by the `id` returned from `search` (e.g. 'doc:22112'). Returns it as Markdown with its linked companies and canonical dokumendiregister.ee URL.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id'], 'properties': {'id': {'type': 'string', 'description': "Document id from search, e.g. 'doc:22112'."}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['id', 'title', 'text', 'url', 'metadata'], 'properties': {'id': {'type': 'string'}, 'url': {'type': 'string'}, 'text': {'type': 'string', 'description': 'The full document rendered as Markdown.'}, 'title': {'type': 'string'}, 'metadata': {'type': 'object', 'additionalProperties': {}}}, 'additionalProperties': False}
list_authorities
List public authorities
All Estonian public authorities whose document register is indexed, each with its slug and document count. Use a slug as the `authority` filter in `search_documents`.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['authorities'], 'properties': {'authorities': {'type': 'array', 'items': {'type': 'object', 'required': ['slug', 'name', 'count'], 'properties': {'name': {'type': 'string'}, 'slug': {'type': 'string'}, 'count': {'type': 'number'}}, 'additionalProperties': False}}}, 'additionalProperties': False}
recent_documents
Most recently registered documents
The newest documents by registration date, across all authorities — optionally narrowed to one authority.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'integer', 'maximum': 25, 'minimum': 1}, 'authority': {'type': 'string', 'description': 'Authority slug from `list_authorities`.'}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['documents'], 'properties': {'documents': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'authority', 'docType', 'date', 'url'], 'properties': {'id': {'type': 'string'}, 'url': {'type': 'string'}, 'date': {'type': ['string', 'null']}, 'title': {'type': ['string', 'null']}, 'docType': {'type': ['string', 'null']}, 'authority': {'type': 'string'}}, 'additionalProperties': False}}}, 'additionalProperties': False}
search
Search Estonian public-authority documents
Full-text search across the document registers (dokumendiregistrid) of Estonian public authorities — ministries, agencies, inspectorates and municipalities — aggregated by dokumendiregister.ee. Searches document titles, reference numbers, counterparties and the extracted text of attached files. Returns matches each with a stable `id` (pass to `fetch`) and a canonical dokumendiregister.ee URL.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['query'], 'properties': {'limit': {'type': 'integer', 'maximum': 25, 'minimum': 1, 'description': 'Max results (default 10).'}, 'query': {'type': 'string', 'description': 'Free text: a subject, a company or person name, or a document reference number.'}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['total', 'results'], 'properties': {'total': {'type': 'number', 'description': 'Total matching documents.'}, 'results': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'url'], 'properties': {'id': {'type': 'string'}, 'url': {'type': 'string'}, 'title': {'type': 'string'}}, 'additionalProperties': False}}}, 'additionalProperties': False}
search_documents
Search documents with filters
Document search with optional filters: authority (slug), document type, access restriction (Avalik = public, AK = restricted; restricted documents expose metadata only, never file text) and a registration-date range. Returns a page of documents with a total count. Use `list_authorities` to discover authority slugs.
읽기 전용
입력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {'limit': {'type': 'integer', 'maximum': 25, 'minimum': 1}, 'query': {'type': 'string', 'description': 'Free text; omit to browse by filters alone.'}, 'offset': {'type': 'integer', 'minimum': 0}, 'date_to': {'type': 'string', 'description': 'YYYY-MM-DD upper bound (registration date).'}, 'doc_type': {'type': 'string', 'description': "Exact document type, e.g. 'Kiri'."}, 'authority': {'type': 'string', 'description': "Authority slug from `list_authorities`, e.g. 'rab'."}, 'date_from': {'type': 'string', 'description': 'YYYY-MM-DD lower bound (registration date).'}, 'restriction': {'enum': ['Avalik', 'AK'], 'type': 'string', 'description': 'Access restriction.'}}, 'additionalProperties': False}
출력 스키마
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['total', 'documents'], 'properties': {'total': {'type': 'number'}, 'documents': {'type': 'array', 'items': {'type': 'object', 'required': ['id', 'title', 'reference', 'authority', 'docType', 'date', 'restriction', 'counterparty', 'companies', 'fileCount', 'url'], 'properties': {'id': {'type': 'string'}, 'url': {'type': 'string'}, 'date': {'type': ['string', 'null']}, 'title': {'type': ['string', 'null']}, 'docType': {'type': ['string', 'null']}, 'authority': {'type': 'string'}, 'companies': {'type': 'array', 'items': {'type': 'string'}}, 'fileCount': {'type': 'number'}, 'reference': {'type': ['string', 'null']}, 'restriction': {'type': ['string', 'null']}, 'counterparty': {'type': ['string', 'null']}}, 'additionalProperties': False}}}, 'additionalProperties': False}
추가됨
recent_documents
2026년 9월 17일 12:45 PM
추가됨
list_authorities
2026년 9월 17일 12:45 PM
추가됨
documents_by_company
2026년 9월 17일 12:45 PM
추가됨
search_documents
2026년 9월 17일 12:45 PM
추가됨
fetch
2026년 9월 17일 12:45 PM
추가됨
search
2026년 9월 17일 12:45 PM