gigahost-mcp
Exposes the Gigahost REST API (DNS, domains, servers, web hosting, etc.) to MCP clients via a single passthrough tool, enabling natural language management of Gigahost resources.
README
gigahost-mcp
A tiny MCP server exposing the
Gigahost API (https://api.gigahost.no/api/v0) to any
MCP-compatible client (Claude Code/Desktop, Cursor, Windsurf, Cline, or your own).
The Gigahost API is uniform REST, so the whole surface (~150 endpoints: DNS
zones/records, .no domains, servers, web hosting, BGP, DynDNS) is wrapped by a
single passthrough tool rather than one tool per endpoint. The model drives paths
directly.
Tool
gigahost_request(method, path, body=None, query=None, files=None)
method—GET/POST/PUT/DELETEpath— e.g./dns/zones,/servers/123/rebootbody— JSON body forPOST/PUTquery— querystring paramsfiles—{form_field: local_file_path}for multipart uploads (e.g.POST /webhosting/{id}/files/upload). When set,bodyis sent as multipart form fields instead of JSON.
Returns {"status": <http_status>, "data": <json|text>}, or {"error": ...} on a
network/file failure.
This covers the full Gigahost REST surface: all JSON endpoints plus multipart file uploads. The only bound on what works is the API key's permission scope.
Endpoint reference: https://gigahost.no/en/api-dokumentasjon
Examples
Calls below are shown as the tool arguments the model produces.
List DNS zones:
{ "method": "GET", "path": "/dns/zones" }
Add an A record to zone 4040:
{
"method": "POST",
"path": "/dns/zones/4040/records",
"body": { "record_name": "@", "record_type": "A", "record_value": "203.0.113.10", "record_ttl": 3600 }
}
Reboot a server:
{ "method": "GET", "path": "/servers/123/reboot" }
Upload a file to a web-hosting account (multipart):
{
"method": "POST",
"path": "/webhosting/55/files/upload",
"files": { "file": "/local/path/index.html" }
}
Prerequisites
- Python 3.11+
- A Gigahost API key (
flux_live_<hex>), created in the Flux dashboard under Konto → API keys. Scope it to only the permissions you need (e.g. DNS / domain). It is revocable and shown only once at creation. - The key is read from the
GIGAHOST_API_KEYenvironment variable.
Install
Pick whichever you already use.
Option A — uv (zero install)
Dependencies are declared inline (PEP 723), so nothing to install:
GIGAHOST_API_KEY=flux_live_xxxxxxxx uv run /path/to/server.py
Option B — pip / venv
python -m venv .venv && . .venv/bin/activate
pip install -r requirements.txt
GIGAHOST_API_KEY=flux_live_xxxxxxxx python server.py
Self-check (offline, no key, no network)
uv run server.py --selfcheck # or: python server.py --selfcheck
# prints: ok
Configure your MCP client
Most clients read a JSON config with an mcpServers map. Add one of the following,
using an absolute path to server.py and your key in env.
With uv:
{
"mcpServers": {
"gigahost": {
"command": "uv",
"args": ["run", "/absolute/path/to/server.py"],
"env": { "GIGAHOST_API_KEY": "flux_live_xxxxxxxx" }
}
}
}
With a venv / system Python:
{
"mcpServers": {
"gigahost": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": { "GIGAHOST_API_KEY": "flux_live_xxxxxxxx" }
}
}
}
Config file locations vary by client, e.g.:
- Claude Desktop —
claude_desktop_config.json(Settings → Developer → Edit Config) - Cursor —
~/.cursor/mcp.json - Windsurf / Cline / others — their MCP settings JSON
Claude Code (CLI shortcut)
claude mcp add -s user gigahost -e GIGAHOST_API_KEY=flux_live_xxxxxxxx \
-- uv run /absolute/path/to/server.py
After configuring, the client should list a gigahost server with the
gigahost_request tool. Smoke-test by asking it to GET /dns/zones.
Key permissions (scope)
When you create the Flux API key you set an access level per area. This bounds
what gigahost_request can do, independent of the code:
- Ingen — no access, calls return
403. - Les — read only,
GETworks, writes (POST/PUT/DELETE) return403. - Les/skriv — full read + write.
Areas map to API path prefixes:
| Flux area | Path prefix |
|---|---|
| DNS og domener | /dns/... |
| Servere | /servers/... |
| Webhotell | /webhosting/... |
| Deploy | /deploy/..., /reinstall/... |
| Rack | /bgp/... |
| Fakturering | /my/invoices |
| Min konto | /account/..., /my/account |
A 403 "You do not have permission for this operation" means the key lacks the
right level for that area (e.g. Les when the call needs Les/skriv). Grant the
minimum each area needs, not blanket Les/skriv.
Security
- The API key is read from
GIGAHOST_API_KEYonly. It is never written to this repo. - Putting the key in a client config file (or
~/.claude.jsonviaclaude mcp add -e) stores it in plaintext. Acceptable for a personal scoped key on your own machine. Revoke and rotate in Flux if it leaks. - Prefer a narrowly-scoped key over your account password.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。