MCP Hub
Back to servers

zimbabwe-law-mcp

Zimbabwe legislation via MCP — full-text search across statutes and provisions

Registry
Updated
Feb 22, 2026

Quick Install

npx -y @ansvar/zimbabwe-law-mcp

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.

TierDB SizeIncludesTransport
Bundled (single tier)~60-100 MBAll Acts of Parliament, Statutory Instruments, selected case lawstdio (npm)

Data Sources

SourceAuthorityMethodUpdate FrequencyLicenseCoverage
ZimLIIZimLII / AfricanLIIHTML ScrapeWeeklyFree AccessAll Acts of Parliament, Statutory Instruments, selected case law
Parliament of ZimbabweParliament of ZimbabweHTML ScrapeOn changeGovernment Public DomainBills, enacted Acts, Hansard
Veritas ZimbabweVeritas ZimbabweHTML ScrapeWeeklyFree Access (Civil Society)Government Gazette mirrors, legislative analysis

Full provenance metadata: sources.yml

Key Legislation Covered

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

ToolDescription
get_provisionRetrieve a specific section/article from a Zimbabwean Act by law identifier and article number
search_legislationFull-text search across all Zimbabwean legislation
list_actsList all available Acts of Parliament in the database
get_act_structureGet the table of contents / structure of a specific Act
get_provision_eu_basisCross-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.

Reviews

No reviews yet

Sign in to write a review