Skip to main content

vitrine

ci python license

Shareable links for what your AI agent makes. vitrine is a small, self-hosted MCP server. Your agent publishes an HTML report, a chart, a PDF, a folder of files or a single React component, and gets back a link that opens in any browser.

  • Private by default. Links are signed, expire and can be revoked. An artifact becomes public only after you approve it.
  • One link per artifact. When the agent revises it, the link stays the same.
  • Know what happened to a link. A link can carry a passcode, be revoked on its own and count its views, anonymously. A public artifact can go private again on a date.
  • Any MCP client. Claude Code, Hermes Agent, or anything that speaks MCP over HTTP.
  • Easy to run. One process, one port, one folder of files. No database.

Install

With uv (it fetches Python 3.15 for you):

uvx mcp-vitrine --version          # run without installing
uv tool install mcp-vitrine        # or install the `mcp-vitrine` command

Or with Docker. stable is the newest release; for a deployment, pin a version from the releases instead:

docker pull ghcr.io/edgar971/vitrine:stable

Upgrading from 0.1.x? 0.2.0 moves meta.json to schema 2, so run uvx mcp-vitrine migrate once against your data_dir before starting the new version — serve refuses to start on old data until you do. See operations § 4.

Run it

vitrine needs a secret, to sign links, and one token per client:

export VITRINE_SECRET="$(uvx mcp-vitrine secret new)"
uvx mcp-vitrine token new claude
# token: 3AVjpX77…            ← give this to the client
# entry: claude:65b2dd…:read+write+share+publish
export VITRINE_TOKENS="claude:65b2dd…:read+write+share+publish"   # the entry it printed
uvx mcp-vitrine serve              # http://localhost:8080, data in ./data

With Docker, the same commands run inside the image:

docker run --rm ghcr.io/edgar971/vitrine:stable secret new
docker run --rm ghcr.io/edgar971/vitrine:stable token new claude
docker run -d --name vitrine -p 127.0.0.1:8080:8080 -v vitrine-data:/data \
  -e VITRINE_SECRET=<secret> -e VITRINE_TOKENS=<entry> \
  ghcr.io/edgar971/vitrine:stable

Check that it works, using the token that token new printed:

export VITRINE_TOKEN=<token>
echo '<h1>hello</h1>' > index.html
curl -s -H "Authorization: Bearer $VITRINE_TOKEN" -F title=Hello -F file=@index.html \
  localhost:8080/api/artifacts
# {"id": "…", "url": "http://localhost:8080/s/…/", …}

Open the url: a private, expiring link to your page.

Connect your agent

vitrine serves MCP at /mcp, authenticated with a bearer token.

Claude Code

claude mcp add --transport http vitrine http://localhost:8080/mcp \
  --header "Authorization: Bearer $VITRINE_TOKEN"

Any other MCP client that supports remote servers with headers:

{
  "mcpServers": {
    "vitrine": {
      "url": "http://localhost:8080/mcp",
      "headers": { "Authorization": "Bearer <token>" }
    }
  }
}

Hermes Agent connects the same way, and an optional plugin publishes files from disk: see integrations/hermes.

Give each client its own token, so you can revoke one without the others. Grant only the scopes it needs: token new ci --scopes read,write cannot share links or make anything public.

Use it

Ask your agent for something you would open in a browser:

Build an HTML report of last month's energy use and share it with me.

Update the report with this week's numbers. (same link, new version)

Make that report public. (you are asked to approve first)

What the agent can do:

Tool Scope Does
artifact_create write Publish text files (HTML, Markdown, CSV, SVG, …) and get a private link
artifact_update write Add a version behind the same link
artifact_set_meta write Rename, retag or move to a project, without a new version
artifact_upload_url write A single-use upload URL for binaries and large files
artifact_delete write Remove an artifact and every link to it
artifact_get / artifact_list read Read an artifact back, or search earlier ones by words, project, tag or expiry
artifact_link share A fresh private link, with its own expiry, label and optional passcode
artifact_revoke_links share Revoke one private link, or every private link issued so far
artifact_set_visibility publish Make an artifact public, after you approve; optionally only for a while

Approval goes through your MCP client's confirmation prompt. If the client cannot ask, or you decline or don't answer, the artifact stays private.

The dashboard

An operator page at /_admin/ lists every artifact, shows what is public, and lets you mint or revoke private links, edit titles, tags and projects, make something private or delete it. Nothing can be made public from it. It is off until you give it a password:

mcp-vitrine admin password                # asks twice, prints VITRINE_ADMIN_PASSWORD='scrypt$…'
export VITRINE_ADMIN_PASSWORD='scrypt$…'  # the hash, never the password
mcp-vitrine serve                         # then open http://localhost:8080/_admin/

It is served on the same host as everything else (public_base_url), which must be https unless it is on localhost. Client tokens cannot sign in, so don't give the password to an agent.

From a shell

The package also installs vitrine, a client for laptops, CI jobs and agents with a shell. It speaks only to /api, with the URL and token in the environment (never as an argument):

export VITRINE_URL=http://localhost:8080 VITRINE_TOKEN=<token>
url=$(uvx --from mcp-vitrine vitrine publish report.html)   # the URL alone goes to stdout
vitrine publish dist/ --zip --fallback index.html          # a built single-page app
vitrine publish report.html --update <id>                  # a new version, same link
vitrine link <id> --label finance --passcode               # the passcode prints once, on stderr
vitrine list --project q3 --all
vitrine revoke <id> --link <lid>

Everything it publishes is private; there is no flag to make it public. An agent with only curl can still publish a built site through an upload URL: artifact_upload_url(unpack="zip") returns zip -qr - . | curl --fail -T - <url>. Build the site with relative asset paths (vite build --base=./).

Beyond localhost

Set VITRINE_PUBLIC_BASE_URL to the address people will open, for example https://vitrine.example.com, and put vitrine behind TLS. Ready-made setups are in examples: Compose with Caddy, and Kubernetes. Backups, upgrades and monitoring are in operations, and every setting is in the configuration reference.

Learn more

  • Documentation: how it works, the spec, the security model, and how to contribute.
  • Changelog
  • Found a vulnerability? Follow SECURITY.md rather than opening an issue.

MIT licensed.

Metadata

Release files for mcp-vitrine 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-vitrine 0.2.0
File Size Uploaded Provenance Actions
mcp_vitrine-0.2.0.tar.gz 794.9 kB Without provenance Details for mcp_vitrine-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-vitrine 0.2.0
File Interpreter ABI Platform Actions
mcp_vitrine-0.2.0-py3-none-any.whl Python 3 none any Details for mcp_vitrine-0.2.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / mcp_vitrine-0.2.0.tar.gz

Download URL mcp_vitrine-0.2.0.tar.gz
Size 794.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04511d0e2735bba013086bff29dcaf45e1baae5c0d1144e215cc9aa80ac28e2e
BLAKE2b-256 checksum
How to use checksums
28911038dd6af2500dea19f0bda6e5b54128e168b8c083757f5eac55f75e73d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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 / mcp_vitrine-0.2.0-py3-none-any.whl

Download URL mcp_vitrine-0.2.0-py3-none-any.whl
Size 820.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54f336ccccd92832051d8bf9696daf55b6d1d82b9fa9c0e3ccf06905f00b7d95
BLAKE2b-256 checksum
How to use checksums
177cfe7bddf6f95dd1010fef25d702ebb58377664ca98fa6c5a67baa7f893b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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 mcp-vitrine 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page