Skip to main content
Glama

fly-mcp-gateway

Dauerhaft verfügbares Streamable HTTP MCP-Gateway für Fly.io. Verwende dieses statt eines unzuverlässigen Cloudflare Tunnels (mcp.oceanways.online).

  • Endpunkt: https://<your-app>.fly.dev/mcp

  • Health: https://<your-app>.fly.dev/health

  • Optionale Authentifizierung: Authorization: Bearer <MCP_API_TOKEN>

Bereitstellen (einmalig)

# 1. Install flyctl — https://fly.io/docs/hands-on/install-flyctl/
fly auth login

# 2. Clone
git clone https://github.com/hush759/fly-mcp-gateway.git
cd fly-mcp-gateway

# 3. Launch (creates app + deploys)
fly launch --copy-config --yes

# 4. Set a secret token (recommended)
fly secrets set MCP_API_TOKEN="$(openssl rand -hex 24)"

# 5. Redeploy if needed
fly deploy

Wähle einen eindeutigen App-Namen, wenn du aufgefordert wirst (z. B. clipboardh-mcp oder hush759-mcp).

Related MCP server: labsolu-mcp-test

Grok / Cursor darauf ausrichten

Ersetze die alte oceanways-URL durch:

{
  "mcpServers": {
    "fly-gateway": {
      "type": "streamable-http",
      "url": "https://YOUR-APP.fly.dev/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}

Hinweise zum kostenlosen Plan

fly.toml legt Folgendes fest:

  • auto_stop_machines = "off"

  • min_machines_running = 1

Dadurch bleibt eine Maschine aktiv, sodass MCP nicht kaltstarten muss. Das kostenlose Kontingent ist begrenzt – behalte die Fly-Abrechnung im Blick, damit du es nicht überschreitest.

Tools hinzufügen

Bearbeite server.js und registriere weitere server.tool(...)-Handler. Danach:

git add -A && git commit -m "feat: more tools" && git push
fly deploy

Lokaler Test

npm install
MCP_API_TOKEN=dev node server.js
# curl http://localhost:8080/health

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers