Self-host Toolstile
On this page
The Toolstile server is open source under Apache-2.0 at github.com/toolstile/toolstile. It is the same gateway as the hosted service: one endpoint per agent, per-agent access rules, approvals, tool review and activity. Each user on an instance has their own private connections and agents. Team workspaces, shared accounts and billing are part of the hosted service only.
This page summarizes the ways to run it. The documentation on GitHub has the full steps for each.
Run it on your machine
The quickest path is the toolstile CLI. It downloads the server from the repository’s GitHub releases, checks it against its published SHA-256 checksum and starts it:
npx toolstile server start
The server is one executable with an embedded database, so there is no Docker, database server or Node.js setup beyond what npx needs. Builds exist for macOS on Apple silicon and Linux (x64 and arm64).
On a new instance at the default address, http://127.0.0.1:4310, the server prints a one-time setup link and runs until you press Ctrl-C. The link works once and expires after 15 minutes; until an account exists, each start prints a new one. Open it, create your account, which becomes the instance’s operator, and follow the guided setup.
For an instance other people reach over the network, add --email you@example.com: the server prints an invitation link for that address instead.
To connect Claude Code to your own server:
claude mcp add --transport http toolstile http://127.0.0.1:4310/mcp
To set up the other agent apps on the same computer, sign the CLI in to your instance and let it configure them. Each app gets its own agent, with no access until you grant it:
npx toolstile auth login --server http://127.0.0.1:4310
npx toolstile mcp setup
| Command | What it does |
|---|---|
npx toolstile server start [--email <address>] | Installs on first use, sets up a new instance and runs the server |
npx toolstile server upgrade | Backs up the instance, then installs the latest release and keeps the previous executable. Stop the server first |
npx toolstile server uninstall | Removes the executable; your data and backups stay |
npx toolstile server backup, restore | Run the server’s own backup and restore commands |
The executable lives in ~/.local/share/toolstile-server and its data in ~/.local/share/toolstile. The data folder holds the instance’s encryption key: back it up and keep it private.
Build from source
To run from a checkout instead, you need Vite+ (vp) and Node.js 26:
git clone https://github.com/toolstile/toolstile.git
cd toolstile
vp install --frozen-lockfile
vp run build
node scripts/local.mjs init
node scripts/local.mjs bootstrap you@example.com
node scripts/local.mjs start
It uses the same embedded database and data folder as the executable. Local operation covers inviting other people, HTTPS and LAN access, upgrades and backups.
Run it on a server
For a shared instance, build the container image from source and run it with PostgreSQL 17 behind your own HTTPS reverse proxy. There is no published image yet.
- Docker Compose: one host with PostgreSQL 17, file-based secrets and your reverse proxy.
- Kubernetes: plain manifests with a Kustomize base, using your own PostgreSQL, Secrets and ingress.
Both run one application replica. MCP sessions reconnect after a restart. Installation compares the options.
Claude Desktop and ChatGPT connect from their providers’ servers, so they need an instance reachable from the internet, not 127.0.0.1.
Hosted and self-hosted
| Hosted service | Open-source edition | |
|---|---|---|
| Who runs it | Toolstile | You, on your machine or server |
| Gateway address | https://mcp.toolstile.com/mcp | Your instance’s /mcp, such as http://127.0.0.1:4310/mcp |
| MCP servers it can reach | Public HTTPS on port 443 only | Public servers, plus servers on your private network or localhost. Plain http:// is accepted only for private and local addresses. An operator can turn private networks off |
| People | Personal and team workspaces, shared accounts | Independent users with private connections; invitation-only registration by default |
| Sign-in | Google or email; SAML or OIDC single sign-on and SCIM on Scale | Email and password with recovery codes; optional GitHub or Google sign-in |
| Approvals and tool review | The connection owner in a personal workspace; owners and admins in a team workspace | The connection owner |
| Plans | Free and paid plans with a monthly operation allowance | No plans or operation allowance |
| Upgrades and backups | Handled by Toolstile | Yours to run; no scheduled backups are installed |
Limits
- The hosted service connects to remote MCP servers only. From version 0.2.0, the open-source edition in local mode can also run local stdio servers as local commands when an operator starts it with
TOOLSTILE_STDIO=on; only operators can add them, and the server refuses to start withTOOLSTILE_STDIO=onwhen it uses PostgreSQL, which includes container installs. See local commands. - One application replica per instance.
- The open-source documentation lists macOS on Apple silicon as the tested platform for local operation.
Report bugs and compatibility problems in the issue tracker. Issues are public: never include tokens, API keys, account emails or request data.