openartifacts.sh / use / MCP servers
An MCP server, deployed by your agent
The problem
Your agent has written tools worth keeping: a lookup against your own data, a wrapper around an API you use every day, a few functions the team keeps asking for. Run locally over stdio, they live and die with one laptop. To reach them from another machine, another agent or a colleague's client, they need a URL that stays put, and a server that waits for calls most of the day should not bill you for the whole day.
Here the server is a service: its own container behind its own HTTPS origin, https://<slug>-xxxx.openartifactsusercontent.com, with every HTTP method and WebSocket upgrades passed through. It sleeps between calls and the next call wakes it. Republishing the same slug ships a new version at the same URL, so the clients you configured never change, and any earlier version is one rollback away.
On a paid account it can also serve on a subdomain of yours, such as tools.example.com: oa domains add team-tools tools.example.com, then a CNAME and the TXT ownership records at your DNS provider. $0.50 a domain per month.
One prompt, or one call
Give your agent this:
Read https://openartifacts.sh/skill and https://openartifacts.sh/templates/mcp-server. Deploy the mcp-server template on OpenArtifacts with the slug team-tools. Tell me the price before you pay anything, then give me the server's URL and the claim link.
Behind it are these calls, the same on every surface:
# 1. An account and a token (there is no signup form) curl -X POST "https://api.openartifacts.sh/v1/signup?ref=use-mcp" # 2. Deploy the template curl -X POST https://api.openartifacts.sh/v1/publish \ -H "Authorization: Bearer oa_sk_..." \ -F type=service -F template=mcp-server -F slug=team-tools # The same over MCP (https://mcp.openartifacts.sh/mcp): publish_artifact with {"type":"service","template":"mcp-server","slug":"team-tools"} # Or from a terminal npx @openartifacts/cli deploy --template mcp-server --slug team-tools
On a new account the deploy first answers 402 Payment Required: a service needs an hour of its rate in credit before it starts, $0.03 on the small size. The agent pays over MPP or x402 (USDC from $0.25, or a card through its human's Link wallet from $5), retries, and the surplus stays as credit. It then polls the status until the state is healthy; if the process crashes, the status carries the reason and the last 50 log lines.
A new account expires 30 minutes after signup, and the server stops with it, unless a human opens the claim link. Claiming takes one click and keeps the agent's token working.
Start from the template
Deploy mcp-server as it is, then publish the same slug again with your own tools. Point any MCP client that connects to remote servers over HTTP at the service URL plus the path the server listens on. The gallery has the other starting points.
The URL is public, so put your own check in front of the tools. The platform passes the request's Authorization header through to your server (it removes only OpenArtifacts' own oa_sk_ tokens), so the server can require a bearer token of its own. Keep that token in the service's environment, set over REST or the CLI:
npx @openartifacts/cli env set team-tools KEY=value
Environment variables cannot be set over MCP, so a secret never passes through a chat transcript. Setting them restarts the service with the new values.
What it costs
The small size (1/4 vCPU, 1 GiB memory) is $0.03 an hour awake, billed per minute from the first minute of each wake, plus $0.216 per vCPU-hour of CPU the container uses. Asleep it costs nothing. Every month below is computed from those prices:
| How it is used, on small | Awake | Awake cost | CPU, at most |
|---|---|---|---|
A few calls a week: 20 wakes a month of about 2 minutes each, with sleep_after_s at 60 | 40 min | $0.02 | $0.04 |
| Working sessions: awake 3 hours a day, 22 days a month | 66 h | $1.98 | $3.56 |
| Called all day and night, never idle for its sleep timer | 720 h | $21.60 | $38.88 |
"CPU, at most" is what the CPU line would be if the container kept its quarter vCPU fully busy the whole time it was awake; CPU is never billed beyond that. A server that mostly waits for calls uses a small part of it. Deploys are free up to 100 a month on a claimed account, then $0.005 each. Running two services at the same moment needs $2 of balance: one running service per $1, at most 10.
Limits
- The first call after a sleep waits while the service boots; the platform holds it for up to 60 seconds.
installruns on every boot, so a heavy install slows every wake. To stay awake through a working day, raisesleep_after_s(up to 86,400 seconds). - Outbound internet is on by default and cannot be limited to certain ports or addresses. A server whose tools need no network can run with
"internet": false, which turns all outbound traffic off. /datakeeps up to 1 GiB across sleeps and redeploys, right for a cache or files written whole (keep a SQLite database on local disk and snapshot it there, as theapi-sqlitetemplate does). It is not backed up.- The code runs as an unprivileged user, not root, and cannot bind ports below 1024; the default port is 8080.
- A deploy over MCP holds 10 MB and 500 files; over REST and the CLI, 40 MB and 2,000.
- There is no SLA, and you cannot choose the region. Current status is at /status.
Start with a token. It is free, and there is no form.
curl -X POST "https://api.openartifacts.sh/v1/signup?ref=use-mcp"
Then hand your agent the skill, or read the full reference. Prices for everything are on the home page.
Webhooks and bots APIs and scheduled jobs Templates Status Support