An Caighdeán Oifigiúil MCP Server

Dedicated Model Context Protocol (MCP) server for the statutory text of An Caighdeán Oifigiúil (2017) in Irish (ga) and English (en).


Endpoints

TransportMethodURL
Streamable HTTP (JSON-RPC 2.0)POSThttps://grammar.ie/caighdean/mcp
Server-Sent Events (SSE)GEThttps://grammar.ie/caighdean/mcp/sse
SSE Session MessagesPOSThttps://grammar.ie/caighdean/mcp/messages?sessionId={id}

Client Configuration

Streamable HTTP (recommended)

{
  "mcpServers": {
    "caighdean-oifigiuil": {
      "url": "https://grammar.ie/caighdean/mcp"
    }
  }
}

SSE via mcp-remote

{
  "mcpServers": {
    "caighdean-oifigiuil": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://grammar.ie/caighdean/mcp/sse"]
    }
  }
}

Available Tools

ToolDescription
list_chaptersLists all 14 statutory chapters, preambles, and abbreviations with their section IDs and canonical URLs.
get_sectionRetrieves an exact statutory section or clause by ID (e.g. "1.1.4", "5.2.3", "noda") in ga (default), en, or both.
get_chapterRetrieves a complete chapter by ID ("1"–"11", "reamhra", "reamhra-1958", "noda").
search_caighdeanSearches across statutory sections by keyword, grammatical term, or section ID.

Test with cURL

curl -X POST https://grammar.ie/caighdean/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "get_section",
      "arguments": {
        "section_id": "1.1.4",
        "lang": "both"
      }
    }
  }'