CastHTML リモートMCPを Claude Code にMCP接続する方法(設定手順)

CastHTML のリモートMCPサーバーを Claude Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。

🛡️ Official✓ VerifiedStreamable HTTPBearer Token🛡️ A+~416 tok5 tools
Streamable HTTPhttps://casthtml.com/mcp

🔒 Client-side only — never leaves your browser.

claude mcp add --transport http casthtml https://casthtml.com/mcp

With credential header:

claude mcp add --transport http casthtml https://casthtml.com/mcp --header "Authorization: Bearer YOUR_API_KEY"

接続手順

  1. 追加コマンドを実行 — claude mcp add --transport http casthtml https://casthtml.com/mcp`` を実行します。
  2. 認証を完了 — CastHTML のコンソールで資格情報を取得し、設定の Authorization: Bearer <キー> ヘッダーに追加します。Claude Code 内で /mcp を実行すると OAuth フローが開始されます。
  3. 状態を確認 — claude mcp list で接続済みと表示されれば成功です。OAuth コールバックが失敗する場合は claude mcp remove casthtml で削除して再追加し、ブラウザからコールバック URL へ到達できるか確認してください。オンライン Inspector に https://casthtml.com/mcp を貼り付け、initialize と tools/list を実行して接続を確認します。

🧰 ツール一覧(5)

ToolSafetyDescriptionParameters
publish_report
~140 tok
🟠 WritePublish an HTML page or Markdown report into a secure sandbox and get a shareable /r/{slug} link.content*: stringtitle: stringformat: stringrender_mode: stringis_public: boolean
update_report
~97 tok
🟠 WriteUpdate an existing report in place by id_or_slug while keeping the share link unchanged.id_or_slug*: stringcontent*: stringtitle: string
list_reports
~40 tok
🟢 ReadList the most recent 50 reports on the current account.—
get_report
~56 tok
🟢 ReadFetch report metadata and body by id_or_slug.id_or_slug*: string
delete_report
~63 tok
🔴 DestructivePermanently delete a report by id_or_slug and invalidate its share link.id_or_slug*: string

その他の接続ガイド