Sign In

@hostsmith/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hostsmith/mcp-server

MCP server for the Hostsmith hosting platform

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
143
308.57%
Maintainers
1
Weekly downloads
 
Created
Source

@hostsmith/mcp-server

CI Latest Release Node Version License: MIT MCP

Official Model Context Protocol server for the Hostsmith hosting platform.

Static hosting for agents - give it a file, get a live URL. Claude Code shipping an HTML report. Cursor previewing a generated demo. Claude Desktop publishing a one-pager. One MCP call → public HTTPS URL in seconds. No repo, no CI, no build step. Custom domains, private sites, EU or US data residency.

Deploy a page from Claude Code and get a live URL

Why Hostsmith

  • Artifact-first. No repo, no build config - drop a file (or have the agent generate one), get a URL.
  • Built for agents. MCP-native, OAuth-scoped, structured tool descriptions agents can chain.
  • EU or US data residency. Pick where the user's data lives, architecturally - not via a checkbox.

Tools

ToolDescription
list_sitesList all sites in your account for a given data partition
get_siteGet details of a specific site
create_siteCreate a new site
delete_siteDelete a site
list_domainsList available domains (shared and custom)
get_accountGet account info, subscription plan, and usage
deploy_pathDeploy a local file or directory to a site
deploy_filesDeploy inline file contents to a site

Usage

Authentication is via OAuth 2.0. Static access tokens are not supported.

Claude Desktop

Open Settings → Connectors → Add custom connector and enter:

https://mcp.hostsmith.net/mcp

Claude Desktop runs the OAuth flow in your browser to authorize the connector against your Hostsmith account.

Stdio (Claude Code, Cursor, Cline, Windsurf, Zed)

Add this entry to your MCP client's config:

{
  "mcpServers": {
    "hostsmith": {
      "command": "npx",
      "args": ["-y", "@hostsmith/mcp-server"]
    }
  }
}

The first tool call triggers an OAuth flow in your browser to authorize the server against your Hostsmith account.

Remote URL (other clients)

Any MCP client that supports remote Streamable HTTP transport can point directly at the hosted server:

{
  "mcpServers": {
    "hostsmith": {
      "url": "https://mcp.hostsmith.net/mcp"
    }
  }
}

The client handles the OAuth flow automatically - you'll be redirected to Hostsmith to authorize access.

Local HTTP (self-hosted)

Run the server in HTTP mode and have your MCP client perform OAuth against it:

npx @hostsmith/mcp-server http
{
  "mcpServers": {
    "hostsmith": {
      "url": "http://localhost:3100/mcp"
    }
  }
}

Environment variables

VariableDefaultDescription
HOSTSMITH_URLhttps://hostsmith.netHostsmith app URL (OAuth endpoints).
HOSTSMITH_API_DOMAIN-Override the upstream API domain across both partitions. The server prepends us.api. and eu.api. to the value you set. Example: HOSTSMITH_API_DOMAIN=staging.example.com routes calls to https://us.api.staging.example.com and https://eu.api.staging.example.com. Use this to point at a staging or proxied API host.
HOSTSMITH_BASE_URL-Override the API base URL with a single fixed value, bypassing partition selection entirely.
PORT3100HTTP server port.
MCP_BASE_URLhttp://localhost:$PORTPublic URL of the MCP server, used in OAuth metadata.

Troubleshooting

  • Tool calls return 401: the OAuth session expired. Reconnect from your MCP client to re-authorize.
  • OAuth redirect loops: confirm MCP_BASE_URL matches the URL your MCP client uses to reach the server.
  • Wrong partition: tool calls accept an explicit partition arg; if you omit it, the partition is inferred from your access token.
  • Inspect the install: npx @modelcontextprotocol/inspector npx -y @hostsmith/mcp-server http to browse tools interactively.

Documentation

Deeper material lives at hostsmith.net/docs/developers/mcp.

Contributing

See CONTRIBUTING.md (including the Releases section for the version-stamping flow). Security issues: see SECURITY.md.

License

MIT

Keywords

hostsmith

FAQs

Package last updated on 06 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts