InForce MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
InForce
InForce finds every AI answer, line of code and document that still runs on repealed law, and shows what replaced it. Built with Relate.
On 26 June 2025, Nigeria enacted four tax reform laws: the Nigeria Tax Act, the Nigeria Tax Administration Act, the Nigeria Revenue Service (Establishment) Act and the Joint Revenue Board of Nigeria (Establishment) Act. The two establishment Acts commenced on signing, to set up the institutions; the Nigeria Tax Act and the Nigeria Tax Administration Act took effect on 1 January 2026. Under section 195 of the Nigeria Tax Act (s.196 in the gazetted text), the Personal Income Tax Act, the Companies Income Tax Act, the Capital Gains Tax Act, the VAT Act, the Industrial Development (Income Tax Relief) Act and other tax laws were repealed from that date.
Payroll code, HR policies and AI assistants written before 2026 still use the old rules. InForce finds where.
InForce checks whether a provision is in force. It is not legal or tax advice.
Try it in your browser: https://subair99.github.io/in-force/ (paste an answer or document; nothing leaves your browser).

First result in 60 seconds
git clone https://github.com/subair99/in-force.git && cd in-force
python3 -m venv .venv && . .venv/bin/activate # Windows: py -3.11 -m venv .venv; .venv\Scripts\activate
make install # Windows without make: python -m pip install -e ".[dev,embed]"
make demo # Windows without make: inforce load --allow-unverified; inforce demo --fastIf python3 -m venv fails on Debian/Ubuntu, install python3-venv (or use uv venv --python 3.11 --seed .venv). No API keys and no network beyond the package install. make demo runs the whole story on a temporary copy of a synthetic payroll repo and checks each step:
PASS law pack: 17 rules loaded
PASS stale answer: verdict STALE, 6 claims rest on repealed law
PASS stale repo: 13 STALE artifacts
PASS keystones: top keystone: ng.pit.cra.old (8 artifacts)
PASS brief: 7 items to re-check
PASS fixed repo: 13 STALE before, 0 after
PASS fixed answer: verdict SUSPECT
PASS ask: top rule ng.pit.cra.old (hybrid)
PASS what-if (repo): 5 artifacts would turn STALE; both stores restored
PASS what-if (law): 1 grant(s) would fall
PASS diff: s.183(2) -> s.182(2), s.196 -> s.195, s.203 -> long title (Commencement)The "fixed repo" step replays the edits a real Claude Code session made through InForce's MCP tools (transcript), so the demo needs no model. "SUSPECT" means current law that a human has not yet verified against the Act's text (see Data and accuracy).
Related MCP server: fin-law-mcp
Use case
Developers of Nigerian payroll, accounting and tax-assistant software, and the people who paste AI answers into reports, need to know which of their code, tests, policies and answers still rest on the repealed Acts, and what replaced each rule. A search for "PITA" does not find a CRA_RATE = 0.20 constant, the test that pins its result, or the payslip template that prints it. What matters are relationships: an Act REPEALS another, a section SAVES existing grants, an old section is SUCCEEDED_BY a new one, a rule is REPLACED_BY another, code ENCODES a rule, a document's claim CITES it, and tests and callers depend on the code (TESTED_BY, USED_BY). InForce walks those relationships for a given date: it marks the artifact STALE, shows the path that proves it, and lists everything that must be re-checked with it.
$ inforce check "Under PITA the first ₦300,000 is taxed at 7%." --on 2026-11-25
text on 2026-11-25: STALE
│ 1 │ 1 │ PITA │ REPEALED * │ 2026-01-01 │ Nigeria Tax Act, 2025 │
│ 2 │ 1 │ first ₦300,000 is taxed at 7% │ REPEALED * │ 2026-01-01 │ NTA s. 58 + Fourth Schedule (whole │
│ │ │ │ │ │ scale): PIT: first NGN 800,000 at 0% · │
│ │ │ │ │ │ PIT: next NGN 2,200,000 at 15% · ... │
Why
2. Rule ng.pit.band1.old <-SETS- Provision TODO/ng/act/pita/sec_bands <-CONTAINS- Instrument PITA
<-REPEALS 2026-01-01- Instrument NTA -SUCCEEDED_BY-> Provision akn/ng/act/2025/7/sec_58How it uses Relate
Mode: embedded, single-file stores (
.rl), used twice, through the Python packagerelate-db(1.3.0) and therelateCLI.data/ng-tax-2026.rlis the law pack: Acts, provisions, rules, repeals, savings, successors and sources. It is built fromdata/rules/*.yamlbyinforce loadand read-only at runtime.<your repo>/.inforce/project.rlis the project graph: the repo's code constants, functions, tests, documents and recorded AI answers, linked to a copy of the slice of law they rest on. It is written byinforce scanand by agents, and committed with the code.
Why this mode:
One file, no server. The law pack is one inspectable file that ships with the code like a dataset. The project graph is committed like a lockfile, so a pull request shows the re-check list changing.
Opened per command. Every command opens a store, works, and closes it. A
.rlfile cannot be opened at all, even read-only, while a writer holds it, so a long-lived connection would lock out the scanner, the agent and the CLI.Retries on a lock. A second writer gets "storage locked" (exit 5) and retries with backoff (
python scripts/two_writers.pyshows it).One graph per statement. One statement reads one graph, so
scancopies the law it needs into the project graph, and every verdict about a repo is a query on that one graph.
What the graph models:
Node
Key
Relationship
Meaning
Instrumentakn(Instrument)-[:CONTAINS]->(Provision)-[:SETS]->(Rule)structure
Provisionakn(Instrument)-[:REPEALS {on}]->(Instrument|Provision)repeal on a date
Ruleid(Provision)-[:SAVES {until}]->(Grant|Provision)savings clause
Grantid(Provision)-[:SUCCEEDED_BY]->(Provision)replaced as a whole (the PIT scale)
Sourceurl(Rule)-[:REPLACED_BY]->(Rule)/-[:RELATED]->one-to-one successor / related, not a successor
Versionkey(Instrument)-[:HAS_VERSION]->(Version {recordedAt, closedAt})which published text was on record when
(Provision)-[:NUMBERED_AS {number, page}]->(Version)section number in each edition (gazetted s.183(2) = certified s.182(2))
Artifactid(Artifact)-[:ENCODES]->(Rule)code built on a rule
Claimid(Artifact)-[:HAS_CLAIM]->(Claim)-[:CITES]->(Rule|Provision|Instrument)citations in documents and answers
(Artifact)-[:USED_BY|TESTED_BY]->(Artifact)callers and tests (followed forward, up to 3 hops)
The rule: a provision is in force on a date from its own
validFrom(or its Act's commencement) until the earliest of its ownvalidTo, a repeal of the provision, or a repeal of its Act. A savings provision that is itself in force keeps it alive. An artifact is STALE if it encodes or cites law repealed on that date, or uses or tests such an artifact. Statuses are always computed for the date asked; nothing is stored as truth.Relate features used:
embedded Python;
Cypher with
EXISTS {}, variable-length paths, label alternation and dynamic labels/types ($(…)) for copying law between stores;transactions with rollback (
whatif repeal);unique constraints;
vector and full-text
SEARCH(ask), with rule embeddings stored in the pack;safe mode (
--safe; every read query has aLIMIT, tested);Relate's own MCP server (
relate serve --mcp stdio --read-only --safe, toolsread_cypherandget_schema) next to InForce's;the Relate agent skill.
Every query lives in
inforce/queries/, one per file.
Setup and run
Prerequisites: Python 3.11+. The Relate CLI is optional: InForce runs on the Python package. The CLI is used for raw inspection, Relate's MCP server and the safe-mode tests (they are skipped without it).
curl -sSfL https://relatedb.ai/install.sh | bash # macOS/Linux
# Windows (PowerShell): powershell -ExecutionPolicy ByPass -c "irm https://relatedb.ai/install.ps1 | iex"
make install # or: python -m pip install -e ".[dev,embed]"
make test # pytestTested on Linux (Ubuntu in CI, and WSL2). The Windows commands are given but have not been tested.
Command | What it does |
| each citation and tax figure: in force, repealed (with successor) or not recognised; exit 3 if anything is stale |
| link code, tests, docs and templates to the law; writes |
| one screen before editing: VERDICT, TRUTH, WHY, WHAT RESTS ON IT, RE-CHECK LIST |
| the rules the repo rests on most |
| what would fall, measured in a transaction and rolled back (counts and fingerprint before, during and after) |
| hybrid rule search (citations, amounts, vectors, full-text) with status on the date |
| grants that fell or were saved when an Act was repealed |
| which published edition of each Act was on record on each date, and the section numbers that differ between them |
| the human checklist for verifying entries against the Act |
| MCP server (stdio) with |
|
|
Use it from your coding agent (Claude Code)
From the repo root, with the virtualenv active so inforce is on your PATH:
cp .mcp.json.example .mcp.json # two MCP servers: inforce + Relate's own (read-only law pack)
mkdir -p .claude/skills/inforce && cp skill/SKILL.md .claude/skills/inforce/
claude # approve the two project MCP servers when asked
claude mcp list # inforce and relate-law should show as connectedMCP server | Tools | What it gives the agent |
|
| verdicts, successor rules, proof paths and re-check lists (JSON) |
|
| raw read-only Cypher on the law pack |
The skill tells the agent to:
check a draft answer before sending it;
brief a tax file before editing it;
rescan until nothing is STALE.
Pass record_in to inforce_check (or --record <repo> on the CLI) to store the answer in that repo's project graph next to the code; later scans also flag AI answers that rest on repealed law. demo/transcripts/ has two recorded sessions:
Fixing the demo repo: the agent takes it from 13 STALE artifacts to 0.
An earlier run: the law pack lacked three PAYE bands, and the agent refused to invent them.
Where the data lives
Law pack:
data/ng-tax-2026.rl, built fromdata/rules/ng-tax-2026.yaml. Each entry has its source link.Demo project graph:
demo/naira-payroll/.inforce/project.rl, made by scanning the synthetic repo indemo/naira-payroll/.Browser data:
web/export.json, with statuses computed by Cypher at each date where a status can change.
Inspect them yourself (read-only):
make inspect
relate --database data/ng-tax-2026.rl --read-only --mode table \
"MATCH (i:Instrument)-[r:REPEALS]->(old) RETURN i.short AS act, old.title AS repealed, r.on AS on ORDER BY repealed LIMIT 20"
relate --database demo/naira-payroll/.inforce/project.rl --read-only --mode table \
"MATCH (a:Artifact)-[:ENCODES]->(r:Rule) RETURN a.id AS artifact, r.text AS rule ORDER BY artifact LIMIT 20"| act | repealed | on |
| "NTA" | "Capital Gains Tax Act" | 2026-01-01 |
| "NTA" | "Companies Income Tax Act" | 2026-01-01 |
| "NTA" | "Industrial Development (Income Tax Relief) Act" | 2026-01-01 |
| "NTA" | "Personal Income Tax Act" | 2026-01-01 |
| "NTA" | "Value Added Tax Act" | 2026-01-01 |
| artifact | rule |
| "payroll/company_tax.py::CGT_RATE" | "Company capital gains taxed at 10%" |
| "payroll/paye.py::CRA_FLAT_MIN" | "CRA: 20% of gross income plus the higher of NGN 200,000 or 1% of gross" |
| "payroll/paye.py::CRA_RATE" | "CRA: 20% of gross income plus the higher of NGN 200,000 or 1% of gross" |
| "payroll/paye.py::PIT_BANDS_2025" | "PIT: first NGN 300,000 at 7%" |
| "payroll/paye.py::PIT_BANDS_2025" | "PIT: next NGN 300,000 at 11%" |Data and accuracy
What is stored: identifiers, dates, relationships, rule values and short summaries in our own words, built from published commentary on the Nigeria Tax Act 2025 (sources in
data/rules/*.yaml). No Act text is copied.Status: Each rule links to its source; verification against the Act's text is in progress (0 of 47 law entries verified).
Checking entries:
make verifylists every entry with its source and verified flag.inforce verify --sheetmakes a checklist grouped by section of the Act, andinforce verify --applyrecords the ticks. The loader refuses unverified entries unless--allow-unverifiedis given; the demo uses that flag. Until an entry is verified, every verdict that rests on it is marked unverified.Synthetic demo: the demo payroll repo is synthetic, with no real people, salaries or employers.
Built with
Libraries: Relate (
relate-db1.3.0 and therelateCLI), Python, Typer, Rich, PyYAML, the MCP Python SDK and model2vec (minishlab/potion-base-8M, local CPU embeddings). The demo recordings use asciinema and agg.AI tools: Claude Code (Anthropic; model Claude Opus 5.5) wrote most of the code, tests and documentation in this repo under the author's direction. The author set the scope, specification and plan, made the design decisions, supplied the law data and reviewed the changes; verifying the law data against the Act is the author's job. The sessions in
demo/transcripts/are Claude Code using InForce through MCP.Reused work: none, beyond the libraries listed.
Limits and what's next
Unverified law data: the rules come from published commentary and are still being checked against the Act's text. Some old-Act section numbers are still
TODO. Only Nigerian federal tax is covered, and only the rules in the pack.Explicit patterns:
scanandcheckmatch the patterns inpatterns/, not every way of writing a rule. They follow Pythonfrom x import y, but notimport xwith attribute use.Code comments are not scanned.
A claim that matches no rule is reported as "not recognised", never guessed.
Text differences:
diff --known-onknows which version of an Act was on record, but no text-level differences between versions are recorded yet.Next:
law packs for other countries in Akoma Ntoso identifiers;
state tax laws;
a GitHub Action that comments the re-check list on pull requests;
the browser checker running Relate itself (WebAssembly + OPFS).
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provenance-backed EU and UK legislation for AI agents, addressable to the individual provision.
Deterministic EU Compliance, Tax, Public Procurement & Labour Law Engine for AI Agents
Grounded MENA legal search, reasoning, citation resolution, and citation-graph traversal.
Connect AI to millions of laws and court cases with the Lawstronaut MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that turns the US Code of Federal Regulations into an agent-navigable citation graph, enabling traversal of regulatory references and detection of stale citations via structured tools.MIT
- AlicenseAqualityBmaintenanceEnables Korean tax, accounting, and finance professionals to pull statute text, delegated enforcement decrees and rules, NTS rulings, and annexes in a single lookup, and to check whether every statute or article citation in an AI draft actually exists (±verified, missing, or unverifiable), with statutory-formula calculations for items like executive severance limits and entertainment-expense caps.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to file, decide, and escalate business exceptions only when backed by precedent that is still good law, checking authority, overruling, and current policy inside FalkorDB. Also exposes graph analytics, agent memory and handoffs, policy-impact simulation, and hash-chained ledger verification as MCP tools.MIT

Magist MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceConnects AI hosts to a deterministic, cited regulatory-compliance reference so agents can look up laws, search regulations, compute which requirements a product triggers, and find related Controls, vendors, enforcement actions, and counsel with primary-source links. It also exposes the accepted feature/market/audience catalog and a token verifier for grounding what was served.41 npmMIT