Skip to main content
Glama

mullvad-mcp

Claude Desktop, Cursor, Windsurf 등 모든 MCP 호환 클라이언트를 통해 Mullvad VPN을 제어하기 위한 MCP(Model Context Protocol) 서버입니다.

모든 VPN 상호작용은 mullvad CLI를 통해 이루어집니다. 직접적인 API 호출, 설정 파일 파싱, 자격 증명이 필요하지 않습니다.

사전 요구 사항

  • Mullvad VPN 앱이 설치되어 있고 PATH에 CLI가 포함되어 있어야 합니다.

  • Python 3.11+

  • uv 패키지 관리자 — uv 설치

Related MCP server: Proton-MCP

설치

git clone https://github.com/your-username/mullvad-mcp.git
cd mullvad-mcp
uv sync

클라이언트 설정

Claude Desktop

~/.config/claude-desktop/claude_desktop_config.json(Linux) 또는 ~/Library/Application Support/Claude/claude_desktop_config.json(macOS)에 추가하세요:

{
  "mcpServers": {
    "mullvad": {
      "command": "uv",
      "args": ["--directory", "/path/to/mullvad-mcp", "run", "mullvad-mcp"]
    }
  }
}

Cursor

프로젝트의 .cursor/mcp.json 또는 전역 ~/.cursor/mcp.json에 추가하세요:

{
  "mcpServers": {
    "mullvad": {
      "command": "uv",
      "args": ["--directory", "/path/to/mullvad-mcp", "run", "mullvad-mcp"]
    }
  }
}

일반 MCP 클라이언트 (stdio)

{
  "mcpServers": {
    "mullvad": {
      "command": "uv",
      "args": ["--directory", "/path/to/mullvad-mcp", "run", "mullvad-mcp"],
      "transport": "stdio"
    }
  }
}

사용 가능한 도구

연결 제어

도구

설명

connect

VPN에 연결 (국가/도시/호스트 이름 선택 가능)

disconnect

VPN 연결 해제

reconnect

재연결 (새 위치 선택 가능)

상태 및 진단

도구

설명

get_status

현재 연결 상태, 서버, 프로토콜, IP 확인

check_leak

am.i.mullvad.net을 쿼리하여 VPN 보호 상태 확인

서버 선택

도구

설명

list_countries

서버 수와 함께 사용 가능한 모든 국가 나열

list_cities

특정 국가의 도시 나열

list_servers

필터(국가, 도시, owned_only)를 적용한 서버 나열

set_location

국가, 도시 또는 호스트 이름으로 선호 위치 설정

계정 관리

도구

설명

get_account_info

마스킹된 계정 번호, 만료 날짜 확인

get_device_info

계정에 등록된 장치 확인

설정

도구

설명

get_settings

모든 현재 설정을 구조화된 객체로 가져오기

set_killswitch

락다운 모드 활성화/비활성화

set_daita

DAITA(트래픽 분석 방어) 활성화/비활성화

set_multihop

멀티홉 활성화/비활성화 (선택적 진입 위치 포함)

set_dns

DNS 설정: 기본값(차단 옵션 포함) 또는 사용자 지정 IP

set_protocol

WireGuard 옵션 구성 (양자 저항, IPv6)

set_obfuscation

검열 방지 모드 설정 (auto/off/udp2tcp/shadowsocks 등)

상호작용 예시

연결

"스웨덴에 연결해 줘"

→ connect(country="se") 호출 — 릴레이를 스웨덴으로 설정하고 연결합니다.

상태 확인

"누출이 있나요?"

→ check_leak() 호출 — am.i.mullvad.net을 쿼리하여 트래픽이 Mullvad를 통해 나가는지 보고합니다.

서버 선택

"독일에서 이용 가능한 도시는 어디인가요?"

→ list_cities(country="de") 호출 — 서버 수와 함께 베를린, 프랑크푸르트 등을 반환합니다.

설정

"킬 스위치를 켜고 광고를 차단해 줘"

→ set_killswitch(enabled=True) 호출 후 set_dns(block_ads=True) 호출.

환경 변수

변수

기본값

설명

MULLVAD_CLI_PATH

자동 감지

mullvad 바이너리 경로 재정의

MULLVAD_CLI_TIMEOUT

10

CLI 명령 시간 제한 (초)

작동 원리

모든 도구는 하위 프로세스를 통해 mullvad CLI를 호출합니다. CLI가 인증을 기본적으로 처리하므로 API 키나 비밀 정보가 필요하지 않습니다. 출력은 LLM이 결과를 추론할 수 있도록 구조화된 딕셔너리로 파싱됩니다.

리소스

라이선스

MIT

Available Tools

18 tools
check_leakA

Check if your connection is protected by Mullvad VPN.

Queries am.i.mullvad.net to verify whether traffic exits through a Mullvad server. Use this to confirm the VPN is working correctly.

Returns: Dict with your visible IP, country, city, whether traffic exits through a Mullvad server, the exit hostname, and a leak_detected boolean (True means traffic is NOT going through Mullvad).

Inputs: no named parameters. Returns: object

connectA

Connect to Mullvad VPN.

Optionally set the relay location before connecting. If no location parameters are provided, connects using the currently configured relay.

Args: country: Two-letter country code (e.g. "se", "us"). city: Three-letter city code (e.g. "got", "nyc"). hostname: Specific server hostname (e.g. "se-got-wg-004").

Returns: Current VPN status after the connect attempt, including connection state, relay hostname, country, city, and IP addresses.

Inputs: country, city, hostname. Returns: object

disconnectA

Disconnect from Mullvad VPN.

Idempotent — returns current status even if already disconnected.

Returns: Current VPN status after the disconnect attempt.

Inputs: no named parameters. Returns: object

get_account_infoA

Get Mullvad account information.

Returns: Dict with masked account number (last 4 digits visible), expiry date, and device name.

Inputs: no named parameters. Returns: object

get_device_infoA

Get information about devices registered to the Mullvad account.

Returns: Dict with a devices list of device names registered on the account.

Inputs: no named parameters. Returns: object

get_settingsA

Get all current Mullvad VPN settings as a structured object.

Returns: Dict with keys: killswitch, dns, tunnel, relay, and anti_censorship, each containing the relevant settings.

Inputs: no named parameters. Returns: object

get_statusA

Get current Mullvad VPN connection status.

Returns: Dict with connection state, relay details, protocol, IP addresses, country, city, and whether traffic is locked down.

Inputs: no named parameters. Returns: object

list_citiesA

List available cities for a given country.

Args: country: Two-letter country code (e.g. "se", "us", "de").

Returns: Dict with a cities key containing a list of dicts, each with name, code, coordinates, and server_count.

Inputs: country (required). Returns: object

list_countriesA

List all available Mullvad VPN countries with server counts.

Returns: Dict with a countries key containing a list of dicts, each with name, code, city_count, and server_count.

Inputs: no named parameters. Returns: object

list_serversA

List available Mullvad VPN servers with optional filters.

Args: country: Filter by two-letter country code (e.g. "se"). city: Filter by three-letter city code (e.g. "got"). Requires country to also be set. owned_only: If True, only show Mullvad-owned servers.

Returns: Dict with a servers key containing a list of server dicts, each with hostname, country, city, ips, provider, ownership, and protocol.

Inputs: country, city, owned_only. Returns: object

reconnectA

Reconnect to Mullvad VPN.

Disconnects and reconnects, optionally to a new relay location.

Args: country: Two-letter country code (e.g. "se", "us"). city: Three-letter city code (e.g. "got", "nyc"). hostname: Specific server hostname (e.g. "se-got-wg-004").

Returns: Current VPN status after the reconnect attempt.

Inputs: country, city, hostname. Returns: object

set_daitaA

Enable or disable DAITA (Defence Against AI-guided Traffic Analysis).

DAITA adds padding to WireGuard traffic to defeat traffic analysis.

Args: enabled: True to enable, False to disable.

Returns: Current tunnel settings after the change.

Inputs: enabled (required). Returns: object

set_dnsA

Configure DNS settings.

Args: mode: "default" for Mullvad DNS (with optional blocking), or "custom" to use your own DNS servers. servers: List of DNS server IPs when mode is "custom". block_ads: Block ad domains (default DNS mode only). block_trackers: Block tracker domains (default DNS mode only). block_malware: Block malware domains (default DNS mode only). block_adult_content: Block adult content domains (default DNS mode only). block_gambling: Block gambling domains (default DNS mode only). block_social_media: Block social media domains (default DNS mode only).

Returns: Current DNS settings after the change.

Inputs: mode, servers, block_ads, block_trackers, +4 more. Returns: object

set_killswitchA

Enable or disable the kill switch (lockdown mode).

When enabled, all network traffic is blocked unless the VPN is connected.

Args: enabled: True to enable, False to disable.

Returns: Dict with enabled boolean confirming the new state.

Inputs: enabled (required). Returns: object

set_locationA

Set preferred VPN connection location.

Args: country: Two-letter country code (e.g. "se") or "any" for automatic. city: Three-letter city code (e.g. "got"). hostname: Specific server hostname (e.g. "se-got-wg-004").

Returns: Current relay constraints after the change.

Inputs: country (required), city, hostname. Returns: object

set_multihopB

Enable or disable multihop (chained VPN connections).

When enabled, traffic is routed through an entry server before reaching the exit server, adding an extra layer of privacy.

Args: enabled: True to enable, False to disable. entry_country: Two-letter country code for the entry server. entry_city: Three-letter city code for the entry server.

Returns: Current relay constraints after the change.

Inputs: enabled (required), entry_country, entry_city. Returns: object

set_obfuscationA

Set anti-censorship / obfuscation mode.

Controls how Mullvad disguises VPN traffic to bypass censorship.

Args: mode: One of "auto", "off", "wireguard-port", "udp2tcp", "shadowsocks", "quic", or "lwo".

Returns: Current anti-censorship settings after the change.

Inputs: mode (required). Returns: object

set_protocolA

Configure WireGuard tunnel protocol options.

Note: Mullvad CLI 2026.1 is WireGuard-only. This tool configures WireGuard-specific options like quantum resistance and IPv6.

Args: quantum_resistant: Enable quantum-resistant key exchange ("on" or "off"). ipv6: Enable IPv6 in the tunnel ("on" or "off").

Returns: Current tunnel settings after the change.

Inputs: quantum_resistant, ipv6. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 18 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of VPN management: connection, settings, status, info, and listings. There is no overlap in functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores, making them predictable and easy to understand. Examples include check_leak, get_status, set_dns, list_countries.

    Tool Count4/5

    18 tools is slightly above the ideal range of 3-15, but each tool covers a necessary function for a comprehensive VPN configuration surface, so the count is still reasonable.

    Completeness4/5

    The set covers core VPN operations (connect, disconnect, status, settings) and advanced features (DAITA, multihop, obfuscation). Minor gaps like account login/logout or device management are not critical for the primary use case.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers