bowtie-mcp

v0.3.0
bowtie-mcp Checked 2 days ago Published 2 days ago

MCP server for Bowtie: deploy a controller in your own cloud, connect a computer, and manage who can reach what

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

health_check

Check that the Bowtie controller is reachable and responding. Use this first to verify connectivity before running other tools.

list_users

List all users in the Bowtie organization. Returns a map of user IDs to user objects with name, email, role, and status. Use this to find user IDs needed by other tools.

get_user

Get details for a specific user by their UUID. Returns name, email, role (Owner/FullAdministrator/LimitedAdministrator/User), status, and permissions.

ParameterTypeDescription
user_id *string

get_current_user

Get information about the currently authenticated user and their devices. Useful for verifying who you're acting as.

list_user_groups

List all user groups. Returns a map of group IDs to group objects. User groups are used in policy source predicates to control which users can access resources.

get_user_group

Get a user group by ID, including its name and metadata.

ParameterTypeDescription
group_id *string

list_users_in_group

List all user IDs that are members of a specific user group.

ParameterTypeDescription
group_id *string

get_device

Get full details for a specific device including its state, assigned user, OS, last seen time, IPv4/IPv6 addresses, and posture information.

ParameterTypeDescription
device_id *string

get_auth_decisions

List pre-configured device auth decisions (pre-approvals or pre-rejections by serial number). Useful for MDM workflows where devices are approved before they first check in.

get_device_group

Get a device group by ID. Device groups are used in policy source predicates to control which devices can access resources.

ParameterTypeDescription
group_id *string

list_devices_in_group

List all devices that are members of a specific device group.

ParameterTypeDescription
group_id *string

get_policy

Get the complete network policy document. Returns three sections: - resources: network objects (IP/CIDR/DNS targets with protocol and ports) - resource_groups: named groups of resources used as policy destinations - policies: rules mapping source (who) to destination (what) with an action (Accept/Reject/Drop) This is the core of Bowtie's zero-trust model. Read this first when auditing or troubleshooting access.

list_dns_configs

List all DNS configurations. DNS configs define how Bowtie resolves internal domain names, including upstream servers, DNS64 strategy, resolver strategy (overlay/exclusive/drop), and site bindings.

get_dns_config

Get a specific DNS configuration by ID.

ParameterTypeDescription
dns_id *string

get_organization

Get organization details including name, domain, DNS configs, IPv6 ranges, and sites. This is the top-level view of your Bowtie deployment.

get_org_config

Get the organization configuration including device approval settings, session timeouts, telemetry preferences, version strategy, and security settings.

list_sites

List all sites. A site represents a physical or virtual location (e.g., an office or VPC) with its own controllers and routable IP ranges.

get_site

Get details for a specific site by ID.

ParameterTypeDescription
site_id *string

list_collections

List all collections. Collections are named groups of network locations (IPs, CIDRs, DNS names) that can be referenced by resources, route exclusions, and other objects.

get_collection

Get a collection by ID, including all its members (network locations).

ParameterTypeDescription
collection_id *string

list_dns_block_lists

List all DNS block lists configured in the organization. Block lists prevent resolution of known-bad domains.

list_threat_categories

List all threat intelligence categories with their enabled/disabled state. Categories group domains by threat type (malware, phishing, etc.).

categorize_domain

Check which threat categories a domain belongs to. Walks parent domains, so sub.malware.example.com also matches example.com.

ParameterTypeDescription
domain *string

get_threat_feed_config

Get the current threat feed configuration including sync interval, last sync status, and whether block event logging is enabled.

list_api_keys

List all API keys in the organization. Shows key name, permissions, creation date, and last used info.

list_controllers

List all controllers in the Bowtie cluster. Controllers are the enforcement points that handle WireGuard tunnels, DNS, and policy evaluation.

get_controller

Get details for a specific controller including its status, public address, version, features, and site assignment.

ParameterTypeDescription
controller_id *string

list_route_exclusions

List all route exclusions. Route exclusions define CIDRs that should bypass the Bowtie tunnel, typically for local network or split-tunnel scenarios.

get_verdict_logging_status

Check which controllers have policy verdict logging enabled. Verdict logging must be enabled per-controller before verdict logs will appear in queries. Returns the status of each controller. If logging is not enabled, the admin needs to enable track_policy_verdict_logs on each controller via the Bowtie UI or API before traffic analysis tools will return data.

query_verdict_logs

