Skip to main content Switch to mobile version bowtie-mcp 0.3.0 MCP server for Bowtie: deploy a controller in your own cloud, connect a computer, and manage who can reach what
pip install bowtie-mcp Copy PIP instructions
An MCP server for Bowtie. From Claude Code, Claude Desktop, Cursor or any other MCP client, an AI agent can:
Deploy a Bowtie controller into your own AWS or Google Cloud account.
Connect the computer you are on: install the client and approve the device.
Manage a running controller: access rules, devices, users, DNS, threat intelligence, traffic logs.
It runs on your computer, with your cloud credentials, against your controller. Bowtie hosts no part of it, and the server itself sends Bowtie nothing. What a controller reports to Bowtie is listed under What Bowtie receives.
Run it without installing, using uvx:
uvx bowtie-mcp Or install it:
pip install bowtie-mcp Quick start
claude mcp add bowtie -- uvx bowtie-mcp Claude Desktop, Cursor, Windsurf
Add to claude_desktop_config.json, .cursor/mcp.json or your editor's MCP config:
{ "mcpServers": { "bowtie": { "command": "uvx", "args": ["bowtie-mcp"] } } } Then ask, for example:
"Deploy Bowtie in AWS us-west-2 at bowtie.example.com, admin me@example.com."
"I have no domain handy, use a bowtie.direct name. Org is Acme Rockets."
"Let the Engineering group reach the git server at 10.0.4.12 on 22 and 443."
"Why can't alice@example.com reach the production database?"
"List pending devices and approve the ones that belong to engineering."
"Set up DNS for internal.example.com pointing at 10.0.0.53."
"What traffic was dropped in the last 24 hours?"
Pointing it at a controller
A controller the agent deploys. Nothing to configure. The admin password is generated on your computer and kept in the operating system keychain (a file only you can read where there is no keychain). Print it in your own terminal, outside the agent:
uvx bowtie-mcp show-login A controller you already run. Attach it once. The password is typed at a hidden prompt and goes to the keychain, so it never sits in an agent's configuration file:
uvx bowtie-mcp connect prod --url https://bt0.example.com --email admin@example.com Environment variables, for CI or if you prefer them. This is the same approach as the Bowtie Terraform provider:
claude mcp add bowtie \ -e BOWTIE_HOST="https://bt0.example.com" \ -e BOWTIE_USERNAME="admin@example.com" \ -e BOWTIE_PASSWORD="your-password" \ -- uvx bowtie-mcp With more than one controller, add the server once per controller and set BOWTIE_MCP_DEPLOYMENT (or BOWTIE_HOST) in each entry.
Credentials are used by the local server process. They are never returned to the model: every tool result has secret-looking fields (passwords, keys, tokens, hashes) blanked before it leaves.
Anything that spends money or changes your network is two calls. The first changes nothing and says exactly what would happen. The second carries it out.
So an MCP client can be told to allow everything except four tools, and ask you only for those: apply_deployment, apply_change, destroy_deployment and install_client. Agreeing to a plan covers what the plan lists, including the settings deployment_status makes when the new Controller first answers.
A change can be applied once, only on the Controller and as the user it was made for, only by the running server that prepared it, and only within 30 minutes. Its preview lists every call and every field that will be sent. It is refused if the Controller's rules, users, groups, devices, DNS or sites changed after it was prepared. A plan can be applied only by its own plan_id, so a plan made later cannot be applied in its place, and one deployment runs one operation at a time.
propose_change is the way to change access. It takes names instead of ids, accepts changes in any order, refuses a rule that points at something that does not exist, warns when a change takes access away or opens a very large network, and apply_change refuses to run it if the Controller's rules, users, groups or devices changed in the meantime. Every applied change is written to a record on your computer (recent_changes), because the Controller keeps none for rule edits.
These prompts come from your MCP client. The server cannot see whether a person approved a call, so keep those four tools on "ask every time".
Everything else on the controller
Read — users, user groups, devices, device groups, the raw policy document, DNS configs, organization and its settings, sites, collections, DNS block lists, threat categories, API keys, controllers, route exclusions.
Write (staged for apply_change) — users, device assignment and cleanup, pre-approval by serial number, device groups, DNS configs, collections, DNS block lists, threat intelligence, route exclusions.
Logs — query_verdict_logs, get_verdict_summary, query_dns_logs, get_verdict_logging_status. Verdict logging must be switched on per controller.
Guided workflows (MCP prompts)
Your own domain (default). If the hostname is in a Route 53 or Cloud DNS zone in the same account, the record is created for you. Otherwise you add one A record and the deployment carries on when it resolves. On AWS the controller is set up through its own setup wizard, like the bowtie.direct option below: the wizard checks the name with Bowtie's setup service, and the controller is given a sync key so that Controllers can be added to it later. While setup runs, a few minutes, anyone who can read the instance's console output in your cloud account and can reach it could use its one-time setup key too; these tools check the setup holds only what they gave it before finishing, and stop if not. On Google Cloud it starts unattended, without a sync key.
bowtie.direct (opt-in). No DNS work; Bowtie assigns bt0. -NNNN.bowtie.direct. This sends the hostname, public IP and organization name to Bowtie, and the controller asks api.ipify.org for its own address. The plan says so before anything is created. The first setup steps go only over a connection pinned to the certificate the controller prints on its own console; if the controller does not offer it, setup stops and you are asked to use your own domain. Bowtie's DNS keeps the name after the deployment is removed, so removal asks you to accept that first.
An existing DNS record is never replaced. If the hostname already has an A record pointing somewhere else, the deployment stops and tells you.
Adding a Controller to a deployment
plan_controller plans one more Controller for a cluster that already runs: a second one beside the first in the same site, or one in another region as a new site. It works for a deployment these tools made on AWS, and for one you attached with bowtie-mcp connect, such as a production cluster set up by hand. The new Controller is added on AWS.
The new Controller has to prove itself to the others with the cluster's sync key (BOWTIE_SYNC_PSK). No API returns that key. A deployment these tools make on AWS gets one at first setup, handed to it through its setup wizard and kept on your computer. For an attached cluster, type it once in your own terminal:
uvx bowtie-mcp sync-key prod It is checked with the cluster before it is stored, and it is never shown to the AI agent. Then ask in your own words, for example "add a Controller to prod in AWS eu-central-1 at bowtie-eu.example.com".
The plan reads the cluster first. The new Controller runs the release the cluster runs, joins through one of its Controllers, and gets its own hostname, address and firewall rule in your cloud account. It starts in its setup wizard, the way the web console's join does, with nothing of the cluster's in its start-up data. These tools read its one-time setup key from the instance's console and record the ids and tunnel key it reports. Once its name has a trusted certificate, they give it the sync key there, at its own address. It is approved only if the cluster's record of it carries those same ids and key, before and after approval; a request an admin rejected stays rejected. No other Controller is changed. For a new site, the new Controller's cloud network can be made routable through it. Removing it with destroy_deployment takes out its machine, then the cluster's records that carry its ids, and nothing else. A site's route stays while another Controller is in that site.
During setup the new Controller checks its name with Bowtie's setup service, which sees its hostname and public address, and asks api.ipify.org for its address, as any Controller joined from the web console does. While it waits, the cluster shows a temporary site named "Joining: ", which the new Controller removes once it has joined.
The sync key never goes in start-up data: whoever holds it can act as one of the cluster's Controllers, and start-up data can be read by anyone who can read the instance's settings. On Google Cloud the image's setup wizard did not offer its temporary certificate in tests, so no key can be handed over safely there: deployments on Google Cloud get no sync key, and nothing is added on Google Cloud.
From this server: nothing. The controller image is looked up in your own cloud account. The client installer is an anonymous download. It is installed only if it matches its published SHA-256 and carries Bowtie's own signature (Apple Developer ID, Windows code signing, or Bowtie's Linux release key).
From a controller it deploys: what every Bowtie controller sends by default. The licence check from first boot (organization name, domain, controller address), and usage telemetry: organization and controller details, version and uptime, counts of devices by operating system, users, groups, rules and sites, and network and database health figures. No traffic content. Ask for telemetry off and it is switched off right after boot; one report may go out first.
From a controller set up through its setup wizard (on AWS, and with the bowtie.direct option): its hostname, public IP address and organization name, to Bowtie's setup service while it checks its name, and a request to api.ipify.org for its address. With bowtie.direct, Bowtie also creates the DNS record from them.
From a Controller added to a cluster: the same, while it checks its name.
Your AI provider sees what the tools return.
For clients that connect over HTTP instead of starting a local process:
BOWTIE_MCP_HTTP_TOKEN="$(openssl rand -hex 32)" uvx bowtie-mcp --transport streamable-http --port 8080 This listens on 127.0.0.1:8080 and serves Streamable HTTP at http://127.0.0.1:8080/mcp. Legacy SSE is --transport sse, at /sse. Every request must carry Authorization: Bearer ; without it nothing can be listed or called. You make the token (32 characters or more) and give the same value to your client. The server does not start without one and never prints it. Stdio remains the recommended way to run it.
Signing in is with a local admin's password, because controller API keys cover only device approval today.
A dry run of a rule change is worked out here, not by the controller.
Approval prompts are your MCP client's. The server binds each apply to exactly what was shown, but it cannot tell whether a person or the model answered.
A deployment made with version 0.2.0 gets no cloud changes from this version: it could not prove which resources were its own. destroy_deployment lists what its record points to for you to remove in the cloud console.
Removing a deployment gives up its address only once it is established that the name no longer leads to it. The DNS record goes first. On AWS, Route 53 says when the record is gone from all its name servers, and the address is released once the record's lifetime has passed after that: a minute or two inside the call, or a later call if someone raised the lifetime. Where that cannot be established, everything else is removed and the address stays reserved until you call destroy_deployment again with accept_dangling_dns=true. That is the case on Google Cloud, which does not say when its name servers have a change, for a record you keep somewhere else, and for a record someone else removed.
Right after install_client, the client can take a minute to register. enroll_this_device says so and can be called again.
No Azure. Linux client packages are x86_64 only.
If the client on this computer is not waiting for approval on the Controller, enroll_this_device approves nothing and asks you to approve the device in the Controller's web console. The same happens when something answers on the client's local status port and the operating system does not show it to be the Bowtie service.
One client install runs at a time on a computer. A second one started meanwhile changes nothing and says so.
On Windows, state is kept only inside your own user folder.
The tool list is long (70). Clients that load every tool up front may need some switched off.
A Controller can be added only on AWS, with a hostname in your own domain. It has to reach the Controller it joins through over HTTPS, with a certificate it trusts. Joining copies the organization's data to it, which for a large organization takes a while.
An attached cluster is reached through the one Controller named in bowtie-mcp connect. While that Controller is down these tools cannot manage the cluster; attach it again under another Controller's name.
Raw output never goes back to the model. Installer messages are kept in ~/.bowtie-mcp/diagnostics.log, and a deployment's serial console can be read with uvx bowtie-mcp console in your own terminal.
uvx bowtie-mcp runs the newest release with the newest dependencies that fit, as PyPI serves them. To stay on a release you have reviewed, name it: uvx bowtie-mcp==0.3.0.
To install exactly what a release was tested as, use its lock file. It names this package and every dependency by hash. The release workflow builds it, installs from it and starts the server before anything is published, attaches it to the GitHub release, and signs a record that it and the published files came from that workflow run:
gh release download v0.3.0 --repo bowtiesecurity/bowtie-mcp --pattern 'bowtie-mcp-0.3.0.lock' && gh attestation verify bowtie-mcp-0.3.0.lock --repo bowtiesecurity/bowtie-mcp \ --signer-workflow bowtiesecurity/bowtie-mcp/.github/workflows/publish.yml \ --source-ref refs/tags/v0.3.0 && python -m venv ~/.bowtie-mcp-venv && ~/.bowtie-mcp-venv/bin/pip install --require-hashes --only-binary :all: -r bowtie-mcp-0.3.0.lock Each step runs only if the one before it succeeded, so nothing is installed unless the lock file was made by this repository's release workflow for the v0.3.0 tag. Then give your MCP client ~/.bowtie-mcp-venv/bin/bowtie-mcp as the command. pip refuses any file, this package's included, whose hash is not the one in the lock file. Releases reach PyPI through Trusted Publishing from the same workflow, so no long-lived PyPI token is involved.
git clone https://github.com/bowtiesecurity/bowtie-mcp.git cd bowtie-mcp pip install -e ".[dev]" pytest State lives in ~/.bowtie-mcp (override with BOWTIE_MCP_HOME; BOWTIE_MCP_SECRETS=file keeps secrets out of the keychain). See CONTRIBUTING.md for the layout, TESTED.md for what has been run against real infrastructure, and SECURITY.md to report a vulnerability.
Both files in this release have provenance metadata.
MIT View SPDX License List
bowtie mcp network-access zero-trust ztna
Development Status 4 - Beta
Intended Audience System Administrators
Programming Language Python :: 3
Topic System :: Networking
Release files for bowtie-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 449.1 kB
Release files / bowtie_mcp-0.3.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.
Release files / bowtie_mcp-0.3.0-py3-none-any.whl
Security for bowtie-mcp 0.3.0
Both files in this release have been uploaded with provenance metadata.
With provenance bowtie_mcp-0.3.0.tar.gz Dec 3, 2026
With provenance bowtie_mcp-0.3.0-py3-none-any.whl Dec 3, 2026
Attestation for bowtie_mcp-0.3.0.tar.gz
Attestation for bowtie_mcp-0.3.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files Full provenance
Dec 2, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




