Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-malkreide-register-mcp": {
"command": "uvx",
"args": [
"register-mcp"
],
"env": {
"PORT": "8000",
"LOG_LEVEL": "INFO",
"MCP_API_KEY": "<VALUE>",
"MCP_TRANSPORT": "stdio",
"MCP_RATE_LIMIT": "60",
"LEGAL_FORMS_TTL": "86400",
"MCP_RATE_WINDOW": "60",
"MCP_ALLOWED_HOSTS": "www.zefix.admin.ch",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| PORT | No | Port to listen on for SSE mode (only used when MCP_TRANSPORT=sse). Default: 8000 |
| LOG_LEVEL | No | Logging verbosity level (e.g., DEBUG, INFO, WARNING). Default: INFO |
| MCP_API_KEY | No | Bearer token for SSE mode. Required when MCP_TRANSPORT is set to 'sse'. |
| MCP_TRANSPORT | No | Transport mode. Set to 'sse' for cloud deployment. Default is 'stdio'. Default: stdio |
| MCP_RATE_LIMIT | No | Maximum number of requests per rate limit window. Default: 60 |
| LEGAL_FORMS_TTL | No | TTL in seconds for caching legal forms from Zefix. Default: 86400 |
| MCP_RATE_WINDOW | No | Rate limit window in seconds. Default: 60 |
| MCP_ALLOWED_HOSTS | No | Comma-separated list of allowed outbound HTTP hosts. Default: www.zefix.admin.ch |
| OTEL_EXPORTER_OTLP_ENDPOINT | No | OpenTelemetry OTLP endpoint URL (e.g., http://otel-collector:4318/v1/traces). |