Skip to content

Connect your AI · Works with Claude, ChatGPT and more

Your AI assistant, reading the actual law

Connect srilaws to the assistant you already use. It searches Sri Lanka’s laws, and every answer points to the official text.

Server addresshttps://srilaws.com/mcp
  • Free for public law
  • No account needed
  • Read-only

02 — What your AI can do

The same library, in your assistant

Your assistant picks the right one of these by itself. You just ask.

  • Search the law

    search_law

    Laws, by words or by situation.

  • Read a section

    get_section

    The current text, as the official publisher has it.

  • Explain a legal word

    define_term

    What a term means, and where the law defines it.

03 — Privacy

What it can see, and what it can’t

It can see

  • Sri Lanka lawEvery law on srilaws. Always.

It can’t

  • Change or delete anythingAccess is read-only.
  • Everything else you ask your AIWe only see what it asks srilaws. The rest stays between you and your AI.

04 — For developers

A standard MCP server

Works with any client that supports the Model Context Protocol, including Claude Desktop, Claude Code, ChatGPT, Cursor and VS Code.

Address
https://srilaws.com/mcp
Transport
Streamable HTTP
Sign-in
None for public law
Access
Read-only
mcp.json
{  "mcpServers": {    "srilaws-lk": {      "url": "https://srilaws.com/mcp"    }  }}

05 — Questions

Good to know

Does it cost anything?

Using Sri Lanka law in your AI is free. It reads public law only.

Can my AI give me legal advice?

It can explain the law and show where it comes from. For advice on your own case, speak to a lawyer.

Which AI apps work?

Any app that supports connectors, also called MCP. Claude, ChatGPT, Cursor and VS Code all do. Steps differ by app and plan.

How do I switch it off?

Remove it in your AI app. It stops straight away.