MCP Static Hosting
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Static HostingCreate a site called hello, write index.html, preview it, then publish and give me the URL."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Static Hosting
Self-hosted website publishing for AI agents. Connect an MCP client, create a site, edit files, preview the draft, and publish a versioned release on your own server.
Status: early release, single-server deployments. Start with trusted users. This is a new independent project; no existing accounts, data, secrets, domains, or deployment history are included. See security boundaries.
Русская инструкция · Deployment · Production Compose · Configuration · MCP · Published images · Operations · Contributing
Features
Authenticated Streamable HTTP MCP endpoint for Claude Code, Codex and other clients.
Dashboard with a locally served Monaco editor and revocable MCP API keys.
Git-backed drafts, separate preview URLs, immutable published snapshots and rollback.
Multiple sites per user, custom domain mappings, optional site passwords.
Runtime domain configuration: the same Docker image works for different installations.
Optional experimental Deno functions with project KV, JSON records and encrypted secrets.
PostgreSQL metadata, Redis, persistent Docker volumes and automatic database migrations.
Related MCP server: StaticX MCP Server
Quick start
Requires Docker Engine/Desktop with Docker Compose v2, Git and OpenSSL. Linux x86-64 servers and Docker Desktop with x86-64 emulation are supported. Ports 3000–3002 must be available. No local Node.js, PostgreSQL, Redis or Deno installation is needed to run the published stack.
git clone https://github.com/reg2005/mcpStaticHosting.git
cd mcpStaticHosting
sh scripts/setup.sh
docker compose pull
docker compose up -d --waitOpen localhost:3000, create an account and open MCP tokens. Generate a token and copy the client configuration shown by the dashboard. Example prompt for your agent:
Create a project called hello, write a simple index.html, show the preview URL, then publish it and return its production URL.
The default site domain is lvh.me, whose wildcard DNS resolves to the local machine.
Site URLs look like http://hello-abc12345.lvh.me:3002 and
http://hello-abc12345.preview.lvh.me:3002. If your resolver blocks loopback DNS,
add the individual hostnames to your hosts file or configure local wildcard DNS.
Default ports bind to 127.0.0.1. For a remote server, configure DNS and a TLS reverse proxy using the deployment guide. Do not use the local defaults as a public deployment configuration.
setup.sh generates unique secrets in the ignored .env file. It never overwrites
an existing configuration. docker compose down preserves data; adding -v deletes it.
Production installation
The standalone compose.prod.yaml uses
reg2005/mcp-static-hosting:0.1.0 and the optional
reg2005/mcp-static-hosting-functions:0.1.0, both for linux/amd64.
It contains no builds or installation secrets.
sh scripts/setup.sh --production
# Edit .env.production: AUTH_BASE_URL, MCP_PUBLIC_URL, PUBLIC_BASE_DOMAIN, EMAIL_FROM.
# Configure DNS and your TLS reverse proxy (see the deployment guide).
sh scripts/compose-prod.sh pull
sh scripts/compose-prod.sh up -d --waitRegistration is closed by default in production. Temporarily set
SIGNUPS_ENABLED=true, recreate services, register the first trusted account, then
set it back to false and recreate services again. Public endpoints must be behind
TLS. The compose wrapper is equivalent to
docker compose --env-file .env.production -f compose.prod.yaml.
Containers
Image/service | Purpose |
| Shared image for web, MCP, router and one-shot migrations |
| Optional Deno function runtime |
| Accounts, API keys, projects and release metadata |
| Rate limits, function KV and function logs |
The default Compose file pulls prebuilt images and does not build on the server.
Published images target linux/amd64 (x86-64).
Use a version tag or digest in production. See release instructions.
Architecture
flowchart LR
Browser --> Proxy[TLS reverse proxy]
Agent[MCP client] --> Proxy
Proxy --> Web[Web dashboard]
Proxy --> MCP[MCP server]
Proxy --> Router[Site router]
Web --> PG[(PostgreSQL)]
MCP --> PG
Router --> PG
Web --> Sites[(Git drafts and snapshots)]
MCP --> Sites
Router --> Sites
MCP --> Redis[(Redis)]
Router -. optional .-> Deno[Deno functions]
Deno --> Redisapps/web uses Next.js/React; apps/mcp exposes the MCP protocol; apps/router
serves files with Hono; apps/functions runs optional Deno handlers. Shared auth,
domain logic and schema live in packages/. Existing working components were
retained for this extraction; no framework rewrite is required to install it.
This version uses shared filesystem storage on one host. Do not scale writers to multiple replicas or use it for high-volume transactional JSON records. See the architecture decision.
Build from source
sh scripts/setup.sh
docker compose -f compose.yaml -f compose.build.yaml build web
docker compose up -d --waitFor application development, install Node.js 22 and pnpm 8.6.7:
corepack enable
pnpm install --frozen-lockfile
pnpm typecheck
pnpm lint
pnpm test
pnpm buildThe Docker integration test exercises registration, API keys, MCP publishing,
preview isolation, static files and access boundaries. See scripts/smoke.mjs and
Contributing for the isolated test setup.
License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Hosting for AI agents: publish a live website in one tool call, ephemeral or forever.
The website platform for AI agents. One API to build, host, and operate real websites.
Hosted MCP for creating, checking, deploying, and hosting static sites for AI agents.
- hoasterOAuthapp.hoaster
Hosts AI-generated web content (HTML, images, SVG, JSON) at a public URL, with custom domains.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to deploy static files and get live HTTPS URLs instantly, with support for custom domains and data residency.974MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to deploy static websites to StaticX, including creating sites, uploading builds, publishing releases, and managing domains.19MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to edit and serve a static website via natural language, providing file management tools over MCP and HTTP hosting.-
- AlicenseAqualityBmaintenanceEnables AI agents to build, edit, and publish live websites with hosting, database, auth, and domains via the Model Context Protocol.13111MIT