All member projects

Code · Built by members

NZ Legislation MCP

An MCP server that lets agents look up and cite New Zealand legislation through the official PCO API.

Conceptual illustration: An MCP server that lets agents look up and cite New Zealand legislation through the official PCO API.
AI-generated editorial illustration, not a product screenshot.

What it is

NZ Legislation MCP is a remote MCP server that connects AI assistants to the New Zealand Legislation API run by the Parliamentary Counsel Office. It lets an agent find Acts, bills and regulations and read the actual text, so answers about NZ law can quote and cite the source.

It is for developers who want to give their own agents access to NZ legislation. You deploy your own copy and supply your own PCO API key. The code is open so others can adapt it.

What it does

  • Searches legislation by name, type, status or agency.
  • Lists historical versions of a law and the details of each version.
  • Fetches the text of a section or Part from legislation.govt.nz.
  • Ships a skill that shapes answers into a quick answer, the exact text, an explanation and a citation.
  • Protects the server with OAuth sign-in and keeps the PCO key on the server.
  • Tracks the API's daily rate limit and stops before it is exceeded.

Built with

  • TypeScript
  • Next.js
  • mcp-handler
  • MCP
  • Vercel
  • Docker
  • agents
  • civic & data

More from the community

Code

NZ Skills

by Adam

A shared, community-built library of agent skills for live New Zealand data, from LINZ and Stats NZ to transport, weather and fuel prices.

Demo

One neuron at a time

by Caleb

Push single neurons in small open models and turn them into villains, flatterers or pirates. Try the recorded replies, then run it yourself.

Code

governed-agent

by Jeremy

Capability-based security, scope-bounded planning and out-of-band audit for autonomous LLM agents.

Back to all member projects