3d-ai-studio-secure-mcp

3d-ai-studio-secure-mcp

Secure MCP server for Windows to control 3D AI Studio REST API from Codex/Claude Code, with API key injected via 1Password Environments.

Category
Visit Server

README

3D AI Studio Secure MCP

Windows の Codex / Claude Code から 3D AI Studio REST API を操作するための MCP サーバーです。API キーは 1Password Environments から op run --environment により子プロセスへ実行時だけ注入されます。

セキュリティ境界

  • Git、MCP設定、コマンドライン引数に API キーを保存しません。
  • MCP サーバーは THREED_AI_STUDIO_API_KEY の存在だけを確認し、値を出力しません。
  • op run の標準マスキングを維持します(--no-masking は使用しません)。
  • 読み取りツールと課金ツールを分離し、課金ツールは confirmCreditSpend: true を必須にします。
  • 上流の非構造化エラー本文は返しません。

同一 Windows ユーザーの別プロセスが環境変数を読める可能性は残ります。信頼できないプロセスと同時に実行せず、必要なら最小権限の 1Password Service Account を使ってください。

必要条件

  • Windows 10/11、PowerShell 5.1+
  • Node.js 20+
  • Codex CLI または Claude Code
  • 1Password CLI 2.33.0-beta.02 以降(1Password Environments は公式ドキュメント上 beta)

確認:

node --version
codex --version
claude --version
op --version

1Password CLI がない場合は、公式案内に従ってインストールします。通常版が要件を満たす場合:

winget install 1password-cli

op --version が要件未満の場合は、1Password の公式 beta 配布から 2.33.0-beta.02 以降を導入してください。

1Password Environment

1Password アプリの Developer > Environments に Environment を1つ作り、次の変数だけを追加します。

変数 値
THREED_AI_STUDIO_API_KEY 3D AI Studio ダッシュボードで一度だけ表示される API キー

Environment の Manage environment > Copy environment ID で ID をコピーします。Environment ID は秘密値ではありませんが、リポジトリには固定せず Windows ユーザー環境変数に保存します。

[Environment]::SetEnvironmentVariable(
  "THREED_AI_STUDIO_OP_ENVIRONMENT_ID",
  "<Environment ID>",
  "User"
)

新しいターミナルを開いてください。API キー自体を PowerShell に設定したり、.env に保存したりしないでください。

セットアップ

npm install
npm run build

Codex と Claude Code に非秘密の stdio 起動設定を登録:

.\scripts\register-clients.ps1 -Client Both

個別に登録する場合は Codex または Claude を指定します。登録内容は PowerShell ランチャーのパスだけで、API キーも Environment ID も含みません。

起動確認

設定確認:

codex mcp get 3d-ai-studio
claude mcp get 3d-ai-studio

1Password 経由のプロセス起動を確認:

.\scripts\start-mcp.ps1

正常時は stdio MCP サーバーとして待機します。終了は Ctrl+C です。Codex / Claude Code を再起動し、MCP一覧に 3d-ai-studio が表示されることを確認してください。

最初は課金しない get_credit_balance を呼び出してください。生成は料金とプロンプトを確認後に限り generate_rapid_text_to_3d を使います。3D AI Studio の生成 API は非同期のため、返された task UUID を get_generation_status で確認します。

MCPツール

  • get_credit_balance: 残高取得(非課金)
  • get_generation_status: 生成状態取得(新規生成なし)
  • generate_rapid_text_to_3d: Rapid Text-to-3D生成(課金、明示確認必須)

API Base URL は https://api.3daistudio.com、認証は Bearer token です。

開発時の検証

npm run check
npm test
git grep -n -I -E "(api[_-]?key|token|secret).{0,30}[=:].{1,}" -- .

最後の検索結果は変数名や説明を人間が確認するためのものです。実キーをテストに使わないでください。

公式資料

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured