bowtie-mcp
v0.3.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
group_id * | string |
list_users_in_group
List all user IDs that are members of a specific user group.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
group_id * | string |
list_devices_in_group
List all devices that are members of a specific device group.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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).
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
end * | string | |
start * | string | |
destination | ||
device_id | ||
limit | integer | |
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…
| Parameter | Type | Description |
|---|---|---|
end * | string | |
start * | string | |
limit | integer |
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).
| Parameter | Type | Description |
|---|---|---|
end * | string | |
start * | string | |
category | ||
device_id | ||
domain | ||
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
name * | string | |
server_addrs * | array | |
dns_id | ||
include_only_site_ids | ||
is_log | boolean | |
is_search_domain | boolean | |
strategy_dns64 | string | |
strategy_resolver | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
collection_id | ||
description | string |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
deployment | string |
list_people
Users and user groups on the controller, with each user's role and status.
| Parameter | Type | Description |
|---|---|---|
deployment | string |
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.
| Parameter | Type | Description |
|---|---|---|
deployment | string | |
state_filter | string |
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.
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
who * | object | |
deployment | string | |
port | integer | |
protocol | string |
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…
| Parameter | Type | Description |
|---|---|---|
changes * | array | |
deployment | string | |
reason | string |
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.
| Parameter | Type | Description |
|---|---|---|
change_id * | string | |
deployment | string |
recent_changes
Changes made through these tools, newest last. Kept on this computer; the controller keeps no record of rule edits itself.
| Parameter | Type | Description |
|---|---|---|
deployment | string | |
limit | integer |
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.
| Parameter | Type | Description |
|---|---|---|
cloud * | string | |
cloud_account | string | |
region | string |
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…
| Parameter | Type | Description |
|---|---|---|
admin_email * | string | |
cloud * | string | |
name * | string | |
bowtie_direct | boolean | |
cloud_account | string | |
hostname | string | |
instance_type | string | |
org_name | string | |
region | string | |
starter_access | boolean | |
subnet | string | |
telemetry | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
wait_seconds | integer |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
lines | integer |
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.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
headless | boolean |
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.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
wait_seconds | integer |