Skip to main content
Glama

mt-eli-mcp

An MCP server for the Maltese legislation portal legislation.mt, the official source of consolidated Maltese law. It fetches document metadata and full text, with verifiable citations.

Part of the MateMatic eu-legal-mcp production line - after PL, DE, AT, ES, FI, IE, NL, SE, FR, LU, DK, CZ, HR, LT, SK and RO. Same citation contract, legislation.mt source. Malta is ELI-native; each page carries schema.org/ELI JSON-LD.

Scope. This MVP fetches a document's metadata (from JSON-LD) and full text by ELI coordinate (chapters, the Constitution, subsidiary legislation, Acts, Legal Notices). There is no free-text search; address documents by their ELI coordinate. Languages: English (eng) and Maltese (mlt). Every response carries a dataset_note.

Text comes from PDF. Malta publishes the consolidated text only as PDF. mt_get_text downloads the official PDF and extracts the text with pypdf; layout-dependent artefacts are possible. Every text response carries a text_note.

The tools

Tool

What it does

mt_get_act

Metadata for a document by ELI coordinate (JSON-LD).

mt_get_text

Full text by ELI coordinate (extracted from the official PDF).

mt_coverage

Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

ELI coordinates (eli): cap/586 (Chapter), const (Constitution), sl/586.01 (subsidiary legislation), act/2018/20 (Act), ln/2018/123 (Legal Notice).

