Register Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Register Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide)
MCP Server for the Swiss Federal Commercial Register (Zefix/Handelsregister) and supporting reference data
register-mcp provides AI-native access to the Swiss Federal Commercial Register via the Zefix REST API, all without authentication:
| Source | Data | API |
|---|---|---|
| Zefix (Handelsregister) | Swiss companies, legal forms, SHAB mutations | ZefixREST v1 |
| SHAB | Official Gazette of Commerce — mutation publications | Embedded in Zefix |
Designed for Swiss public administration use cases: vendor verification, contract partner due diligence, procurement screening, and supplier onboarding — all via natural language queries.
Anchor demo query: "We want to sign a framework agreement with Lehrmittelverlag Zürich AG. Is the company active in the commercial register, what is its stated corporate purpose, and have there been any SHAB mutations in the past two years?"
# Clone the repository
git clone https://github.com/malkreide/register-mcp.git
cd register-mcp
# Install
pip install -e .
# or with uv:
uv pip install -e .Or with uvx (no permanent installation):
uvx register-mcp# stdio (for Claude Desktop)
python -m register_mcp.server
# SSE (cloud deployment) — MCP_API_KEY is REQUIRED
MCP_API_KEY=$(openssl rand -hex 32) MCP_TRANSPORT=sse PORT=8000 \
python -m register_mcp.serverWhen running with MCP_TRANSPORT=sse, the server enforces:
MCP_API_KEY to a secret string. Clients must sendAuthorization: Bearer <key> on every request. Missing or wrong → HTTP 401. The server refuses to start without MCP_API_KEY set.
Tunable via MCP_RATE_LIMIT and MCP_RATE_WINDOW. Exceeding the limit returns HTTP 429 with Retry-After.
tool, status, latency_ms. Auth failures and rate-limit events are logged at WARNING level. Configure verbosity with LOG_LEVEL (default INFO).
(LEGAL_FORMS_TTL seconds) to avoid an extra upstream call per tool invocation.
www.zefix.admin.chvia an httpx request hook that also fires on redirects. A Location header pointing elsewhere raises EgressDenied and is never followed. Override with MCP_ALLOWED_HOSTS=host1,host2 (comma-separated, lower-case).
pip install register-mcp[otel]and set OTEL_EXPORTER_OTLP_ENDPOINT (e.g. http://otel-collector:4318/v1/traces). Without the extra or without the env var the server stays silent — no hard dependency on the OTel SDK.
For multi-instance deployments, place a real gateway (Cloudflare, Railway internal networking, an API-Gateway with Redis-backed rate limiting) in front of the in-memory limiter, which is per-process by design.
A minimal multi-stage Dockerfile ships with the repo. The image runs as a non-root mcp user; dependencies are resolved from uv.lock (uv sync --frozen), so the build is reproducible.
docker build -t register-mcp:local .
docker run --rm -p 8000:8000 \
-e MCP_TRANSPORT=sse \
-e MCP_API_KEY="$(openssl rand -hex 32)" \
register-mcp:localFor local iteration there is a compose.yaml with read_only, cap_drop: ALL and no-new-privileges:
MCP_API_KEY=$(openssl rand -hex 32) docker compose up --buildSee SECURITY.md for hardening notes (egress restriction, key rotation, SIEM forwarding).
Try it immediately in Claude Desktop:
"Is Lehrmittelverlag Zürich AG active in the commercial register?" "Look up the company with UID CHE-108.954.978" "List all Swiss legal forms"
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"register": {
"command": "python",
"args": ["-m", "register_mcp.server"]
}
}
}Or with uvx:
{
"mcpServers": {
"register": {
"command": "uvx",
"args": ["register-mcp"]
}
}
}Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonFor use via claude.ai in the browser (e.g. on managed workstations without local software):
Render.com (recommended):
python -m register_mcp.server --http --port 8000https://your-app.onrender.com/sse💡 "stdio for the developer laptop, SSE for the browser."
| Tool | Description |
|---|---|
zefix_search_companies | Search companies by name, canton, legal form |
zefix_get_company | Full company profile by internal EHRAID |
zefix_get_company_by_uid | Company lookup by UID (CHE-xxx.xxx.xxx) |
zefix_verify_company | Quick active/dissolved status check |
zefix_list_legal_forms | All Swiss legal forms with IDs |
zefix_list_municipalities | Swiss municipalities with BFS IDs |
| Query | Tool |
|---|---|
| "Is Lehrmittelverlag Zürich AG active?" | zefix_verify_company |
| "Look up CHE-108.954.978" | zefix_get_company_by_uid |
| "Find companies named Migros in canton ZH" | zefix_search_companies |
| "List all Swiss legal forms" | zefix_list_legal_forms |
| "Show municipalities in canton Bern" | zefix_list_municipalities |
┌─────────────────┐ ┌──────────────────────────────┐ ┌──────────────────────────┐
│ Claude / AI │────▶│ register-mcp │────▶│ Zefix (Handelsregister) │
│ (MCP Host) │◀────│ (MCP Server) │◀────│ ZefixREST/api/v1 │
└─────────────────┘ │ │ └──────────────────────────┘
│ 6 Tools │
│ Stdio | SSE │
│ No authentication required │
└──────────────────────────────┘| Source | Protocol | Coverage | Auth |
|---|---|---|---|
| Zefix (Phase 1) | REST/JSON | Swiss companies, legal forms, SHAB | None |
| ZefixPublicREST (Phase 2) | REST/JSON | Signatories, capital, full history | Basic Auth (free) |
| UID Register (Phase 3) | SOAP | MwSt, NOGA codes, cross-validation | Public (20 req/min) |
| Phase | API | Auth | Status |
|---|---|---|---|
| Phase 1 | ZefixREST/api/v1 | None | Current |
| Phase 2 | ZefixPublicREST/api/v1 | Basic Auth (free, email [email protected]) | Planned |
| Phase 3 | UID-Register SOAP | Public (20 req/min) | Planned |
Phase 2 will add: signatory details, share capital, full historical entries. Phase 3 will add: MwSt status, NOGA industry codes, cross-register validation.
register-mcp/
├── src/register_mcp/
│ ├── __init__.py # Package
│ └── server.py # 6 tools (Zefix + reference data)
├── tests/
│ └── test_server.py # Unit + integration tests (mocked HTTP)
├── docs/demo/
│ ├── demo.tape # vhs recording script → demo.gif
│ ├── demo.py # Standalone CLI demo (live Zefix API)
│ └── README.md # How to generate the demo GIF
├── .github/workflows/ci.yml # GitHub Actions (Python 3.11/3.12/3.13)
├── pyproject.toml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md # This file (English)
└── README.de.md # German version<FT TYPE="F">...)| API | Limit | Notes |
|---|---|---|
| ZefixREST (Phase 1) | Not officially documented | Throttling possible under heavy load — retry after 1–2 s |
| ZefixPublicREST (Phase 2) | Not officially documented | Requires prior registration (free) |
| UID-Register SOAP (Phase 3) | 20 req/min | Hard limit, publicly documented |
readOnlyHint: True; the server performs no write, delete, or mutation operations against any APIZEFIX_USER, ZEFIX_PASSWORD) are passed via environment variables only — never hardcodedregister-mcp demo
📽️ Terminal GIF coming soon — see [`docs/demo/`](docs/demo/) to generate it locally with [vhs](https://github.com/charmbracelet/vhs)
Example interaction:
User: "Is Lehrmittelverlag Zürich AG active in the commercial register?"
→ Tool: zefix_verify_company(name="Lehrmittelverlag Zürich AG")
Claude: ✅ Lehrmittelverlag Zürich AG is ACTIVE in the Handelsregister.
UID: CHE-109.741.634 | Canton: ZH | Legal form: AG
Last SHAB mutation: 2024-06-15→ More use cases by audience →
To generate the demo GIF locally:
# Install vhs (macOS/Linux)
brew install vhs # macOS
# or: go install github.com/charmbracelet/vhs@latest
# Generate
vhs docs/demo/demo.tape
# → outputs docs/demo/demo.gif# Unit tests (no API key required)
PYTHONPATH=src pytest tests/ -m "not live"
# Integration tests (live API calls)
pytest tests/ -m "live"See CHANGELOG.md
See CONTRIBUTING.md
MIT License — see LICENSE
Hayal Oezkan · malkreide
<!-- mcp-name: io.github.malkreide/register-mcp -->
<!-- BEGIN GENERATED: install -->
Run via uv's uvx — no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
{
"mcpServers": {
"register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
]
}
}
}<!-- END GENERATED: install -->
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.