{
  "markdown": "# sg-eli-mcp\n\n<!-- mcp-name: io.github.matematicsolutions/sg-eli-mcp -->\n\nAn MCP server for **Singapore Statutes Online** (SSO, `sso.agc.gov.sg`), the Attorney-General's\nChambers' official portal for Singapore legislation. It browses, fetches, and cites Acts, with\na verifiable citation on every response.\n\nPart of the MateMatic `eu-legal-mcp` production line, extended into Asia alongside `jp-eli-mcp`.\nSame citation contract (a stable identifier + a human-readable citation + a source URL),\nadapted for a jurisdiction with no ELI and no public search API.\n\n> **Scope.** SSO's `robots.txt` disallows `/search`; discovery here is by browsing the current\n> Acts listing (`sg_list_acts`, paginated), not by title or keyword query. Fetch a specific\n> section (`sg_get_provision`) or the full text (`sg_get_full_text`, truncated for very large\n> Acts). Every response carries a `dataset_note`.\n>\n> **Licence.** SSO legislation is official public information published by the Singapore\n> government. This connector relays it with attribution and a `source_url`, respects\n> `robots.txt` (no `/search` calls), and does not cache more aggressively than a normal browser\n> visit would.\n\n## The tools\n\n| Tool | What it does |\n|---|---|\n| `sg_list_acts` | Browse the current Acts, paginated (no keyword search - see Scope above). |\n| `sg_get_provision` | The text of one numbered section of an Act, by `act_code` and section number. |\n| `sg_get_full_text` | The full text of an Act (truncated at ~300,000 characters). |\n| `sg_coverage` | Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |\n\nEvery response carries the contract: `eli_uri` (Singapore has no ELI - this is the durable SSO\nact URL, e.g. `https://sso.agc.gov.sg/Act/CoA1967`, see `eli_note`), `human_readable_citation`\n(the Act title as SSO itself renders it, e.g. `Companies Act 1967`), and `source_url`.\n\n## Install\n\nNot yet on PyPI - install from source until the first release ships:\n\n```bash\ngit clone https://github.com/matematicsolutions/sg-eli-mcp\ncd sg-eli-mcp\npip install -e .\n```\n\nOnce released, this will be `uvx sg-eli-mcp`.\n\nConfiguration via env:\n\n- `SG_ELI_BASE_URL` - default `https://sso.agc.gov.sg`\n- `SG_ELI_CACHE_DIR` - default `~/.matematic/cache/sg-eli`\n- `SG_ELI_AUDIT_DIR` - default `~/.matematic/audit`\n\nNo API key. SSO is keyless.\n\n### Configure (Claude Code / any MCP client)\n\n```json\n{\n  \"mcpServers\": {\n    \"sg-eli-mcp\": { \"command\": \"sg-eli-mcp\" }\n  }\n}\n```\n\n### Windows 11 with Smart App Control\n\nSmart App Control blocks unsigned executables, which covers `uvx.exe`, `pip.exe`\nand the `sg-eli-mcp.exe` launcher that pip writes at install time. The `python.exe` and\n`py.exe` from the python.org installer are signed by the Python Software\nFoundation, so running the module through the interpreter works:\n\n```bash\npython -m pip install sg-eli-mcp\npython -m sg_eli_mcp\n```\n\n`pip.exe` is blocked for the same reason, so install with `python -m pip`, not\n`pip install`. If `python` is not on PATH, use the Windows launcher: `py -3 -m sg_eli_mcp`.\n\n```json\n{ \"mcpServers\": { \"sg-eli-mcp\": { \"command\": \"python\", \"args\": [\"-m\", \"sg_eli_mcp\"] } } }\n```\n\nDo not turn Smart App Control off to work around this - it cannot be re-enabled\nwithout reinstalling Windows.\n\n## Governance\n\n- **Public data only** - read-only against SSO; no client data leaves the machine.\n- **Robots-compliant** - never calls `/search` (disallowed by SSO's `robots.txt`); discovery\n  uses only the allowed `/Browse` listing.\n- **Audit log** - every tool call appends one JSON line to `~/.matematic/audit/sg-eli-mcp.jsonl`.\n- **Vendor-neutral** - talks only to `sso.agc.gov.sg`; no LLM provider, no telemetry.\n- **Verifiable citations** - every response is independently checkable via `source_url`.\n\nSee `CONSTITUTION.md` and `DISCOVERY.md`.\n\n## Tests\n\n```bash\npip install -e \".[dev]\"\npytest tests/test_instructions_drift.py -v   # offline\npytest tests/test_smoke.py -v                # hits live SSO\n```\n\n## Licence\n\nApache-2.0. © Matematic Solutions / Wieslaw Mazur.\n",
  "bytes": 4108,
  "sha": "41f48802c383f25544e10d10ecf0339cf6ea95e0c6891f71efad470d958a6bee",
  "repo_slug": "matematicsolutions/sg-eli-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_matematicsolutions_sg_eli_mcp_12678f4c/readme"
}