eu.ansvar/ghana-law-mcp

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

0Apache-2.0search

Install

Config snippet generator goes here (5 client tabs)

README

# Ghanaian Law MCP Server

**The Ghana Legal Information Institute (GhanaLII) alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Fghanaian-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/ghana-law-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/ghana-law-mcp?style=social)](https://github.com/Ansvar-Systems/ghana-law-mcp)
[![CI](https://github.com/Ansvar-Systems/ghana-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/ghana-law-mcp/actions/workflows/ci.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)](https://github.com/Ansvar-Systems/ghana-law-mcp)
[![Status](https://img.shields.io/badge/status-initial--build-orange)](https://github.com/Ansvar-Systems/ghana-law-mcp)

Query Ghanaian law -- from the Data Protection Act 2012 and Cybersecurity Act 2020 to the Companies Act 2019, Electronic Transactions Act, and Criminal Offences Act -- directly from Claude, Cursor, or any MCP-compatible client.

If you're building legal tech, compliance tools, or doing Ghanaian legal research, this is your verified reference database.

Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden

---

## Why This Exists

Ghanaian legal research means navigating ghalii.org, the Parliament of Ghana website, Ghana Gazette publications, and scattered government portals. Whether you're:

- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking Data Protection Act obligations or Cybersecurity Act requirements
- A **legal tech developer** building tools on Ghanaian law
- A **researcher** tracing provisions through Acts of Parliament

...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.

This MCP server makes Ghanaian law **searchable, cross-referenceable, and AI-readable**.

---

## Quick Start

### Use Remotely (No Install Needed)

> Connect directly to the hosted version -- zero dependencies, nothing to install.

**Endpoint:** `https://ghanaian-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add ghanaian-law --transport http https://ghanaian-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |

**Claude Desktop** -- add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "ghanaian-law": {
      "type": "url",
      "url": "https://ghanaian-law-mcp.vercel.app/mcp"
    }
  }
}
```

**GitHub Copilot** -- add to VS Code `settings.json`:

```json
{
  "github.copilot.chat.mcp.servers": {
    "ghanaian-law": {
      "type": "http",
      "url": "https://ghanaian-law-mcp.vercel.app/mcp"
    }
  }
}
```

### Use Locally (npm)

```bash
npx @ansvar/ghana-law-mcp
```

**Claude Desktop** -- add to `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "ghanaian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/ghana-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

```json
{
  "mcp.servers": {
    "ghanaian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/ghana-law-mcp"]
    }
  }
}
```

---

## Example Queries

Once connected, just ask naturally:

- *"What does the Data Protection Act 2012 say about processing personal data?"*
- *"Find provisions in the Cybersecurity Act 2020 about critical information infrastructure"*
- *"Search for company law provisions under the Companies Act 2019"*
- *"What does the Electronic Transactions Act say about digital signatures?"*
- *"Find provisions in the Criminal Offences Act about cybercrime"*
- *"Is the National Information Technology Agency Act still in force?"*
- *"Search for consumer protection provisions in Ghanaian law"*
- *"Validate the citation Data Protection Act 2012, Section 17"*
- *"Build a legal stance on data controller obligations under Ghanaian law"*

---

## Current Coverage State

> **Note:** This MCP server is in its initial build phase. The database schema, ingestion pipeline, and all 13 tools are fully operational. Statute ingestion from GhanaLII and the Parliament of Ghana is actively underway.

The server covers the following priority Ghanaian statutes:

| Priority Area | Key Statutes |
|---------------|-------------|
| **Data Protection** | Data Protection Act, 2012 (Act 843) |
| **Cybersecurity** | Cybersecurity Act, 2020 (Act 1038) |
| **Electronic Commerce** | Electronic Transactions Act, 2008 (Act 772) |
| **Company Law** | Companies Act, 20