MCP HTML Deployment Server (Nginx Static File Hosting)
by rushxb
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | 监听的主机 IP 地址 | 0.0.0.0 |
| MCP_PORT | No | MCP 服务绑定的 HTTP 端口 | 3000 |
| MCP_API_KEY | No | 可选的安全密钥。若设置,客户端连接及消息发送必须携带该密钥。 | |
| MCP_DB_PATH | No | 站点元数据 JSON 数据库路径 | <DATA_DIR>/db.json |
| MCP_MAX_TTL | No | 可选的最大站点存活时间,用于限制用户侧 ttl 不能超过企业策略。 | |
| MCP_BASE_URL | No | 访问静态站点的公网 URL 前缀(需与 Nginx 路径匹配) | http://localhost/sites |
| MCP_DATA_DIR | No | 存放元数据和站点文件夹的父级目录 | ./data |
| MCP_SITES_DIR | No | 部署的静态站点的物理存储绝对路径 | <DATA_DIR>/sites |
| MCP_DEFAULT_TTL | No | 可选的默认站点存活时间(秒数或格式化字符串如 '30m', '12h', '7d')。 | |
| MCP_CLEANUP_INTERVAL | No | 定时清理过期站点的检测间隔时间(毫秒)。 | 60000 |
| MCP_MAX_UPLOAD_BYTES | No | 允许的最大上传大小(单文件/ZIP) | 52428800 |
| MCP_ALLOWED_EXTENSIONS | No | 允许上传的文件后缀列表(以逗号分隔) | .html,.css,.js,.png,.jpg,.jpeg,.gif,.svg,.ico,.json,.xml,.txt,.pdf,.woff,.woff2,.ttf,.eot,.map |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rushxb/mcp-html-mcp-nginx'
If you have feedback or need assistance with the MCP directory API, please join our Discord server