Every response carries the contract: eli_uri (the legislation.mt URL, e.g. https://legislation.mt/eli/cap/586/eng), human_readable_citation (e.g. Data Protection Act (Cap. 586)), and source_url.

Related MCP server: lu-eli-mcp

Install

Run it with no install step (once published to PyPI):

uvx mt-eli-mcp

Or from source:

cd mt-eli-mcp
pip install -e .

Configure (Claude Code / any MCP client)

{
  "mcpServers": {
    "mt-eli-mcp": { "command": "mt-eli-mcp" }
  }
}

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the mt-eli-mcp.exe launcher that pip writes at install time. The python.exe and py.exe from the python.org installer are signed by the Python Software Foundation, so running the module through the interpreter works:

python -m pip install mt-eli-mcp
python -m mt_eli_mcp

pip.exe is blocked for the same reason, so install with python -m pip, not pip install. If python is not on PATH, use the Windows launcher: py -3 -m mt_eli_mcp.

{ "mcpServers": { "mt-eli-mcp": { "command": "python", "args": ["-m", "mt_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Environment:

  • MT_ELI_BASE_URL - default https://legislation.mt

  • MT_ELI_CACHE_DIR - default ~/.matematic/cache/mt-eli

  • MT_ELI_AUDIT_DIR - default ~/.matematic/audit

No API key. legislation.mt is open data.

Governance

  • Public data only - read-only against legislation.mt; no client data leaves the machine.

  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/mt-eli-mcp.jsonl.

  • Vendor-neutral - talks only to legislation.mt; no LLM provider, no telemetry.

  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md and DISCOVERY.md.

Tests

pip install -e ".[dev]"
pytest tests/test_instructions_drift.py tests/test_parse.py -v   # offline
pytest tests/test_smoke.py -v                                    # hits live legislation.mt

Licence

Apache-2.0. © Matematic Solutions / Wieslaw Mazur.

Available Tools

3 tools
mt_coverageA
Read-onlyIdempotent

Declare what this connector covers, how it is sourced, and what it does NOT cover.

Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead.

Returns: Coverage with families, an as-of note, and a non-empty list of known gaps.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
statusNo
familiesNo
as_of_noteYesStates what the dates mean, and what they do not promise.
known_gapsNoNever empty. An empty list would mean 'not checked', not 'no gaps'.

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description warns that an empty result may reflect a connector gap rather than an absence in the law, and that gaps include fallback pointers. This is valuable behavioral context that annotations alone do not convey.

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 is compact and front-loaded, leading with the tool's core declaration, then the when-to-use guidance, then the return shape. No sentence is redundant.

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

Completeness5/5

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

For a parameterless, read-only tool with an output schema, the description fully covers when to call it, what it returns, and an important caveat about empty results. Nothing needed to invoke it correctly is missing.

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 tool has zero parameters, so the empty input schema needs no description augmentation. The baseline of 4 applies because there is nothing for the description to add about parameters.

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 states a specific purpose: declaring coverage scope, sourcing, and exclusions for the connector. This clearly distinguishes mt_coverage from the sibling content-retrieval tools mt_get_act and mt_get_text, which retrieve legal text rather than describe coverage gaps.

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

Usage Guidelines4/5

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

The description gives explicit triggers: call before telling a user the law does not contain something, and whenever a search returns empty. It does not name sibling alternatives directly, but the fallback routing inside each gap provides enough context to decide when this tool is needed.

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

mt_get_actA
Read-onlyIdempotent

Fetch Maltese document metadata by ELI coordinate.

ParametersJSON Schema
NameRequiredDescriptionDefault
eliYesthe coordinate after ``/eli/`` (e.g. ``"cap/586"``, ``"act/2018/20"``, ``"const"``).
langNo``"eng"`` (default) or ``"mlt"``.eng

Output Schema

ParametersJSON Schema
NameRequiredDescription
eliNo
titleNo
eli_uriNo
source_urlNo
legal_forceNo
dataset_noteNo
date_modifiedNo
document_typeNo
legislation_dateNo
legislation_identifierNo
human_readable_citationNo

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior, so the bar is lower. The description adds that this returns 'metadata' (not full text), which is useful behavioral context, but it does not disclose error handling or edge cases. Minimal additional value beyond 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?

A single, front-loaded sentence that immediately states the tool's purpose and method. No filler or redundancy; every word earns its place.

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

Completeness5/5

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

For a simple read-only tool with two well-documented parameters, an output schema, and strong annotations, this description is sufficient. It clearly states the core function, and the schema and annotations cover the remaining context.

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

Parameters3/5

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

Schema description coverage is 100%, with clear explanations for both 'eli' and 'lang'. The description adds no parameter-specific meaning beyond what the schema already provides, so baseline 3 is appropriate.

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 a specific verb ('Fetch') and resource ('Maltese document metadata') and specifies the method ('by ELI coordinate'). It clearly distinguishes from the sibling mt_get_text, which likely retrieves full text rather than metadata.

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

Usage Guidelines4/5

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

The description implies the tool is for metadata retrieval, separate from the sibling text tool, but it does not explicitly state when to use this tool over alternatives or provide exclusions. Clear context is present, but no direct compare/contrast.

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

mt_get_textA
Read-onlyIdempotent

Fetch the full text of a Maltese document by ELI coordinate (from the official PDF).

ParametersJSON Schema
NameRequiredDescriptionDefault
eliYesthe coordinate after ``/eli/`` (e.g. ``"cap/586"``).
langNo``"eng"`` (default) or ``"mlt"``.eng

Output Schema

ParametersJSON Schema
NameRequiredDescription
eliNo
titleNo
formatNo
contentNo
eli_uriNo
pdf_urlNo
byte_sizeNo
text_noteNo
source_urlNo
dataset_noteNo
human_readable_citationNo

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, establishing safe read behavior. The description adds the source ('official PDF') and scope ('full text'), which gives minor context beyond safety. However, it does not disclose error behavior, language output, or any caching aspects, but the annotation coverage lowers the burden.

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?

A single, front-loaded sentence that conveys the core functionality without wasted words. It is appropriately sized for the tool's simplicity.

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?

The tool is simple, has an output schema, and its annotations cover safety. The description communicates the source and output type sufficiently. It lacks explicit alternative guidance, but that is more a usage-guideline concern; overall it is complete enough for invocation.

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

Parameters3/5

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

The schema covers both parameters with descriptive text (eli coordinate, lang values), and the description's mention of 'by ELI coordinate' reinforces eli's role. Since schema description coverage is 100%, the description adds little beyond schema, meriting the baseline 3.

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 clearly states the tool fetches the full text of a Maltese document using an ELI coordinate, specifying the source as the official PDF. The verb 'Fetch' and resource 'full text' make the purpose unambiguous, and the sibling tool name (mt_get_act) suggests a different focus, providing implicit differentiation.

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

Usage Guidelines3/5

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

The description implies usage for retrieving document text but provides no explicit when-to-use or alternative guidance. It does not explain when to prefer this over mt_get_act, leaving the agent to infer which tool matches the user's intent. No exclusions or context is given beyond the basic purpose.

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

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a clearly distinct function: metadata retrieval, full-text retrieval, and coverage/gap declaration. There is no overlap or ambiguity between them.

Naming Consistency4/5

Two tools follow the mt_get_* verb_noun pattern, while mt_coverage uses only a noun. This is a minor deviation but the shared mt_ prefix and clear semantics keep the set predictable.

Tool Count5/5

Three tools is small but perfectly suited to this connector's narrow scope: retrieving Maltese legal documents by ELI and declaring coverage. Each tool has a distinct, necessary role.

Completeness4/5

The tool set covers metadata retrieval, full-text retrieval, and explicit gap disclosure, which is complete for a read-only connector. A search/list capability is absent, but the coverage tool proactively mitigates that limitation.

Maintenance

ActivityMaintained
ResponsivenessSyncing

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/matematicsolutions/mt-eli-mcp'

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