2026 May V9.3 - MCP
发布于:2026-05-18
This document explains how to enable the MCP service in Style3D on a Windows PC and connect Style3D MCP using either Claude Code or Codex.
You can choose to configure either Claude Code, Codex, or any other agent that supports calling the MCP service.
If several tools need to be used simultaneously, you can add the same Style3D MCP service to each of them separately.
I. Preparations Before Use
Before you begin, please confirm:
- The Style3D MCP service address and port number can be viewed or modified within the software. (Requires relevant Python and MCP permissions)
This document assumes the following MCP service addresses are used:
http://127.0.0.1:57281/mcpIf you change the port number in Style3D, you must also update the port number in subsequent Claude Code or Codex commands to match.
II. Enabling the MCP Service in Style3D
Enable using the software’s built-in settings.
Open the Style3D software and navigate to the following location:
User Setting -> Others -> MCP Server
In the MCP service settings, verify that the MCP service is enabled and check the service address and port number.
The default address is usually:
http://127.0.0.1:57281If you need to change the port number, you can do so here. After making the changes, please remember the new port number, as you will need to use the same address when adding MCP later.
Enable using the command line
If you need to open multiple Style3D clients simultaneously and have different MCP clients connect to separate Style3D instances, you can specify the MCP server port using the command-line arguments provided by Style3D.
Open Windows PowerShell and run the following command:
"C:\Program Files\Style3D\Style3D.exe" --mcp http://127.0.0.1:55555Among them, 5555 is the MCP service port used by the current Style3D instance. When launching multiple Style3D instances, simply assign a unique port number to each instance, then use the corresponding MCP address in Claude Code or Codex.This allows different clients to connect to separate instances of Style3D software.
III. Select a Client Connection to Style3D MCP
Option A: Use Claude Code
1. Install Claude Code
Open Windows PowerShell and run the following command:
irm https://claude.ai/install.ps1 | iexAfter installation, you need to add claude.exe to the environment variables. In Windows PowerShell, run the following command:
$env:PATH += ";$env:USERPROFILE\.local\bin"Close and reopen PowerShell, then run:
claude --versionIf the version number is displayed correctly, it means that Claude Code has been installed successfully.
2. Add Style3D MCP to Claude Code
After confirming that Style3D is running and the MCP service is enabled, run the following command in Windows PowerShell:
claude mcp add --transport http style3d http://127.0.0.1:57281/mcp --scope userCommand Description:
--transport httpConnect to the MCP service using HTTP.style3dThe MCP service name displayed in Claude Code.http://127.0.0.1:57281/mcpStyle3D MCP service address.--scope userAdd the MCP configuration to the current user scope.
Option B: Use Codex
1. Install Node.js
Before using Codex, you need to install Node.js first. After installation is complete, close and reopen the command-line tool, then run:
node --versionThen execute:
npm --versionIf both commands can display the version number correctly, it means that Node.js and npm are installed and available.
2. Install Codex
Run the following command in the terminal to install Codex:
Npm install -g @openai/codexAfter installation is complete, run:
codex --versionIf the version number is displayed correctly, it means Codex has been installed successfully.
3. Add Style3D MCP to Codex
After confirming that Style3D is running and the MCP service is enabled, execute the following command in the command line:
codex mcp add style3d --url http://127.0.0.1:57281/mcpIV. Verify Whether MCP Has Been Added Successfully
Claude Code Verification
Execute the following command to view the configured MCP services:
claude mcp listIf it appears in the list
style3d, indicating that Style3D MCP has been successfully added to Claude Code.Codex Verification
Execute the following command to view the configured MCP services:
codex mcp listIf it appears in the list
style3d, indicating that Style3D MCP has been successfully added to Codex.V. Port Change Notification
If the Style3D MCP server port is not
57281, you need to replace the port number in the add command.For example, the Style3D MCP server port has been changed to
60000At that time, the Claude Code command should be changed to:claude mcp add --transport http style3d http://127.0.0.1:60000/mcp --scope userThe Codex command should be changed to:
codex mcp add style3d --url http://127.0.0.1:60000/mcpThe port number must match the one in Style3D.
User Setting -> Others -> MCP ServerThe displayed port numbers are consistent.End