npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ansvar/zimbabwe-law-mcp

v1.0.1

Published

Zimbabwe law database covering data protection, cybersecurity, cybercrime, electronic transactions, and corporate law with full-text search via MCP

Downloads

128

Readme

Zimbabwe Law MCP

CI npm License OpenSSF Scorecard MCP Registry

A Model Context Protocol (MCP) server providing full-text search and structured access to Zimbabwean legislation, including the Cyber and Data Protection Act (2021), Postal and Telecommunications Act, AIPPA, Criminal Law Act, Companies Act, and more.

Note: Zimbabwe's Cyber and Data Protection Act (2021) is one of Africa's most comprehensive pieces of legislation in this domain, covering data protection, cybersecurity, e-commerce, and cybercrime in a single act. It established the Postal and Telecommunications Regulatory Authority of Zimbabwe (POTRAZ) as the data protection authority.

Deployment Tier

SMALL -- single tier, bundled database.

Zimbabwe has a relatively small legal corpus compared to larger common-law jurisdictions. All legislation and selected case law fit within a single bundled SQLite database.

| Tier | DB Size | Includes | Transport | |------|---------|----------|-----------| | Bundled (single tier) | ~60-100 MB | All Acts of Parliament, Statutory Instruments, selected case law | stdio (npm) |

Data Sources

| Source | Authority | Method | Update Frequency | License | Coverage | |--------|-----------|--------|-----------------|---------|----------| | ZimLII | ZimLII / AfricanLII | HTML Scrape | Weekly | Free Access | All Acts of Parliament, Statutory Instruments, selected case law | | Parliament of Zimbabwe | Parliament of Zimbabwe | HTML Scrape | On change | Government Public Domain | Bills, enacted Acts, Hansard | | Veritas Zimbabwe | Veritas Zimbabwe | HTML Scrape | Weekly | Free Access (Civil Society) | Government Gazette mirrors, legislative analysis |

Full provenance metadata: sources.yml

Key Legislation Covered

| Act | Identifier | Domain | |-----|-----------|--------| | Cyber and Data Protection Act | Act 5 of 2021 | Data protection, cybersecurity, cybercrime, e-commerce | | Postal and Telecommunications Act | Chapter 12:05 | Telecommunications regulation, POTRAZ authority | | Access to Information and Protection of Privacy Act (AIPPA) | Act 5 of 2002 | Access to information, privacy | | Criminal Law (Codification and Reform) Act | Chapter 9:23 | Criminal offences including computer-related crimes | | Companies and Other Business Entities Act | Chapter 24:31 | Corporate governance, company formation | | Interception of Communications Act | Act 6 of 2007 | Lawful interception, communications surveillance | | Electronic Transactions Act | Act 16 of 2004 | Electronic signatures, electronic contracts |

Quick Start

Install from npm

npm install -g @ansvar/zimbabwe-law-mcp

Run via npx (no install)

npx @ansvar/zimbabwe-law-mcp

Configure in Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "zimbabwe-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/zimbabwe-law-mcp"]
    }
  }
}

Build from Source

git clone https://github.com/Ansvar-Systems/zimbabwe-law-mcp.git
cd zimbabwe-law-mcp
npm install
npm run build
npm run build:db      # Build the full database
npm start             # Start the server

Tools

| Tool | Description | |------|-------------| | get_provision | Retrieve a specific section/article from a Zimbabwean Act by law identifier and article number | | search_legislation | Full-text search across all Zimbabwean legislation | | list_acts | List all available Acts of Parliament in the database | | get_act_structure | Get the table of contents / structure of a specific Act | | get_provision_eu_basis | Cross-reference a Zimbabwean provision with related EU/international instruments (GDPR, Budapest Convention) |

Contract Tests

This MCP includes 12 golden contract tests covering:

  • Article retrieval (3 tests): CDPA Section 3, CDPA Section 29, Companies Act Section 1
  • Search (3 tests): personal data, cybercrime, electronic transaction
  • Citation roundtrip (2 tests): CDPA citation URL, AIPPA citation
  • Cross-reference (2 tests): GDPR relationship, Budapest Convention relationship
  • Negative cases (2 tests): non-existent Act, malformed section number

Run contract tests:

npm run test:contract

Drift Detection

Golden hashes track 6 stable upstream provisions to detect silent content changes:

  • Constitution of Zimbabwe (2013), Section 1
  • Cyber and Data Protection Act 2021, Section 2 (definitions)
  • Cyber and Data Protection Act 2021, Section 3 (objects)
  • AIPPA Section 1
  • Criminal Law Act Section 1
  • Postal and Telecommunications Act Section 1

Run drift detection:

npm run drift:detect

Development

npm install          # Install dependencies
npm run build        # Compile TypeScript
npm test             # Run all tests
npm run test:contract  # Run contract tests only
npm run lint         # Lint source code
npm run drift:detect # Check for upstream changes

Security

See SECURITY.md for vulnerability disclosure policy.

Report data errors: Open an issue

License

Apache-2.0 -- see LICENSE.


Built by Ansvar Systems -- Cybersecurity compliance through AI-powered legal intelligence.