S

Swiss Grounding MCP

by soheil1lotfi · io.github.soheil1lotfi/swiss-grounding-mcp

Enables AI assistants to provide authoritative, cited, jurisdiction-correct answers about Switzerland using official federal, cantonal, and municipal sources across multiple languages and topics.

oci Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

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
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-soheil1lotfi-swiss-grounding-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "HOST=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "SGM_OFFLINE=<YOUR_VALUE>",
        "-e",
        "SGM_CACHE_DIR=<YOUR_VALUE>",
        "-e",
        "SGM_LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "SGM_TRANSPORT=<YOUR_VALUE>",
        "-e",
        "SGM_USER_AGENT=<YOUR_VALUE>",
        "-e",
        "SGM_HTTP_TIMEOUT=<YOUR_VALUE>",
        "-e",
        "SGM_MIN_INTERVAL=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_TERMS=<YOUR_VALUE>",
        "-e",
        "SGM_RESPECT_ROBOTS=<YOUR_VALUE>",
        "ghcr.io/gastaan/swiss-grounding-mcp:0.1.1"
      ]
    }
  }
}

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.

NameRequiredDescription
HOST No Same as --transport/--host/--port. Default: 0.0.0.0
PORT No Same as --transport/--host/--port. Default: 8000
SGM_OFFLINE No Serve from cache only, never hit the network. Default: false
SGM_CACHE_DIR No HTTP response cache. Default: ~/.cache/swiss-grounding-mcp
SGM_LOG_LEVEL No Logs go to stderr: one line per tool call (tool, status, bytes, ms) and per upstream fetch. Default: INFO
SGM_TRANSPORT No Same as --transport/--host/--port. Default: stdio
SGM_USER_AGENT No Sent with every request. Default: browser-compatible string identifying SwissGroundingMCP/<version> (+repo URL)
SGM_HTTP_TIMEOUT No Seconds per upstream request. Default: 15
SGM_MIN_INTERVAL No Minimum seconds between requests to the same host. Default: 0.5
SGM_RESPECT_TERMS No Only use sources whose terms allow automated access (e.g. zefix.ch's web backend is not used; the official UID web service is). Default: true
SGM_RESPECT_ROBOTS No Respect robots.txt of every website fetched (RFC 9309, via Protego). Set `false` to disable. Default: true

Similar servers