MCP servers for eRegistrations platform (BPA + GDB + Keycloak + SmartLink)
Project description
MCP eRegistrations
AI-powered administration for eRegistrations platforms.
A monorepo of six MCP servers that let Claude (and any MCP-compatible client) manage service design, runtime data, databases, identity, translations, and logs on eRegistrations deployments through natural language.
You: Scan the Jamaica service abc-123 for config issues
Claude: Found 144 issues — 67 orphaned effects (HIGH), 18 orphaned determinants (HIGH), 33 translation issues...
You: Fix the high-severity ones
Claude: Phase 1: Delete 67 orphaned effects. Phase 2: Delete 18 determinants. Proceed? [waits]
Each write operation is audited with per-instance rollback state.
Packages
| Package | Entry point | Scope | Tools |
|---|---|---|---|
mcp_eregistrations_bpa |
mcp-eregistrations-bpa |
Service design (read + write) | ~176 |
mcp_eregistrations_gdb |
mcp-eregistrations-gdb |
Generic DB builder (read + write) | ~63 |
mcp_eregistrations_keycloak |
mcp-eregistrations-keycloak |
IAM admin (read + write) | ~51 |
mcp_eregistrations_ds |
mcp-eregistrations-ds |
Display System / runtime monitoring | ~45 |
mcp_eregistrations_translations |
mcp-eregistrations-translations |
Translation authoring + governance (read + write) | 22 |
mcp_eregistrations_graylog |
mcp-eregistrations-graylog |
Log search | ~6 |
Common helpers live in mcp_eregistrations_common/ (instance profiles, shared auth, config resolution).
For tool-level reference, see the per-package CLAUDE.md inside src/mcp_eregistrations_*/.
Installation
Plugin marketplace (recommended)
claude plugins marketplace add unctad-digital-government
claude plugins install bpa-mcp@unctad-digital-government # Service design
claude plugins install gdb-mcp@unctad-digital-government # Databases
claude plugins install keycloak-mcp@unctad-digital-government # IAM
claude plugins install ds-mcp@unctad-digital-government # Runtime monitoring
claude plugins install translations-mcp@unctad-digital-government # Translations (authoring + governance)
claude plugins install graylog-mcp@unctad-digital-government # Logs
Restart Claude Code, then register your instances:
/bpa-mcp:install # walks you through adding your first profile
/bpa-mcp:login jamaica # authenticate once, shared across all servers
Update with claude plugins marketplace update unctad-digital-government then reinstall — a marketplace bump alone does not refresh already-installed plugins.
Direct (uvx)
claude mcp add --scope user --transport stdio BPA-jamaica \
-- uvx --from mcp-eregistrations@latest mcp-eregistrations-bpa
Then register the instance at runtime — environment variables are only used to bootstrap the default instance; all other profiles are stored in ~/.config/mcp-eregistrations-bpa/profiles.json and registered via the instance_add tool.
Other MCP clients
For OpenCode, the config schema and keys differ from Claude Code's. See INSTALL-OPENCODE.md for the opencode.json block, a ready-to-paste install prompt, and the schema differences you need to know.
Multi-instance, shared auth
One server process can target any number of eRegistrations instances. Every tool accepts an optional instance parameter:
You: List services in Nigeria
Claude: [service_list(instance="nigeria")]
You: Same thing in Jamaica
Claude: [service_list(instance="jamaica")]
Profiles hold their own BPA URL, Keycloak (or CAS) settings, token store, audit log, and rollback state. Credentials saved via auth_login are reused silently in future sessions — and shared across the BPA, DS, and GDB servers via the OS keyring.
Auth providers, auto-detected from the profile:
| Provider | When |
|---|---|
| Keycloak | Modern deployments — OIDC + password grant (default) |
| CAS | Legacy (e.g. Cuba test) — OAuth2 + Basic Auth |
Keycloak password grant requires Direct Access Grants enabled on the client. CAS requires a registered OAuth client with redirect URI http://127.0.0.1:8914/callback.
Key features
- Audit trail — every write goes through
audit_list/audit_get; state is persisted in SQLite under each profile's data directory. - Rollback — most write tools produce an audit ID that
rollbackcan reverse. - Large-response truncation — list tools gate output at ~50 KB and emit navigation hints instead of dumping raw JSON.
- Conventional annotations — every tool is tagged
READ,WRITE, orDESTRUCTIVE; clients can enforce approval policies. - Arazzo workflows (BPA) — higher-level orchestrations loaded from YAML. Available in dev checkout under
_bmad-output/arazzo-workflows/; not shipped in the wheel.
Development
git clone https://github.com/UNCTAD-eRegistrations/MCP_eRegistrations.git
cd MCP_eRegistrations
uv sync
uv run pytest # ~3600 tests, <2 min
uv run pytest tests/test_ds/ -v # single package
uv run ruff check . && uv run ruff format .
uv run mypy src/
Running a server locally
uv run mcp-eregistrations-bpa
uv run mcp-eregistrations-keycloak
# etc.
Then point your MCP client at the stdio command. See src/mcp_eregistrations_*/CLAUDE.md for instance configuration specific to each server.
Releasing
./scripts/release.sh patch # 1.16.8 → 1.16.9
./scripts/release.sh minor --yes # non-interactive
The script runs ruff, mypy, and pytest before bumping the version, generating the changelog, and creating the GitHub release. See RELEASING.md for the full flow.
Project layout
src/
├── mcp_eregistrations_common/ # profiles, auth, audit — shared
├── mcp_eregistrations_bpa/ # BPA (FastMCP 3)
├── mcp_eregistrations_ds/ # DS (read-only monitoring)
├── mcp_eregistrations_gdb/ # GDB (databases)
├── mcp_eregistrations_keycloak/ # Keycloak admin API
├── mcp_eregistrations_translations/ # Translations — authoring + governance
└── mcp_eregistrations_graylog/ # Graylog logs
tests/ # pytest, mirrored per package
docs/plans/ # design docs and implementation plans
scripts/ # release, ci-local, audit-docstrings
License
Copyright (c) 2025–2026 UN Conference on Trade and Development (UNCTAD) — Division on Investment and Enterprise — Business Facilitation Section.
All rights reserved. See LICENSE.
Part of eRegistrations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_eregistrations-1.21.1.tar.gz.
File metadata
- Download URL: mcp_eregistrations-1.21.1.tar.gz
- Upload date:
- Size: 437.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d27c1b66e40e3977859b5d967d8d3ea2e77bd46d4090f3be171ee360e0eda8b
|
|
| MD5 |
e3124599a99eba70200a5f2875be2aaa
|
|
| BLAKE2b-256 |
79c58a63d4175e32f37d988f259b75b411c38ffaf668b2174b01e8e28d0b788f
|
Provenance
The following attestation bundles were made for mcp_eregistrations-1.21.1.tar.gz:
Publisher:
ci.yml on UNCTAD-eRegistrations/MCP_eRegistrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_eregistrations-1.21.1.tar.gz -
Subject digest:
7d27c1b66e40e3977859b5d967d8d3ea2e77bd46d4090f3be171ee360e0eda8b - Sigstore transparency entry: 1366198291
- Sigstore integration time:
-
Permalink:
UNCTAD-eRegistrations/MCP_eRegistrations@59669ab9f8aaaced03d84e73e698bd22666b1bd7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/UNCTAD-eRegistrations
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@59669ab9f8aaaced03d84e73e698bd22666b1bd7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_eregistrations-1.21.1-py3-none-any.whl.
File metadata
- Download URL: mcp_eregistrations-1.21.1-py3-none-any.whl
- Upload date:
- Size: 566.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eedb9e5fa277ca9af80d2a490be6a6afcac1da12037dd3ab9ddd1934a2d5dabb
|
|
| MD5 |
10ae002ab1fc53dbbc95b5f8290c4b9b
|
|
| BLAKE2b-256 |
5f87da65469330d7a5e5916b2bb459ea5d3e66f815a460e1c7f1b08ba11bb732
|
Provenance
The following attestation bundles were made for mcp_eregistrations-1.21.1-py3-none-any.whl:
Publisher:
ci.yml on UNCTAD-eRegistrations/MCP_eRegistrations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_eregistrations-1.21.1-py3-none-any.whl -
Subject digest:
eedb9e5fa277ca9af80d2a490be6a6afcac1da12037dd3ab9ddd1934a2d5dabb - Sigstore transparency entry: 1366198340
- Sigstore integration time:
-
Permalink:
UNCTAD-eRegistrations/MCP_eRegistrations@59669ab9f8aaaced03d84e73e698bd22666b1bd7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/UNCTAD-eRegistrations
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@59669ab9f8aaaced03d84e73e698bd22666b1bd7 -
Trigger Event:
push
-
Statement type: