Official server for the Hostinger API, letting agents manage domains, hosting, VPS, email and other services.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add hostinger-api --env HOSTINGER_API_TOKEN='<HOSTINGER_API_TOKEN>' --env DEBUG='<DEBUG>' -- npx -y @hostinger/mcp~/.codex/config.toml
[mcp_servers.hostinger-api]
command = "npx"
args = ["-y", "@hostinger/mcp"]
env = { HOSTINGER_API_TOKEN = "<HOSTINGER_API_TOKEN>", DEBUG = "<DEBUG>" }
# codex mcp add hostinger-api --env HOSTINGER_API_TOKEN='<HOSTINGER_API_TOKEN>' --env DEBUG='<DEBUG>' -- npx -y @hostinger/mcp~/.cursor/mcp.json
{
"mcpServers": {
"hostinger-api": {
"command": "npx",
"args": [
"-y",
"@hostinger/mcp"
],
"env": {
"HOSTINGER_API_TOKEN": "<HOSTINGER_API_TOKEN>",
"DEBUG": "<DEBUG>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"hostinger-api": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hostinger/mcp"
],
"env": {
"HOSTINGER_API_TOKEN": "<HOSTINGER_API_TOKEN>",
"DEBUG": "<DEBUG>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hostinger-api": {
"command": "npx",
"args": [
"-y",
"@hostinger/mcp"
],
"env": {
"HOSTINGER_API_TOKEN": "<HOSTINGER_API_TOKEN>",
"DEBUG": "<DEBUG>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"hostinger-api": {
"command": "npx",
"args": [
"-y",
"@hostinger/mcp"
],
"env": {
"HOSTINGER_API_TOKEN": "<HOSTINGER_API_TOKEN>",
"DEBUG": "<DEBUG>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"hostinger-api": {
"command": "npx",
"args": [
"-y",
"@hostinger/mcp"
],
"env": {
"HOSTINGER_API_TOKEN": "<HOSTINGER_API_TOKEN>",
"DEBUG": "<DEBUG>"
}
}
}
}远程托管
claude mcp add --transport http hostinger-api https://mcp.hostinger.com~/.codex/config.toml
[mcp_servers.hostinger-api]
url = "https://mcp.hostinger.com"
# codex mcp add hostinger-api --url https://mcp.hostinger.com~/.cursor/mcp.json
{
"mcpServers": {
"hostinger-api": {
"url": "https://mcp.hostinger.com"
}
}
}.vscode/mcp.json
{
"servers": {
"hostinger-api": {
"type": "http",
"url": "https://mcp.hostinger.com"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hostinger-api": {
"httpUrl": "https://mcp.hostinger.com"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"hostinger-api": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.hostinger.com"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"hostinger-api": {
"url": "https://mcp.hostinger.com"
}
}
}需要的环境变量
HOSTINGER_API_TOKENDEBUG
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。