Query policy verdict logs over a time range. Returns raw firewall decisions showing what traffic was accepted, rejected, or dropped and why. Requires track_policy_verdict_logs to be enabled on the controller. Args: start: Start time — RFC3339 (e.g., "2026-04-06T00:00:00Z") or relative (e.g., "7d" for 7 days ago). end: End time — RFC3339 or "now". device_id: Filter to a specific device UUID. user_id: Filter to a specific user UUID. verdict: Filter by verdict: "Accept", "Reject", or "Drop". destination: Filter by destination IP or…

ParameterTypeDescription
end *string
start *string
destination
device_id
limitinteger
protocol
user_id
verdict

get_verdict_summary

Get an aggregated summary of policy verdicts over a time range. Groups traffic by destination, verdict, device, and user to identify patterns. Use this to understand traffic flows before creating or modifying policies. Particularly useful for finding: - Frequently dropped traffic that may need a new Allow policy - Overly broad Accept rules that could be tightened - Unusual traffic patterns from specific devices Args: start: Start time — RFC3339 or relative (e.g., "7d", "24h"). end: End time — RFC3339 or "now". limit: Max raw entries to…

ParameterTypeDescription
end *string
start *string
limitinteger

query_dns_logs

Query DNS block/audit logs over a time range. Shows DNS queries that were blocked by threat categories or block lists, including the domain, category, and which device/user triggered it. Args: start: Start time — RFC3339 or relative (e.g., "7d", "24h"). end: End time — RFC3339 or "now". domain: Filter by domain name substring. device_id: Filter to a specific device UUID. category: Filter by threat category (e.g., "malware/callhome"). limit: Max entries to return (default 500).

ParameterTypeDescription
end *string
start *string
category
device_id
domain
limitinteger

upsert_user

Create or update a user. Provide user_id to update an existing user. Returns a change_id; nothing changes until apply_change. Args: name: The user's display name. email: Email address (used for login with password auth). role: One of Owner, FullAdministrator, LimitedAdministrator, User. status: One of Active, Disabled. user_id: UUID to update an existing user; omit to create a new one. username: Optional login username.

ParameterTypeDescription
name *string
email
role
status
user_id
username

delete_user

Delete a user by ID. The user must be Disabled first. Only Owner or FullAdministrator roles can delete users. Returns a change_id; nothing changes until apply_change. Args: user_id: UUID of the user to delete.

ParameterTypeDescription
user_id *string

delete_device

Delete a rejected device for cleanup after decommissioning. The device must be in 'rejected' state first. Returns a change_id; nothing changes until apply_change. Args: device_id: UUID of the device to delete.

ParameterTypeDescription
device_id *string

assign_device

Assign or reassign a device to a user. This normally happens at authentication time, but admins can override it here. Controllers are refused. Returns a change_id; nothing changes until apply_change. Args: device_id: The device to assign. user_id: The user UUID to assign to. Omit to unassign.

ParameterTypeDescription
device_id *string
user_id

update_auth_decisions

Create or update device auth decisions (pre-approve or pre-reject by serial number). Each decision needs: serial (string), enforce_state ('accepted'/'rejected'/'retain'). Use this for MDM integration — approve devices by serial before they check in. Returns a change_id; nothing changes until apply_change. Args: decisions: List of {serial, enforce_state} dicts. Optionally include device_id.

ParameterTypeDescription
decisions *array

upsert_device_group

Create or update a device group. Device groups are used in policy source predicates to control access by device membership. Returns a change_id; nothing changes until apply_change. Args: name: Human-readable group name. group_id: UUID to update an existing group; omit to create. description: Optional group description.

ParameterTypeDescription
name *string
description
group_id

add_devices_to_group

Add devices to a device group. Returns a change_id; nothing changes until apply_change. Args: group_id: The group to add devices to. device_ids: List of device UUIDs to add.

ParameterTypeDescription
device_ids *array
group_id *string

remove_devices_from_group

Remove devices from a device group. Returns a change_id; nothing changes until apply_change. Args: group_id: The group to remove devices from. device_ids: List of device UUIDs to remove.

ParameterTypeDescription
device_ids *array
group_id *string

delete_device_group

Delete a device group. Policies referencing this group will need to be updated. Returns a change_id; nothing changes until apply_change. Args: group_id: UUID of the group to delete.

ParameterTypeDescription
group_id *string

upsert_dns_config

Create or update a DNS configuration for an internal domain. Returns a change_id; nothing changes until apply_change. Args: name: The domain name (e.g., "internal.example.com"). server_addrs: List of upstream DNS server IPs (e.g., ["10.0.0.53", "10.0.0.54"]). strategy_resolver: How Bowtie resolves this domain: - "overlay" — resolve via both Bowtie and system DNS, prefer Bowtie - "exclusive" — only resolve via Bowtie's configured servers - "drop" — block all resolution for this domain strategy_dns64: DNS64 behavi…

ParameterTypeDescription
name *string
server_addrs *array
dns_id
include_only_site_ids
is_logboolean
is_search_domainboolean
strategy_dns64string
strategy_resolverstring

delete_dns_config

Delete a DNS configuration. Returns a change_id; nothing changes until apply_change. Args: dns_id: UUID of the DNS config to delete.

ParameterTypeDescription
dns_id *string

upsert_collection

Create or update a collection. Collections group network locations (IPs, CIDRs, DNS names) for use in resources and route exclusions. Returns a change_id; nothing changes until apply_change. Args: name: Human-readable collection name. description: Optional description. collection_id: UUID to update existing; omit to create new.

ParameterTypeDescription
name *string
collection_id
descriptionstring

add_collection_members

Add members (network locations) to a collection. Returns a change_id; nothing changes until apply_change. Each member needs: name, comment, location ({type, value}). Location types: ip, cidr, dns, collection. Example member: {"id": "auto-generated", "name": "Web Server", "comment": "", "location": {"type": "ip", "value": "10.0.1.5"}} Args: collection_id: The collection to add members to. members: List of member objects. IDs will be auto-generated if missing.

ParameterTypeDescription
collection_id *string
members *array

remove_collection_members

Remove members from a collection by their IDs. Returns a change_id; nothing changes until apply_change. Args: collection_id: The collection to remove members from. member_ids: List of member UUIDs to remove.

ParameterTypeDescription
collection_id *string
member_ids *array

delete_collection

Delete a collection. Resources referencing it will need to be updated. Returns a change_id; nothing changes until apply_change. Args: collection_id: UUID of the collection to delete.

ParameterTypeDescription
collection_id *string

upsert_dns_block_list

Create or update a DNS block list. Returns a change_id; nothing changes until apply_change. Args: name: Block list name. upstream: URL to fetch the block list from (e.g., a community hosts file). contents: Inline block list content (domain list). Use instead of upstream. block_list_id: UUID to update existing; omit to create new. override_to_allow: Domains to allow even if on the list.

ParameterTypeDescription
name *string
block_list_id
contents
override_to_allow
upstream

delete_dns_block_list

Delete a DNS block list. Returns a change_id; nothing changes until apply_change. Args: block_list_id: UUID of the block list to delete.

ParameterTypeDescription
block_list_id *string

toggle_threat_category

Enable or disable a threat intelligence category by its source_path (e.g., "malware/callhome", "illegal/phishing"). Returns a change_id; nothing changes until apply_change. Args: source_path: The category identifier (from list_threat_categories). enabled: True to enable blocking, False to disable.

ParameterTypeDescription
enabled *boolean
source_path *string

activate_threat_intel

Activate Bowtie Threat Intel. Creates category entities, enables the feed, and kicks off a background sync. Returns a change_id; nothing changes until apply_change.

deactivate_threat_intel

Deactivate Bowtie Threat Intel. Returns a change_id; nothing changes until apply_change.

upsert_route_exclusion

Create or update a route exclusion. Route exclusions define CIDRs (via a collection) that bypass the Bowtie tunnel. Returns a change_id; nothing changes until apply_change. Args: name: Human-readable name for the exclusion. collection_id: Collection containing the CIDRs to exclude. exclusion_id: UUID to update existing; omit to create new.

ParameterTypeDescription
collection_id *string
name *string
exclusion_id

delete_route_exclusion

Delete a route exclusion. Returns a change_id; nothing changes until apply_change. Args: exclusion_id: UUID of the route exclusion to delete.

ParameterTypeDescription
exclusion_id *string

list_rules

The access rules in force, in the order they are checked, with the destinations and resources they refer to, in plain words. `deployment` is only needed when more than one controller is set up.

ParameterTypeDescription
deploymentstring

list_people

Users and user groups on the controller, with each user's role and status.

ParameterTypeDescription
deploymentstring

list_devices

Devices known to the controller, summarised: name, state, operating system, owner, last seen, and whether it is a controller. state_filter may be "pending", "accepted" or "rejected"; pending devices are waiting for approval. get_device has everything about one device.

ParameterTypeDescription
deploymentstring
state_filterstring

check_access

Ask the controller how it would treat a connection under the rules as they stand now. `who` is {"user": email}, {"user_group": name} or {"device": name or id}. `destination` is an IP address or DNS name.

ParameterTypeDescription
destination *string
who *object
deploymentstring
portinteger
protocolstring

propose_change

Check a set of access changes and show exactly what they would do. Changes nothing. Returns a change_id for apply_change. Each change is an object with "kind" and "op": {"kind":"resource","op":"upsert","name":"Git server","protocol":"tcp", "location":"10.0.4.12" | "10.0.0.0/16" | "git.example.com" | {"collection":"name or id"}, "ports":[22,443] | "8000-8100" | "all"} {"kind":"resource_group","op":"upsert","name":"Engineering tools","resources":["Git server"]} {"kind":"policy","op":"upsert","who":{"user_group":"Engineering"},"to":"Engineering tools","action":"Accept"} {"kind":"us…

ParameterTypeDescription
changes *array
deploymentstring
reasonstring

apply_change

Carry out a change the user has seen and agreed to. `change_id` comes from propose_change or from any other tool that returned one. A set of rule changes is refused if the controller's state has changed since it was proposed.

ParameterTypeDescription
change_id *string
deploymentstring

recent_changes

Changes made through these tools, newest last. Kept on this computer; the controller keeps no record of rule edits itself.

ParameterTypeDescription
deploymentstring
limitinteger

check_prerequisites

Read-only check before planning a deployment: which cloud account the user's credentials reach, the newest controller version and the default network. `cloud` is "aws" or "gcp". `region` is the cloud's own name for it, such as us-west-2 (AWS) or us-west1 (Google Cloud). `cloud_account` is optional: an AWS profile name, or a Google Cloud project id.

ParameterTypeDescription
cloud *string
cloud_accountstring
regionstring

plan_deployment

Work out what deploying a controller would create and cost. Creates nothing. `name` is a short label for this deployment (lowercase letters, digits, dashes). `admin_email` becomes the first admin. Naming, pick one. Default: `hostname`, the DNS name the controller will answer on, in a domain the user controls; nothing about the deployment is registered with Bowtie. Only if the user has no domain to use, or asks for the quickest start: `bowtie_direct=true` with `org_name`, and Bowtie assigns a name like bt0.<org>-1234.bowtie.direct. That option sends the hostname, public IP and organization nam…

ParameterTypeDescription
admin_email *string
cloud *string
name *string
bowtie_directboolean
cloud_accountstring
hostnamestring
instance_typestring
org_namestring
regionstring
starter_accessboolean
subnetstring
telemetryboolean

apply_deployment

Create the cloud resources from a plan the user has agreed to: this costs money. Returns within about a minute; the controller then takes a few more minutes to start. Follow it with deployment_status.

ParameterTypeDescription
name *string

deployment_status

Where a deployment stands, and what to do next. Also moves it forward: launches once DNS is in place, and configures the controller the first time it answers. Pass wait_seconds (up to 50) to wait for progress.

ParameterTypeDescription
name *string
wait_secondsinteger

deployment_console

The last lines the controller's instance wrote to its serial console. For working out why a boot is stuck; not needed in a normal deployment.

ParameterTypeDescription
name *string
linesinteger

list_deployments

Deployments this computer knows about, with their cloud, phase and hostname. A deployment is a controller these tools deployed, or one attached with `bowtie-mcp connect`.

destroy_deployment

Permanently delete a deployment's cloud resources (instance, address, firewall rule, the DNS record it created) and its local records. The controller and everything configured on it are gone for good. Get the user's explicit agreement first; confirm_name must repeat the name.

ParameterTypeDescription
confirm_name *string
name *string

install_client

Download the newest Bowtie client for this computer, check it against its published checksum, point it at the deployment's controller and install it. The operating system asks the user for admin rights. If this computer is already set up for a different controller nothing is changed: a client belongs to one organization at a time. `headless` picks the Linux package with no desktop tray.

ParameterTypeDescription
name *string
headlessboolean

enroll_this_device

Approve this computer on the controller and assign it to the admin, so the tunnel comes up without anyone opening the web console.

ParameterTypeDescription
name *string
wait_secondsinteger