NSW Parliament Hansard MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@NSW Parliament Hansard MCP Serversearch for speeches by Chris Minns"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NSW Parliament Hansard MCP Server
A Model Context Protocol (MCP) server that provides programmatic access to the New South Wales Parliament Hansard API. This server enables AI assistants and applications to search, retrieve, and analyse parliamentary transcripts, debates, and proceedings from September 1991 to the present day.
Table of Contents
Related MCP server: Taiwan Legislative Yuan MCP Server
Features
Comprehensive Hansard Access: Search and retrieve parliamentary transcripts from both the Legislative Assembly (Lower House) and Legislative Council (Upper House)
Multiple Search Methods: Search by year, date, speaker name, or bill name
Multiple Output Formats: Access data in JSON, XML, or PDF formats
Table of Contents: Retrieve structured tables of contents for any sitting day
Speaker Search: Find speeches by specific members with wildcard support
Bill Tracking: Search for all debates and mentions related to specific legislation
Historical Data: Access records dating back to September 1991
No Authentication Required: Free public access to all endpoints
Installation
Prerequisites
Node.js 18.0.0 or higher
npm or yarn package manager
Install from npm
npm install -g nsw-hansard-mcpInstall from Source
git clone https://github.com/lawquarter/nsw-hansard-mcp.git
cd nsw-hansard-mcp
npm install
npm run buildConfiguration
Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nsw-hansard": {
"command": "npx",
"args": ["-y", "nsw-hansard-mcp"]
}
}
}Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"nsw-hansard": {
"command": "npx",
"args": ["-y", "nsw-hansard-mcp"]
}
}
}Local Development
If running from source:
{
"mcpServers": {
"nsw-hansard": {
"command": "node",
"args": ["/path/to/nsw-hansard-mcp/dist/index.js"]
}
}
}Available Tools
hansard_search_by_year
Search all Hansard records for a specific year.
Parameters:
Parameter | Type | Required | Description |
| integer | Yes | The year to search (1991 or later) |
Example:
{
"year": 2024
}hansard_search_by_date
Get detailed Hansard information for a specific date.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Date in YYYY-MM-DD format |
Example:
{
"date": "2024-03-15"
}hansard_get_fragment_xml
Retrieve the raw XML content of a specific Hansard fragment.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_get_fragment_html
Retrieve a Hansard fragment as JSON with HTML content.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_get_pdf_url
Get the URL for downloading a Hansard PDF (post-1991 documents).
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_get_searchable_pdf_url
Get the URL for a searchable Hansard PDF (pre-1991 historical documents).
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_get_table_of_contents_xml
Retrieve the table of contents for a sitting day in XML format.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_get_table_of_contents_json
Retrieve the table of contents as structured JSON.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Unique document identifier |
hansard_search_by_speaker
Search Hansard records by speaker name with optional filters.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Speaker name (supports wildcards: |
| integer | No | Limit to specific parliament session |
| string | No | Start date in YYYY/MM/DD format |
| string | No | End date in YYYY/MM/DD format |
| string | No |
|
| integer | No | Unique member identifier |
| integer | No | Maximum results (default: 100) |
Example:
{
"speakerName": "Smith*",
"startDate": "2024/01/01",
"endDate": "2024/12/31",
"houseCode": "LH"
}hansard_search_by_bill
Search Hansard records by bill name.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | Name of the bill (partial matching supported) |
Example:
{
"billName": "Environmental Planning"
}hansard_list_sitting_dates
List all parliamentary sitting dates.
Parameters: None
hansard_list_sitting_date_types
List all types of sitting dates.
Parameters: None
Available Resources
hansard://info
Information about the NSW Parliament Hansard API, including coverage dates, available data, and usage notes.
hansard://terms
Copyright and conditions of use for NSW Parliament Hansard data.
Usage Examples
Searching for Recent Debates
To find all Hansard records from 2024:
Use hansard_search_by_year with year: 2024Finding a Specific Day's Proceedings
To get the Hansard for a specific sitting day:
Use hansard_search_by_date with date: "2024-03-15"Searching by Member
To find speeches by a specific member:
Use hansard_search_by_speaker with:
- speakerName: "Jones*"
- startDate: "2024/01/01"
- endDate: "2024/06/30"
- houseCode: "LH"Tracking Legislation
To find all debates about a specific bill:
Use hansard_search_by_bill with billName: "Housing Amendment"API Reference
This MCP server interfaces with the NSW Parliament Hansard API:
Base URL: https://api.parliament.nsw.gov.au/api
Endpoints Used
Endpoint | Method | Description |
| GET | Search by year |
| GET | Search by date |
| GET | Get XML fragment |
| POST | Get HTML fragment |
| GET | Get PDF |
| GET | Get searchable PDF |
| GET | Get TOC XML |
| POST | Get TOC JSON |
| GET | Search by speaker |
| GET | Search by bill |
| GET | List sitting dates |
| GET | List sitting date types |
For complete API documentation, visit:
Data Coverage
Temporal Coverage
Start Date: September 1991
End Date: Present (updated regularly)
Content Types
Daily transcripts (corrected and uncorrected)
Table of contents
PDF documents
Speaker records
Bill debates
Chambers
Legislative Assembly (LH): The Lower House of NSW Parliament
Legislative Council (UH): The Upper House of NSW Parliament
Terms of Use
NSW Parliament Copyright Notice
The material provided through this MCP server originates from the NSW Parliament Hansard API and is subject to copyright under the Copyright Act 1968 (Cth). Copyright is owned by the State of New South Wales through the Parliament of New South Wales.
Permitted Use
The Parliament of NSW encourages the availability, dissemination and exchange of public information. You may copy, distribute, display, download and otherwise deal with the material on the following conditions:
Non-commercial purposes: Use must not be for advertising, satire, or ridicule
No misrepresentation: Use must not misrepresent members of Parliament
Attribution required: You must include the copyright notice:
© State of New South Wales through the Parliament of New South Wales
Restrictions
This permission does not extend to copyright in materials owned by others, such as papers tabled in Parliament
Evidence, submissions and other material provided to committees should not be re-published or distributed without first being authorised by the relevant committee or House
Use of the Parliamentary Crest is permitted only where reproduction is incidental to use of publications in accordance with the copyright notice
The Parliament does not authorise any other use or reproduction of the Parliamentary Crest and other parliamentary symbols and logos without prior written permission
Copyright of broadcast material belongs to NSW Parliament and no unauthorised use may be made of that material
Disclaimer
The Hansard API is provided on an "as is" basis
The Parliament of NSW is not liable for loss or damage arising from use of the material or from delays or interruptions in service
The Parliament does not provide developers with any direct support for API usage beyond the available documentation
Full Terms
For the complete terms and conditions, please visit: NSW Parliament Copyright & Conditions of Use
License
This MCP server implementation is released under the MIT License.
MIT License
Copyright (c) 2025 Law Quarter
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.Important: While this software implementation is MIT licensed, the data obtained through the NSW Parliament Hansard API is subject to the NSW Parliament's copyright and conditions of use as described in the Terms of Use section above.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
Support
This MCP server is maintained by Law Quarter.
For issues related to this MCP server implementation, please open an issue on GitHub.
Note: The NSW Parliament does not provide direct support for API usage. For API-related queries, refer to the official documentation links provided above.
Acknowledgements
NSW Parliament for providing the Hansard API
Model Context Protocol for the MCP specification
Data.NSW for API documentation and data hosting
Disclaimer: This project is not officially affiliated with or endorsed by the NSW Parliament. It is an independent implementation that interfaces with the publicly available Hansard API.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides a structured interface to the Japanese National Diet Library's parliamentary proceedings API, allowing AI models to search and retrieve Diet meeting records and speeches.31
- AlicenseAqualityAmaintenanceProvides comprehensive access to Taiwan's Legislative Yuan data including bills, committees, gazettes, meeting records, interpellations, laws, legislators, and IVOD recordings through the Legislative Yuan API v2.396MIT
- Flicense-qualityDmaintenanceProvides comprehensive access to Hong Kong Legislative Council data including voting results, bills, parliamentary questions, and Hansard records. It supports real-time multi-word search capabilities and various transport protocols like SSE and WebSocket for easy integration.2
- Alicense-qualityCmaintenanceProvides access to Canadian parliamentary data including debates, bills, votes, politicians, and committees via the OpenParliament.ca civic-tech mirror.8MIT
Related MCP Connectors
Search bills and speaker-attributed hearing transcripts across all 50 US state legislatures.
Search and analyze global news coverage and US TV transcripts via the GDELT Project APIs.
Congressional Documents — full-text search and retrieval over the official
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lawquarter/nsw-hansard-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server