Skip to main content
Glama

fly-mcp-gateway

Fly.io 向けの常時稼働 Streamable HTTP MCP ゲートウェイです。 不安定な Cloudflare Tunnel(mcp.oceanways.online)の代わりにこれを使用してください。

  • エンドポイント: https://<your-app>.fly.dev/mcp

  • ヘルスチェック: https://<your-app>.fly.dev/health

  • 認証(任意): Authorization: Bearer <MCP_API_TOKEN>

デプロイ(一度だけ)

# 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

プロンプトが表示されたら、一意なアプリ名を選んでください(例: clipboardh-mcp や hush759-mcp)。

Related MCP server: labsolu-mcp-test

Grok / Cursor をこのゲートウェイに向ける

古い oceanways URL を次のように置き換えます:

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

無料プランの注意

fly.toml では以下が設定されます:

  • auto_stop_machines = "off"

  • min_machines_running = 1

これにより1台のマシンが常時稼働し、MCP がコールドスタートしません。無料枠には制限があります。Fly billing を確認して、無料クレジットを超えないようにしてください。

ツールを追加

server.js を編集して追加の server.tool(...) ハンドラーを登録し、その後以下を実行します:

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

ローカルテスト

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

Related MCP Connectors

Related MCP Servers