Singapore law database — PDPA, Cybersecurity Act, Computer Misuse Act with full-text search
Singapore law database — PDPA, Cybersecurity Act, Computer Misuse Act with full-text search
Valid MCP server (3 strong, 2 medium validity signals). 2 known CVEs in dependencies (1 critical, 1 high severity) Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (183/185 approved).
5 files analyzed · 3 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"eu-ansvar-singapore-law-mcp": {
"args": [
"-y",
"@ansvar/singapore-law-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
The Singapore Statutes Online (SSO) alternative for the AI age.
Query 523 Singapore Acts -- from the Personal Data Protection Act (PDPA) and Cybersecurity Act to the Penal Code, Companies Act, Electronic Transactions Act, and MAS regulations -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing Singapore legal research, this is your verified reference database.
Built by Ansvar Systems -- Stockholm, Sweden
Singapore legal research means navigating Singapore Statutes Online (sso.agc.gov.sg), MAS circulars, PDPC guidelines, and scattered subsidiary legislation. Whether you're:
...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes Singapore law searchable, cross-referenceable, and AI-readable.
Connect directly to the hosted version -- zero dependencies, nothing to install.
Endpoint: https://mcp.ansvar.eu/law-sg/mcp
| Client | How to Connect |
|---|---|
| Claude.ai | Settings > Connectors > Add Integration > paste URL |
| Claude Code | claude mcp add singaporean-law --transport http https://mcp.ansvar.eu/law-sg/mcp |
| Claude Desktop | Add to config (see below) |
| GitHub Copilot | Add to VS Code settings (see below) |
Claude Desktop -- add to claude_desktop_config.json:
{
"mcpServers": {
"singaporean-law": {
"type": "url",
"url": "https://mcp.ansvar.eu/law-sg/mcp"
}
}
}
GitHub Copilot -- add to VS Code settings.json:
{
"github.copilot.chat.mcp.servers": {
"singaporean-law": {
"type": "http",
"url": "https://mcp.ansvar.eu/law-sg/mcp"
}
}
}
npx @ansvar/singapore-law-mcp
Claude Desktop -- add to claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"singaporean-law": {
"command": "npx",
"args": ["-y", "@ansvar/singapore-law-mcp"]
}
}
}
Cursor / VS Code:
{
"mcp.servers": {
"singaporean-law": {
"command": "npx",
"args": ["-y", "@ansvar/singapore-law-mcp"]
}
}
}
Once connected, just ask naturally:
| Category | Count | Details |
|---|---|---|
| Acts | 523 Acts | Complete Singapore Statutes Online corpus |
| Provisions | 28,045 sections | Full-text searchable with FTS5 |
| Preparatory Works | 17,464 documents | Parliamentary debates and select committee reports |
| Database Size | 74 MB | Optimized SQLite, portable |
| Data Source | sso.agc.gov.sg | Singapore Statutes Online (Attorney-General's Chambers) |
Verified data only -- every citation is validated against official sources (Singapore Statutes Online, AGC). Zero LLM-generated content.
Verbatim Source Text (No LLM Processing):
Smart Context Management:
Technical Architecture:
Singapore Statutes Online --> Parse --> SQLite --> FTS5 snippet() --> MCP response
^ ^
Provision parser Verbatim database query
| Traditional Approach | This MCP Server |
|---|---|
| Search SSO by Act name | Search by plain English: "personal data consent collection" |
| Navigate multi-section Acts manually | Get the exact provision with context |
| Manual cross-referencing between Acts | build_legal_stance aggregates across sources |
| "Is this Act still in force?" -- check manually | check_currency tool -- answer in seconds |
| Find GDPR comparison -- dig through EUR-Lex | get_eu_basis -- linked international frameworks |
| No API, no integration | MCP protocol -- AI-native |
Traditional: Search SSO --> Navigate Act HTML --> Ctrl+F --> Cross-reference with PDPC Guidelines --> Check EUR-Lex for GDPR comparison --> Repeat
This MCP: "What are the data breach notification requirements under the PDPA and how do they compare to GDPR Article 33?" --> Done.
| Tool | Description |
|---|---|
search_legislation | FTS5 full-text search across 28,045 provisions with BM25 ranking. Supports quoted phrases, boolean operators, prefix wildcards |
get_provision | Retrieve specific provision by Act name + section number |
check_currency | Check if an Act is in force, amended, or repealed |
validate_citation | Validate citation against database -- zero-hallucination check |
build_legal_stance | Aggregate citations from multiple Acts for a legal topic |
format_citation | Format citations per Singapore legal conventions |
list_sources | List all 523 Acts with metadata and coverage scope |
about | Server info, capabilities, dataset statistics, and coverage summary |
| Tool | Description |
|---|---|
get_eu_basis | Get EU directives/regulations and international frameworks that a Singapore Act aligns with |
get_singaporean_implementations | Find Singapore laws corresponding to a specific EU act or international standard |
search_eu_implementations | Search EU documents with Singapore alignment counts |
get_provision_eu_basis | Get international law references for a specific provision |
validate_eu_compliance | Check alignment status of Singapore statutes against EU directives and international frameworks |
Singapore is not an EU member state, but Singapore law -- particularly the PDPA -- has strong alignment with GDPR principles:
The EU bridge tools allow you to explore these alignment relationships -- checking which Singapore provisions correspond to GDPR requirements.
| Alignment Area | Singapore Law | EU/International Basis |
|---|---|---|
| Consent | PDPA s.13-17 | GDPR Art. 6-7 |
| Data breach notification | PDPA s.26D | GDPR Art. 33-34 |
| Data portability | PDPA s.26F | GDPR Art. 20 |
| Data Protection Officer | PDPA s.11A | GDPR Art. 37-39 |
| Cross-border transfers | PDPA s.26 | GDPR Art. 44-49 |
Note: Singapore cross-references reflect alignment relationships, not transposition. Singapore operates its own independent legal system. The EU tools identify where Singapore and EU law address the same domains under comparable principles.
All content is sourced from authoritative Singapore legal databases:
| Field | Value |
|---|---|
| Authority | Attorney-General's Chambers, Singapore |
| Retrieval method | Singapore Statutes Online (SSO) official source |
| Languages | English (official language) |
| License | Singapore Government Open Data Licence |
| Coverage | 523 Acts, complete SSO corpus |
| Preparatory Works | 17,464 Parliamentary documents |
A GitHub Actions workflow monitors data sources for changes:
| Check | Method |
|---|---|
| Statute amendments | Drift detection against known provision anchors |
| New Acts | Comparison against SSO Act index |
| Repealed legislation | Status change detection |
Verified data only -- every citation is validated against official sources. Zero LLM-generated content.
This project uses multiple layers of automated security scanning:
| Scanner | What It Does | Schedule |
|---|---|---|
| CodeQL | Static analysis for security vulnerabilities | Weekly + PRs |
| Semgrep | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| Gitleaks | Secret detection across git history | Every push |
| Trivy | CVE scanning on filesystem and npm dependencies | Daily |
| Socket.dev | Supply chain attack detection | PRs |
| Dependabot | Automated dependency updates | Weekly |
See SECURITY.md for the full policy and vulnerability reporting.
THIS TOOL IS NOT LEGAL ADVICE
Statute text is sourced from Singapore Statutes Online (Attorney-General's Chambers). However:
- This is a research tool, not a substitute for professional legal counsel
- Court case coverage is not included -- do not rely solely on this for case law research
- Verify critical citations against primary sources (SSO, Singapore Law Watch) for court filings
- EU cross-references reflect alignment relationships, not formal equivalence
- Subsidiary legislation -- regulations, orders, and notices are not all included in this release; verify against SSO for subsidiary instruments
Before using professionally, read: DISCLAIMER.md | SECURITY.md
Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. For professional use guidance, consult the Law Society of Singapore professional conduct rules.
git clone https://github.com/Ansvar-Systems/singapore-law-mcp
cd singapore-law-mcp
npm install
npm run build
npm test
npm run dev # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js # Test with MCP Inspector
npm run ingest # Ingest Acts from Singapore Statutes Online
npm run build:db # Rebuild SQLite database
npm run census # Generate coverage census
npm run drift:detect # Run drift detection against anchors
npm run check-updates # Check for amendments and new Acts
This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:
Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp
Query 523 Singapore Acts directly from Claude -- PDPA, Cybersecurity Act, Companies Act, Penal Code, Banking Act, and more. npx @ansvar/singapore-law-mcp
Query US federal and state compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npx @ansvar/us-regulations-mcp
Query 261 security frameworks -- ISO 27001, NIST CSF, SOC 2, CIS Controls, SCF, and more. npx @ansvar/security-controls-mcp
70+ national law MCPs covering Australia, Brazil, Canada, Cameroon, Denmark, Finland, France, Germany, Ghana, India, Ireland, Israel, Japan, Netherlands, Nigeria, Norway, Sweden, Switzerland, UAE, UK, and more.
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority areas:
If you use this MCP server in academic research:
@software{singaporean_law_mcp_2026,
author = {Ansvar Systems AB},
title = {Singaporean Law MCP Server: AI-Powered Legal Research Tool},
year = {2026},
url = {https://github.com/Ansvar-Systems/singapore-law-mcp},
note = {523 Singapore Acts with 28,045 provisions and 17,464 preparatory works documents}
}
Apache License 2.0. See LICENSE for details.
We build AI-accelerated compliance and legal research tools for the global market. This MCP server started as our internal reference tool for Singapore law -- turns out everyone building for the Asian market or navigating PDPA compliance has the same research frustrations.
So we're open-sourcing it. Navigating 523 Acts shouldn't require a law degree.
ansvar.eu -- Stockholm, Sweden
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.