bowmark-mcp — Bowmark MCP over stdio
Bowmark turns the interaction-gated web into a callable function library.
An agent reads the library (get_library), writes a short JavaScript script
against it, and sends it to run — Bowmark executes it on the live sites in a
sandbox and hands back the result. The canonical server is hosted, streamable
HTTP: https://api.bowmark.ai/mcp. Reading the library needs no key; run
needs a Bowmark account, which starts with a free $10.
This package is a thin stdio bridge to that hosted server, for MCP hosts
whose client only speaks stdio (for example browser-use's MCPClient). Tool
schemas, descriptions, and results pass through verbatim — the hosted server
stays the single source of truth; nothing is reimplemented here.
(Node-flavored environments: the same bridge exists on npm as bowmark-mcp —
npx @bowmark/mcp, packages/bowmark-mcp/node/ in the monorepo. The npm name is
scoped and this one is not, deliberately: PyPI cannot be scoped and has no rename
mechanism, so bowmark-mcp here is already what PEP 752 blesses.)
mcp-name: ai.bowmark/bowmark
Use
uvx bowmark-mcp # or: pipx run bowmark-mcp / python -m bowmark_mcp
Example — browser-use:
from browser_use.mcp.client import MCPClient
bowmark = MCPClient(server_name="bowmark", command="uvx", args=["bowmark-mcp"])
Example — any MCP host config:
{ "mcpServers": { "bowmark": { "command": "uvx", "args": ["bowmark-mcp"] } } }
If your host speaks streamable HTTP, skip this bridge and connect directly to
https://api.bowmark.ai/mcp.
Environment
| Var | Meaning |
|---|---|
BOWMARK_MCP_URL |
Target MCP URL. Default https://api.bowmark.ai/mcp/pypi (the /pypi destination attributes the install to this bridge). Point at http://localhost:3001/mcp for a local Bowmark API. |
BOWMARK_API_KEY |
Required. Your key from https://bowmark.ai/dashboard/keys (sign up at https://bowmark.ai/sign-up). Forwarded as X-Bowmark-Key. Without it the bridge still starts, warns on stderr, and every call returns the sign-up steps. |
Design notes (repo-internal)
- One remote session per request, retried once.
streamablehttp_clientis an anyio-scoped context manager; holding one session across handler tasks trips "exit cancel scope in a different task". The hosted MCP is stateless, so a fresh session per request is semantically identical and costs one initialize round-trip — noise next to arunthat drives real browsers. - The real host's name is relayed upstream. The api tailors its operating
guidance per host and detects the host from
clientInfoon the handshake — but through a bridge that names the BRIDGE, so every install here would read the platform-neutral text. So the host's ownclientInfo.name(from OUR stdio handshake) is forwarded asX-Bowmark-Clienton every proxied request, and the api ranks that above its own handshake. Best-effort: an unknown or missing name simply falls back to the neutral text, never an error. - Pass-through only. No tool logic lives here; the agent-surfaces sync rule
in the root CLAUDE.md is unaffected because descriptions/schemas ride through
from
apps/api/src/routes/mcp.ts. - The
/pypidestination is registered inapps/api/src/mcp-destinations.ts+mcp-registry/sources.json(PyPI stdio bridge channel). It carries the channel and deliberately pins NO platform, because the relayedX-Bowmark-Clientabove is a better answer than any pin. The old?s=pquery form still resolves for installs already in the wild. Adding a destination:.claude/rules/mcp-destinations.md. - The
mcp-name: ai.bowmark/bowmarkline above is load-bearing: the official MCP Registry validates PyPI package ownership by finding that marker in the package README. Don't remove it. - Versioning is manual (this is a thin bridge, not the api): bump
pyproject.tomlwhen it changes. Not wired into release-please.
Tests
cd packages/bowmark-mcp/python
uv run --with pytest --with-editable . pytest -q
Network-free (the remote hop is monkeypatched). A live smoke against prod:
uv run --with-editable . python - <<'EOF'
import asyncio, bowmark_mcp
async def main():
tools = await bowmark_mcp.list_tools_impl()
print([t.name for t in tools])
asyncio.run(main())
EOF
Publishing to PyPI
Live since 2026-07-03, published + cold-verified via uvx bowmark-mcp
against prod. To ship a new version: bump version in pyproject.toml
and merge. The actual publish does NOT run in this monorepo's CI — this
repo is private, and PyPI Trusted Publishing (OIDC) validates against
pyproject.toml's Repository URL, which (correctly) points at the public
mirror github.com/bowmark-ai/mcp, not Metroxe/bowmark. So merging here
only lands the version bump; release-bowmark-mcp.yml mirror-syncs it to
bowmark-ai/mcp, and THAT repo's own .github/workflows/publish.yml
(source-controlled at
packages/bowmark-mcp/.github/workflows/publish.yml
in this monorepo, mirrored in like any other file) does the real uv publish. Auth is PyPI Trusted Publishing (OIDC) — no token, configured
on pypi.org (project → Publishing → GitHub publisher for bowmark-ai/mcp /
publish.yml). Publishing from the public mirror also auto-generates
provenance attestations. Not release-please; the bump IS the release
action. If the registry surface changed, also bump
packages[0].version in mcp-registry/server.json (rides the next
api-release republish — the registry validates ownership via the mcp-name
marker above).
Manual fallback, when that workflow cannot run: rm -rf dist && uv build && uv publish, with a PyPI API token in UV_PUBLISH_TOKEN. The token is a maintainer
credential held in 1Password. This directory is mirrored to a public repo
(see the mirror job in the monorepo), so the item path is deliberately not
written here — it lives beside that job, in
.github/workflows/release-bowmark-mcp.yml.
Metadata
Release files for bowmark-mcp 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bowmark_mcp-2.1.1.tar.gz | 64.1 kB | Without provenance | Details for bowmark_mcp-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bowmark_mcp-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for bowmark_mcp-2.1.1-py3-none-any.whl |
Total release size: 72.4 kB
Release files / bowmark_mcp-2.1.1.tar.gz
| Download URL | bowmark_mcp-2.1.1.tar.gz |
|---|---|
| Size | 64.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ee7ef8593c6db12bdc33d3aa571852f0595ebf9cdb9b6e57d2a32c2c1fad845
|
|
BLAKE2b-256 checksum How to use checksums |
04f0e020c1cea50f6f9ac418d1e393fcc21ee8812a1047a0604d2eb29b8d0214
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / bowmark_mcp-2.1.1-py3-none-any.whl
| Download URL | bowmark_mcp-2.1.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fb0a6fd2970948be90a10b3b70cc4e4632e937aee012c21b0eefe6808e76bc9
|
|
BLAKE2b-256 checksum How to use checksums |
251faf4ad578930755d2d9cf70c3d9340cbe4ce444ae6c57de30785a65461a2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for bowmark-mcp 2.1.1
Provenance
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.