home / mcp / kenyan law mcp server

Kenyan Law MCP Server

Queries Kenyan statutes and EU cross-references from MCP clients via a hosted or local server.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ansvar-systems-kenya-law-mcp": {
      "url": "https://kenya-law-mcp.vercel.app/mcp"
    }
  }
}

The Kenyan Law MCP Server provides a searchable, AI-readable reference for Kenyan legislation. You can query statutes such as data protection, cybersecurity, corporate law, and more from MCP-compatible clients like Claude or Cursor, enabling quick access to exact provisions with context. It’s useful for legal research, compliance checks, and developing Kenyan-law focused tools.

How to use

Connect to the MCP server from an MCP client to perform full-text search, retrieve exact provisions, verify currency, and build legal stances across Kenyan law. You can use remote hosted access for zero installation or run a local instance for private deployments. When connected, you can ask natural-language questions like 1What does the data protection law say about consent?1 or 1Is this statute still in force?1 and receive precise provisions or status updates.

How to install

Follow these concrete steps to set up the MCP server locally. You will use Node.js tooling to install dependencies, build, and run the server.

Additional notes

This server ships with an HTTP endpoint for remote usage and also supports local execution via standard package managers. Use the HTTP endpoint for quick, zero-install connections, or run locally to keep data private and under your control. The project includes example configurations for Claude Desktop and GitHub Copilot that show how to connect to the MCP endpoint. Remember to treat statute text as a primary reference and verify critical citations against official sources.

Security and disclaimers

The system relies on authoritative Kenyan government sources and returns provisions verbatim from a local database. It does not perform LLM-based paraphrasing on statute text. For sensitive or privileged matters, prefer a local deployment and follow your organization’s data handling policies.

Available tools

search_legislation

Full-text search across all provisions with BM25 ranking.

get_provision

Retrieve a specific provision by statute, chapter, and section.

check_currency

Check whether a statute is in force, amended, or repealed.

validate_citation

Validate a citation against the database to reduce errors.

build_legal_stance

Aggregate citations from multiple statutes to form a legal stance on a topic.

format_citation

Format citations per Kenyan conventions (full/short/pinpoint).

list_sources

List all available statutes with metadata.

about

Provide server information, capabilities, and coverage summary.

get_eu_basis

Retrieve EU directives/regulations referenced by a Kenyan statute.

get_kenyan_implementations

Find Kenyan laws that implement a given EU act.

search_eu_implementations

Search EU documents with counts of Kenyan implementations.

get_provision_eu_basis

Get EU law references for a specific provision.

validate_eu_compliance

Check the implementation status of EU directives.