australia-parliament-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Overview
Read Australian federal House and Senate proceedings from 7 February 2006 onward and look up federal parliamentarians across all parliaments. The five live tools use public sources without an API key. The two cross-sitting search tools use an optional local SQLite mirror.
Tools
Tool | Availability | Operation |
Live or mirror | Read a day's proceedings or the exchange around a speech. | |
Live or mirror | Read a recorded vote, party tallies and pairs. | |
Live | Find current and former federal parliamentarians. | |
Live | Look up official service histories and seat terms. | |
Live | Find sitting dates, coverage, accepted values and identifier formats. | |
Ready mirror | Search speeches across sitting days. | |
Ready mirror | Search recorded divisions and follow a member's votes. |
Related MCP server: canada-parliament-mcp-server
Capability reference
auparl_get_sitting
Supply
houseanddate, or aspeech_id. The sitting outline includes headings, speech IDs, division summaries and bill tags.Set
include_text: truefor a page of complete speeches. Passnext_startback asstartto continue. A speech ID starts the text page at that speech by default.For a confirmed non-sitting date, look at the nearest sitting dates. If a speech ID became stale, use the current outline to locate the speech again.
auparl_get_division
Supply
house,dateand divisionnumber, or adivision_id.Returns the recorded ayes, noes and pairs, dated party tallies, and the preceding speech's final paragraph when available. Pairs have no vote side. Reported totals and tellers are separate from the tally of listed voters.
auparl_search_members
Search by name or narrow by house, party, state, electorate or parliament. Set
sitting_now: trueto restrict to current members.Use the returned parliamentary Handbook identifier (PHID) for member details and vote or speech searches.
auparl_get_member
Supply
idsas an array of PHIDs or prefixed OpenAustralia identifiers. Send back anydeferred_idsin another call after the first 25 lookups.Returns service history, roles, ministries and OpenAustralia seat terms when available. A ready mirror adds counts and first and last dates for speeches and recorded votes within its coverage. Vote counts exclude pairs.
auparl_list_reference
Pass a
topic. Usecoveragefor recent source dates, mirror readiness and known import failures. Usesitting_dayswith ahouseandyearto find dates for live reads.Other topics include
houses,parliaments,parties,electorates,states,talk_types,search_syntaxandid_formats.
auparl_search_speeches
Search words, quoted phrases, uppercase
ORor a trailing*on a word. Omit the query to browse by filters, including date, speaker, party, heading or bill.Results include excerpts by default. Set
include_full_text: truefor complete speeches. Interjections are excluded by default. Party reflects the date of the speech, and House days with unresolved venue are excluded by venue filters.
auparl_search_divisions
Narrow by house, date, heading or bill. Supply
memberto see that person's recorded vote status for each matching division.Status distinguishes aye, no, paired, did not vote and not a member. It can be unknown when service history is unavailable. Pass a returned
division_idto read the full vote lists.
All three search tools return a filtered total and next_offset for pagination. Pages may shift when the underlying data refreshes.
Features
Built on @cyanheads/mcp-ts-core with stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), and structured logging with optional OpenTelemetry tracing.
Proceedings and vote lists come from the OpenAustralia bulk archive. Member histories come from the Parliamentary Handbook OData API and seat terms from OpenAustralia's membership files.
Dates use the Canberra calendar (
YYYY-MM-DD). The archive generally publishes the next morning Canberra time. A recent proof edition or a historical reparse can change text and shift or remove positional IDs.Use
representativesorsenateas the house. Keep the house prefix on speech and division IDs (<house>/<date>.<n>.<m>). The Federation Chamber, historically the Main Committee, is a House venue. Some House dates have an unresolved venue split.Bare member identifiers are PHIDs, including all-digit values. Prefix OpenAustralia IDs with
person/,member/orlord/. Person IDs span terms. Member and lord IDs identify one seat term and constrain speech or vote searches to that term.Coverage is federal chamber proceedings from 7 February 2006. Bill tags point to relevant proceedings and ParlInfo pages. Bill text and progress, earlier Hansard, committees and Estimates, questions on notice and petition text are outside coverage.
Getting started
For Claude Desktop, install the .mcpb from the badge above. The portable bundle runs the five live tools.
For Claude Code, use Node.js 24 or newer with:
claude mcp add australia-parliament-mcp-server -- npx -y @cyanheads/australia-parliament-mcp-serverFor other stdio clients, add this to the MCP config file:
{
"mcpServers": {
"australia-parliament-mcp-server": {
"command": "npx",
"args": ["-y", "@cyanheads/australia-parliament-mcp-server"]
}
}
}With Bun 1.4.4 or newer, use bunx --bun @cyanheads/australia-parliament-mcp-server as the launch command. For example, start with auparl_list_reference({"topic":"sitting_days","house":"senate","year":2025}), then pass a returned date and house: "senate" to auparl_get_sitting.
Configuration
Variable | Description | Default |
| Enable cross-sitting search and mirror coverage. Set |
|
| Persistent writable SQLite file, required when the mirror is enabled. Use an absolute path shared by the import and server processes. | unset |
| Transport, either |
|
| HTTP bind address. |
|
| HTTP server port. |
|
| HTTP MCP endpoint. |
|
| Authentication mode, one of |
|
| Minimum log level. |
|
| Enable OpenTelemetry. |
|
| Opt in to sending tool-call summaries to the maintainer. |
|
See .env.example for common framework overrides.
Running the server
Local development
git clone https://github.com/cyanheads/australia-parliament-mcp-server.git
cd australia-parliament-mcp-server
bun install
bun run rebuild
bun run start:stdioFor Streamable HTTP, run bun run start:http and connect to http://127.0.0.1:3010/mcp.
Docker
docker run --rm -p 127.0.0.1:3010:3010 ghcr.io/cyanheads/australia-parliament-mcp-server:latestThe image defaults to Streamable HTTP with stateless sessions. To build locally, run docker build -t australia-parliament-mcp-server ..
Optional Hansard mirror
Allow at least 12 GiB free on the mirror volume. The initial import takes about an hour before retries and is resumable. Initialize the mirror in a separate process before using cross-sitting search.
export AUPARL_MIRROR_ENABLED=true
export AUPARL_MIRROR_PATH="$HOME/.local/share/auparl/hansard.sqlite"
npx -y @cyanheads/australia-parliament-mcp-server mirror init
npx -y @cyanheads/australia-parliament-mcp-server mirror verifyPass both variables to the MCP client in the stdio server's env object or export them before launching HTTP. For the Claude Code plugin, fill in the mirror settings when configuring it. For the Codex plugin, export both variables before starting Codex. Run npx -y @cyanheads/australia-parliament-mcp-server mirror refresh to update a stdio mirror. Mirror-enabled HTTP schedules refresh at 03:15 UTC each day after initialization.
For Docker, mount a persistent volume writable by the container's bun user. Use the same volume and path for the import and server:
docker run --rm --mount source=auparl-data,target=/usr/src/app/.mirror \
-e AUPARL_MIRROR_ENABLED=true -e AUPARL_MIRROR_PATH=/usr/src/app/.mirror/hansard.sqlite \
ghcr.io/cyanheads/australia-parliament-mcp-server:latest bun dist/index.js mirror init
docker run --rm -p 127.0.0.1:3010:3010 --mount source=auparl-data,target=/usr/src/app/.mirror \
-e AUPARL_MIRROR_ENABLED=true -e AUPARL_MIRROR_PATH=/usr/src/app/.mirror/hansard.sqlite \
ghcr.io/cyanheads/australia-parliament-mcp-server:latestUse auparl_list_reference with topic: "coverage" to see both the latest available and latest loaded dates, along with failed days. Failed refreshes preserve the last successfully loaded copy.
Project structure
Directory | Purpose |
| Public MCP tool contracts. |
| OpenAustralia XML and sitting parsing. |
| Handbook snapshots and OpenAustralia identity joins. |
| SQLite import and search. |
| Tests for source parsing, tools, mirror lifecycle and packaging. |
Development guide
See CLAUDE.md for development guidelines and the design for the source and data contracts.
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
The server code is licensed under the Apache License 2.0.
Hansard is Commonwealth of Australia material. The Parliament of Australia copyright notice specifies CC BY-NC-ND 4.0. OpenAustralia's licensing notice cites CC BY-NC-ND 3.0 for parliamentary material and CC BY-SA 2.5 for OpenAustralia's own lists. Results credit the Parliament of Australia and the OpenAustralia Foundation, link to the source sitting, and identify text converted from XML or presented as an excerpt. The Handbook API supplies official service records and publishes no separate licence in its service document.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search MPs and Lords, fetch profiles, synopses, and Westminster constituencies
Track Canadian federal bills, MPs, House votes, and Hansard speeches.
Access U.S. congressional data (bills, votes, members, committees) via MCP.
Query SEC EDGAR filings, XBRL financials, and company data via MCP. STDIO or Streamable HTTP.
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceProvides programmatic access to the New South Wales Parliament Hansard API, enabling search and retrieval of parliamentary transcripts, debates, and proceedings from 1991 to present.123MIT
- AlicenseNot gradedqualityBmaintenanceEnables tracking of Canadian federal parliamentary records by searching bills, members, House divisions, and indexed Hansard speeches, then retrieving detailed dossiers, profiles, tallies, and full speech text from official public sources. Runs over STDIO or Streamable HTTP with no API key required.364 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables discovery and retrieval of European Parliament procedures, MEPs, plenary votes, documents, speeches, and questions from the Open Data API over STDIO or Streamable HTTP.353 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables searching and retrieving UK Parliament records — bills, members, Commons and Lords divisions, Hansard contributions, written questions, and committee business — from the official Parliament APIs. Runs over STDIO or Streamable HTTP with no API key, linking records across their distinct identifiers.316 npm1Apache 2.0