CLIP STUDIO PAINT 5.1.2 Production MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CLIP STUDIO PAINT 5.1.2 Production MCPScreenshot the canvas and describe what's on screen."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CLIP STUDIO PAINT 5.1.2 Production MCP
Unofficial community project. This repository is not affiliated with, endorsed by, or supported by CELSYS. It is a local stdio MCP bridge for Windows + CLIP STUDIO PAINT 5.1.2.0 production + zh-CN + DPI 120. Other CSP versions, preview/Early Access builds, locales, DPI values, and operating systems are not supported by the bundled strict profile.
As of 2026-08-25, the CELSYS public documentation reviewed for this project does not document a general-purpose CSP document/layer API, scripting runtime, MCP, or supported headless CLI; its published SDK is scoped to EX filter plug-ins. In the validated 5.1.2 zh-CN profile, CSP's custom-drawn areas also do not expose meaningful layer, brush, or menu objects through Windows UI Automation. This project therefore offers 33 deliberately constrained capabilities built from visible-window inspection, screenshots, allowlisted input, registered shortcuts/Auto Actions, and file exchange. It is not a native layer-object API and cannot honestly expose every internal CSP function.
What is included
33 MCP tools; see the complete tool catalog.
CSP executable attestation: fixed path, Authenticode signature, CELSYS company field, exact file version, and SHA-256.
Per-Monitor DPI Awareness V2 with a strict
zh-CN/ DPI 120 production profile.Process, main-window, foreground-window, dialog, display, user-activity, screenshot, pixel sampling, and screenshot-difference inspection.
Screenshot-bound pointer movement, clicks, double-clicks, drags, scrolling, navigation keys, and Unicode text input.
Versioned shortcut commands, constrained command sequences, and user-registered Auto Actions.
Configured path roots for asset listing, file metadata, import dispatch, export scanning, and stable-output verification.
Strict native
#32770file-dialog filling/submission with explicit overwrite intent.A preflight confirmation protocol for all 10 atomic input tools.
Local stdio transport only: no listening port, shell, registry, arbitrary-process, or unrestricted-filesystem tool.
Privacy boundary
Local stdio means this server opens no network listener; it does not mean all MCP data stays on the machine. The MCP host receives tool inputs and outputs, including screenshots, visible UI text, window titles, and configured absolute paths, and may send them to a remote model under that host's data policy. Keep sensitive documents closed, review the host's privacy controls, and treat text or imagery shown inside CSP as untrusted data rather than instructions for the agent.
Related MCP server: atomic-computer-mcp
Support matrix
Component | Supported target |
Operating system | Windows only |
CLIP STUDIO PAINT |
|
UI profile |
|
Python | CPython |
MCP host | Codex registration script included; other stdio hosts require equivalent approval policy |
CSP edition | Core visible-window tools are profile-bound; Auto Actions require PRO or EX and |
The strict profile fails closed when the executable, shortcut files, locale, DPI, or window identity does not match. Do not remove those checks to make a different machine “work”; create and validate a new profile instead.
Quick start: configure → install → test → register
Prerequisites: Git, CPython 3.13, Codex, and the exact supported CSP production build. Clone the repository to a trusted local directory:
git clone https://github.com/A2pha/clip-studio-paint-5.1.2-production-mcp.git
Set-Location .\clip-studio-paint-5.1.2-production-mcp1. Configure the local machine
Run the configuration helper before installation. It creates a gitignored local configuration; machine-specific CSP, shortcut-profile, and asset-root paths must not be committed.
$CspExecutable = Read-Host 'Absolute path to CLIPStudioPaint.exe 5.1.2 production'
& .\scripts\configure.ps1 -CspExecutable $CspExecutableThe configuration must identify:
the production
CLIPStudioPaint.exe;the expected CELSYS signature,
5.1.2.0version, and executable SHA-256;the current user's CSP shortcut-setting files and their SHA-256 values;
three separate asset roots: read-only
Input, read/writeWorking, and read/writeExports.
Unless explicitly overridden, the helper discovers the supported shortcut files
under the current user's %APPDATA% and creates the asset root as
CSP-MCP-Assets under the current user's Documents folder. Use
-ShortcutProfileFiles and -AssetsRoot when those locations differ.
It also copies the repository's inert mcp-dialog-smoke.svg fixture into the
Input root when that filename is absent; it never overwrites an existing file.
At runtime, configuration resolves in this order: the absolute path in
CSP_MCP_CONFIG, then config/config.local.json, then the tracked placeholder
config/config.json. The tracked file is a template, not a ready-to-trust
machine profile.
Treat generated hashes as an attestation of a machine you have already inspected, not as proof that an arbitrary executable or shortcut file is trustworthy.
2. Install locked dependencies
& .\scripts\install.ps1The installer creates .venv in the repository and installs mcp==1.29.0, pywin32==312, and Pillow==12.3.0 from requirements.lock.txt with hashes enforced. If the ACL audit rejects an untrusted ancestor, move the checkout/assets to a trusted directory or have an administrator review the ancestor ACLs. The explicit risk-acceptance switch skips only the initial ancestor gate; it does not repair ACLs or bypass the final requirement that every audited root and file tree be protected.
3. Test before registration
$Python = Join-Path $PWD '.venv\Scripts\python.exe'
& $Python -X utf8 -m compileall -q csp_mcp server.py tests
& $Python -X utf8 -m unittest discover -s tests -p 'test_*.py' -v
& $Python -X utf8 .\tests\smoke_stdio.pyCompilation and unit tests run in GitHub Actions on Windows/Python 3.13. The stdio smoke test additionally needs a valid local configuration and the supported CSP environment. It is intentionally excluded from hosted CI.
The optional interactive acceptance test restores and focuses CSP, opens a known Windows file dialog, validates a configured fixture path without submitting it, cancels that exact dialog, and compares screenshots:
& $Python -X utf8 .\tests\acceptance_interactive.pyRun it only while the supported CSP build is open, no document-saving prompt is present, and you are not simultaneously using the mouse or keyboard. It does not replace manual review.
4. Register with Codex
& .\scripts\register-codex.ps1Restart Codex after registration, then call csp_health followed by csp_capabilities. To remove the registration, run:
& .\scripts\unregister-codex.ps1Registration and unregistration retain a timestamped rollback backup beside
Codex's config.toml. That backup contains the complete previous Codex
configuration and may include sensitive environment values. The scripts reject
reparse points or unsafe write ACLs at that location; protect the directory and
delete obsolete backups after confirming the new registration works.
The registration keeps writes as the default approval mode. It auto-approves only the 10 atomic consumers that cannot operate without a server-issued single-use preflight token: move, click, drag, scroll, text, navigation key, registered command, Auto Action, command sequence, and strict native file dialog. csp_preflight itself remains approval-gated.
Confirmation-token flow
For ordinary visible UI input:
Call
csp_health,csp_capabilities, andcsp_get_state.Call
csp_capturefor read-only planning.Call
csp_preflight(operation="input", identifier="exact_tool_name", parameters_json="exact JSON parameters")without an old capture ID.After the user approves preflight, immediately call
csp_captureagain and verify that the target is still visible.Call the exact atomic tool with the fresh
captureId, returnedconfirmToken, and byte-for-byte equivalent business parameters.Inspect the post-operation capture; repeat preflight for the next input.
Tokens expire after 45 seconds, are single-use, bind the complete parameters and exact CSP window/dialog identity, and are invalidated by foreground, pixel, generation, or input-time changes. Parameter mismatches consume the token. csp_cancel is a narrow exception: it remains host approval-gated and sends one Escape only to the exact CSP main window or its unique verified standard dialog.
The MCP protocol does not provide the server with cryptographic proof that the human approved a host prompt. The trust boundary therefore includes the configured Codex host. A malicious custom stdio client running as the same user is out of scope; see the security model.
File operations
Path-taking tools operate only inside the three roots created by local configuration. They reject UNC/device paths, alternate data streams, wildcards, reserved device names, reparse points, implicit overwrite, and other unsupported cases. Existing paths are checked through handles and existing inputs/replacement targets are checked for hard links, but these mitigations cannot eliminate every check-to-use race.
Saving or replacing a file uses this explicit flow:
Validate the exact target with
csp_validate_path.Preflight and run the registered
document.save_as_dialogcommand.Obtain the exact main/dialog HWNDs, then preflight
csp_native_file_dialogwith the full path, intent, and submit flag.Submit only through the verified file-dialog control profile. Any later overwrite/format prompt requires manual handling.
Accept completion only after
csp_wait_for_fileverifies a stable, non-empty target and returns its SHA-256.
Ctrl+S is not registered because CSP does not expose the current document path through a public API. Generic coordinate/text tools must not be used for open/save/export, account, cloud, store, community, or publishing workflows.
csp_open_document dispatches CLIPStudioPaint.exe <path> as an argument array because that behavior was observed in the reference deployment. CELSYS does not document it as a stable CLI contract. A successful response proves dispatch and CSP window evidence, not which document tab owns the path; verify the result with a capture.
Auto Actions
The tracked Auto Action registry starts empty. Create and manually validate each action in CSP, bind only Ctrl+Alt+[Shift]+F1..F12, then register it locally as described in Auto Actions setup.
Auto Actions are available in CSP PRO/EX, not DEBUT.
Every action requires preflight and an exact registered ID.
Production configuration rejects
effect: "filesystem".Each entry must attest
attested_no_file_io: true.The server cannot parse proprietary
.laffiles, so that attestation is an administrator promise rather than technical proof.
Use the dedicated validated file workflow for open/save/export.
Project layout
.
├─ csp_mcp\ MCP application, policy, controller, Win32 backend
├─ config\ tracked examples and registries
├─ docs\ tools, security, research, Auto Actions
├─ scripts\ configure, install, register, unregister, ACL audit
├─ tests\ unit, stdio smoke, opt-in interactive acceptance
├─ server.py stdio entry point
├─ pyproject.toml
├─ requirements.txt
└─ requirements.lock.txtDocumentation and sources
Development and release boundary
Pull requests should preserve fail-closed version/signature/profile checks and add tests for behavior changes. Hosted CI performs only compilation and unit tests; CSP-dependent smoke and interactive validation require an explicitly prepared Windows workstation. See CONTRIBUTING.md and the security policy.
The bundled profile is validated only for the exact target listed above. A CSP update, language change, DPI change, shortcut edit, or license-edition change requires fresh signature/hash checks, screenshot calibration, shortcut verification, and non-destructive acceptance testing before a new profile is published.
License and trademarks
The project is available under the MIT License. Third-party dependency notices are recorded in THIRD_PARTY_NOTICES.md.
CLIP STUDIO PAINT and CELSYS are trademarks of their respective owners. This repository does not distribute CELSYS software, SDK source, private protocols, or reverse-engineered .clip format code.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to automate Windows desktop applications through window manipulation, image recognition, OCR, keyboard/mouse simulation, and memory operations via the MCP protocol.MIT
- FlicenseNot gradedqualityDmaintenanceEnables automation of native Windows desktop applications through screen capture, mouse/keyboard control, and waiting for UI changes, exposing them as MCP tools.1
- AlicenseNot gradedqualityBmaintenanceMCP server for driving any Windows app through five layers including OCR, UI Automation, and direct OS operations. Enables AI agents to control Windows desktop and OS cursor-free, even on background/locked windows.1512MIT
- AlicenseBqualityBmaintenanceMCP server for Windows computer use, providing low-token, low-latency automation through UIA/Win32, OCR, and vision. It enables batch actions, shortcuts, isolated desktop execution, and browser control via MCP tools.132MIT
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Eyes and hands on real Windows PCs — observe, click, type via Glasswarp API.
Create App Store screenshots, icons, ASO copy, localization, and revisions via hosted MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/A2pha/clip-studio-paint-5.1.2-production-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server