SuperAPIAI Directory

mcp-server

github.com · AI developer platforms

Hostsmith MCP Server is the official Model Context Protocol server of the Hostsmith hosting platform, providing static website hosting capabilities to AI agents: an agent only needs to submit a single file to obtain a public HTTPS access address within seconds, with no code repository, CI, or build step required. It supports custom domains, private sites, and EU or US data residency, and uses OAuth 2.0 authentication with no static access tokens. The server can connect to MCP clients such as Claude (claude.ai, Desktop, Cowork, mobile), Claude Code, Cursor, Cline, Windsurf, and Zed, and also supports remote Streamable HTTP and local self-hosted HTTP modes.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Hostsmith MCP Server is the official Model Context Protocol (MCP) server of the Hostsmith hosting platform, designed to let AI agents directly handle static website hosting. Its core positioning is "artifact-first": an agent generates a single file (such as an HTML report, a demo page, or a single-page document) and obtains a public HTTPS URL through a single MCP call, with no code repository, CI pipeline, or build configuration required.

Key capabilities

  • Static hosting: after submitting a file, you get an accessible public HTTPS address, suitable for scenarios such as Claude Code publishing HTML reports, Cursor previewing generated demos, and Claude publishing single-page content from claude.ai or Desktop.
  • Designed for agents: MCP-native, scoped OAuth authorization, and structured tool descriptions, making it easy for agents to chain calls.
  • Data residency: you can choose the EU or the US as the location where user data is stored; this is an architectural-level regional choice.
  • Custom domains and private sites: supports binding custom domains and also supports private sites.
  • Redirect hosts: you can create redirect hosts with kind "redirect", which only provide redirect rules and do not accept deployments, do not count toward the plan's site limit, and are capped at 50 per organization. Redirect rules apply only to the organization's own custom domains and are checked before the _redirects of the live deployment.

Authentication Only OAuth 2.0 is supported; static access tokens are not supported. The first tool call triggers a browser OAuth flow to authorize the server to the user's Hostsmith account.

Connection methods

  • Claude (claude.ai, Desktop, Cowork, mobile): add a custom connector in Customize > Connectors, set the name to Hostsmith, and set the MCP server URL to https://mcp.hostsmith.net/mcp,完成后连接并在浏览器中授权。免费 Claude plans allow one custom connector; for Team and Enterprise plans, the owner first adds it in Organization settings > Connectors, and then members click Connect in Customize > Connectors to log in to their own Hostsmith account. By default, Claude requests approval before each tool call, which can be adjusted in the connector's Tool permissions; removal or forced reauthorization is also done in the same place.
  • Stdio (Claude Code, Cursor, Cline, Windsurf, Zed): add the corresponding entry in the MCP client configuration; the first tool call triggers a browser OAuth flow.
  • Remote URL (other clients): MCP clients that support the remote Streamable HTTP transport can point directly to the hosted server, and the client automatically handles the OAuth flow. Claude Code can also use the hosted server directly.
  • Cursor one-click install: click the badge to add the remote Hostsmith server (https://mcp.hostsmith.net/mcp)添加到 Cursor: the first tool call triggers browser OAuth.
  • Local HTTP (self-hosted): run the server in HTTP mode, and the MCP client performs OAuth against it.
  • Embedded HTTP handler: createFetchHandler returns a Web-standard (req: Request) => Promise<Response> handler that can be hosted on your own runtime (Lambda, edge worker, Node server). It does not read environment variables; configuration is passed in via parameters. onServer is awaited; if it throws, the error is logged and it is treated as no hook. claims are only decoded, not verified; the Hostsmith API verifies the token on every tool call. The official hosted server uses this hook for usage analytics; the package itself contains no analytics client and sends no telemetry, and the CLI does not pass a hook either.

Networking and troubleshooting The MCP transport and OAuth flow run in the client application process, so no agent sandbox configuration is needed. A common failure point for sandboxed agents is the upload PUT during deploy_create_upload + deploy_finalize: bytes are sent from the agent shell to the partition API host, so outbound HTTPS (port 443) access must be allowed to us.api.hostsmith.net (us partition site) or eu.api.hostsmith.net (eu partition site). When the server itself calls the Hostsmith API, it uses User-Agent: hostsmith-mcp-server/<version> hostsmith-js-sdk/<version>. Common issues: a tool call returning 401 means the OAuth session has expired; reconnect and authorize from the MCP client. An OAuth redirect loop requires confirming that MCP_BASE_URL matches the URL the client uses to access the server. For partition errors, explicitly pass the partition parameter in the tool call; when omitted, it is inferred from the access token. An upload PUT failure (DNS, refused, proxy, timeout) usually means the agent shell cannot reach the partition API host. You can use npx @modelcontextprotocol/inspector npx -y @hostsmith/mcp-server http interactive browsing tool. For more information, see hostsmith.net/docs/mcp.

Use cases and limitations Intended for developers and teams that need AI agents to quickly publish static pages, reports, presentations, or single-page content. Limitations include: only OAuth 2.0 authentication is supported; redirect hosts only serve rules, do not accept deployments, and are capped at 50 per organization; redirect rules apply only to the organization's own custom domains; sandboxed environments must allow outbound HTTPS to the corresponding partition API host. Specific pricing and plan details are not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools