home / mcp / singapore law mcp server

Singapore Law MCP Server

Query Singapore legislation from Claude, Cursor, or any MCP-compatible client.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-singapore-law-mcp": {
      "url": "https://singapore-law-mcp.vercel.app/mcp"
    }
  }
}

You can query Singapore law provisions directly from an MCP client such as Claude, Cursor, or any MCP-compatible tool. This server hosts a verified, searchable database of Singapore statutes and related materials, enabling you to retrieve exact provisions, check current status, and cross-reference EU implementations with ease.

How to use

Connect to the Singapore Law MCP Server using a remote HTTP endpoint or run the server locally. When connected, you can ask natural language queries like, “What does the Personal Data Protection Act say about consent?” or “Is this statute still in force?” The server returns exact provisions and allows building legal stances across statutes.

How to install

Prerequisites: Node.js installed on your machine. You will run either the remote MCP URL or start a local MCP server using npm.

# Option 1: Use the remote MCP server (no install required on your side)
# No local commands needed; simply connect your MCP client to the URL below.

Option A: Use the remote MCP server (no install needed) connect to the following endpoint from your MCP client:

Additional setup and configuration

If you want to integrate with Claude Desktop or GitHub Copilot, you can add the MCP server configuration to your client settings.

Claude Desktop and Copilot configuration snippets are shown below. Use these exact configurations in your client to connect to the remote MCP URL.

{
  "mcpServers": {
    "singapore-law": {
      "type": "url",
      "url": "https://singapore-law-mcp.vercel.app/mcp"
    }
  }
}

To run the server locally using npm, install dependencies, build, and start the server with the provided commands.

npx @ansvar/singapore-law-mcp
```

```json
{
  "mcpServers": {
    "singapore-law": {
      "command": "npm",
      "args": ["run", "dev"]
    }
  }
}

Notes on local vs remote usage

Remote usage requires no local installation; you connect your MCP client to the hosted endpoint. Local usage involves starting the server on your machine and pointing your MCP client to the local process. The local option is useful for privileged or confidential work where data should not leave your environment.

Examples of queries you can run

Once connected, you can ask questions like: - What does the Singapore data protection law say about consent? - Search for cybersecurity requirements in Singapore legislation - Is this statute still in force? - Find provisions about personal data in Singapore law - What EU directives does this Singapore law implement? - Which Singapore laws implement the GDPR? - Validate this legal citation - Build a legal stance on data breach notification requirements.

Security and data handling

All statute text is loaded from official sources and returned as-is from the database. No additional AI summarization or paraphrasing is applied to the statute text. Client connections to the MCP server are subject to standard security practices of the host deployment.

Data sources & freshness

Content is sourced from authoritative Singapore government databases. Citations are validated against official sources, with zero reliance on generated content.

Disclaimers

This tool is a research aid, not legal advice. Use professional counsel for critical citations and ensure verification against primary sources for court filings.

Development and contribution

Development commands shown here help you run and test the server locally. You can build and test in your environment to contribute improvements.

Citation

If you reuse this MCP server in academic work, cite the project with the recommended bibliographic entry.

Available tools

search_legislation

Full-text search across all provisions using FTS5 with BM25 ranking to quickly locate relevant statutes and provisions.

get_provision

Retrieve a specific provision by statute, including chapter and section identifiers.

check_currency

Check whether a statute is in force, amended, or repealed.

validate_citation

Validate a citation against the database to ensure accuracy and supportability.

build_legal_stance

Aggregate citations from multiple statutes to form a legal stance on a topic.

format_citation

Format citations per Singapore conventions, including full, short, and pinpoint formats.

list_sources

List all available statutes with metadata such as act, year, and significance.

about

Provide server information, capabilities, and coverage summary.

get_eu_basis

Retrieve EU directives or regulations relevant to a Singapore statute.

get_singapore_implementations

Find Singapore laws that implement a given EU act.

search_eu_implementations

Search EU documents with counts of Singapore implementations.

get_provision_eu_basis

Get EU law references for a specific provision.

validate_eu_compliance

Check the implementation status of EU directives in Singapore law.