ArtCraft MCP Server
README.md
# ArtCraft MCP Server & Automation Suite
[](https://modelcontextprotocol.io)
[](https://www.rust-lang.org)
[](https://python.org)
[](./LICENSE.md)
Standalone repository bundling all **Model Context Protocol (MCP)** server implementations, automation CLI tools, agent skills, JSON-RPC schemas, and companion bridge routes from the **ArtCraft** generative media platform.
This project enables AI coding assistants (Claude Desktop, Windsurf, Cursor, Antigravity, OpenClaw) to natively generate images, videos, 3D meshes, Gaussian splats, TTS, and manage media assets through natural language commands or automated scripts.
---
## š Project Structure
```
artcraft-mcp/
āāā bin/ # Standalone, ready-to-run 64-bit Windows binary
ā āāā artcraft-mcp.exe # Full 61-tool ArtCraft MCP server
ā
āāā rust/ # Rust Source Implementation
ā āāā README.md # Architecture & crate guide
ā āāā artcraft_mcp_cli/ # Full 61-tool MCP server crate
ā āāā Cargo.toml
ā āāā README.md
ā āāā src/
ā āāā main.rs, server.rs, auth.rs, client.rs, types.rs
ā āāā tools/ # 15 tool modules (image, video, 3D, voice, jobs...)
ā
āāā tools/ # Standalone Python Automation CLI Suite
ā āāā artcraft_runner.py # Batch video & image generator with async polling
ā āāā artcraft_3d_runner.py # Hunyuan 3D & WorldLabs Marble Splat pipeline
ā āāā artcraft_angle_matrix.py # 4-quadrant camera orbit generator (flux_2_lora_angles)
ā āāā artcraft_audio_weaver.py # Audio stem reference & voice synthesis weaver
ā āāā artcraft_cost_estimator.py # Live credit balance inspector & cost estimator
ā
āāā skills/ # AI Agent Skills & Knowledge References
ā āāā artcraft-mcp/
ā ā āāā SKILL.md # Main agent instruction skill
ā ā āāā references/ # Model matrices, aspect ratios & specs
ā ā āāā aspect-ratios.md
ā ā āāā image-models.md
ā ā āāā video-models.md
ā ā āāā three_d_and_splat_models.md
ā āāā open-source-contributor/
ā āāā SKILL.md # Open source contributor workflows & checklist
ā
āāā companion/ # Desktop App & API Companion Integration
ā āāā mcp_routes.py # FastAPI / FastMCP lifecycle routes (start, stop, health, token)
ā āāā docs_mcp_server.md # Architecture & companion integration guide
ā
āāā schemas/ # Complete JSON-RPC tool definitions (61 tools)
ā āāā artcraft_generate_image.json
ā āāā artcraft_generate_video.json
ā āāā artcraft_generate_3d_object.json
ā āāā artcraft_generate_audio.json
ā āāā artcraft_download_media_file.json
ā āāā artcraft_estimate_splat_cost.json
ā āāā ... (55 more schemas)
ā
āāā ArtCraft-MCP-Setup-Guide.md # Full client setup guide (Claude, Windsurf, Cursor)
āāā TOOLS.md # Comprehensive CLI documentation
āāā DEV-NOTES.md # Development notes & architecture
āāā CHANGELOG.md # Release history
āāā CONTRIBUTING.md # Contribution guidelines
āāā CODE_OF_CONDUCT.md # Code of conduct
āāā SECURITY.md # Security policies
āāā PULL_REQUEST_TEMPLATE.md # Pull request template
āāā LICENSE.md # License terms
āāā setup_mcp.py # 1-Click MCP client configuration utility
```
---
## ā” Quick Start
### 1. One-Click Setup (Automatic)
Run the included configuration script to auto-detect and register `artcraft-mcp` across Claude Desktop, Windsurf, or Cursor:
```powershell
python setup_mcp.py
```
### 2. Manual Configuration
Add to your MCP client configuration file (e.g., `claude_desktop_config.json` or `~/.codeium/windsurf/mcp_config.json`):
```json
{
"mcpServers": {
"artcraft": {
"command": "C:\\path\\to\\artcraft-mcp\\bin\\artcraft-mcp.exe",
"args": [],
"description": "ArtCraft AI generative media platform (Full 61-tool engine)"
}
}
}
```
---
## š Authentication
The server resolves credentials in the following order:
1. **`ARTCRAFT_MCP_PRIVATE_SESSION_TOKEN`**: Dedicated MCP session Bearer token (`mcp_session_private_...`).
2. **`ARTCRAFT_API_KEY`**: Automatically exchanged with `POST /v1/mcp/session/create` for an active session.
3. **`ARTCRAFT_SESSION` and `ARTCRAFT_AVT`**: Session cookie environment variables.
4. **Credential Files**: Auto-detected from `~/Artcraft/credentials/`:
- `artcraft_session.txt` ā Your session cookie
- `artcraft_avt.txt` ā Your visitor cookie
5. **ArtCraft Desktop App Store**: Auto-detected from `%LOCALAPPDATA%\ai.artcraft.app\.cookies`.
---
## š ļø CLI Automation Suite
All scripts in `tools/` communicate directly with `bin/artcraft-mcp-server.exe` over stdio JSON-RPC without needing external servers:
### Check Credits & Generation Costs
```powershell
python tools/artcraft_cost_estimator.py --check-balance --video-model seedance_2p0 --duration 5
```
### Batch Image & Video Generation
```powershell
python tools/artcraft_runner.py `
--prompt "Cinematic cyberpunk alleyway at dusk, anamorphic lens, neon reflections" `
--model flux_1_dev `
--copies 2 `
--out-dir "./outputs"
```
### Hunyuan 3D Mesh & Gaussian Splat Generation
```powershell
python tools/artcraft_3d_runner.py `
--image "path/to/character.png" `
--mode both `
--out-dir "./outputs/3d"
```
### 4-Quadrant Camera Orbit Pass
```powershell
python tools/artcraft_angle_matrix.py `
--image "path/to/subject.png" `
--prompt "Maintain facial details during camera orbit" `
--out-dir "./outputs/orbit"
```
---
## š¤ AI Agent Skills
Agent skills and prompt guidance are provided in `skills/artcraft-mcp/`:
- **`SKILL.md`**: Behavioral instructions, parameter schemas, and error handling for LLM agents.
- **`references/`**: Model capability tables, aspect ratio rules, and duration limits for:
- **Image**: Flux 1 Dev/Schnell, Flux Pro 1.1 Ultra, Nano Banana Pro, Seedream 4/4.5/5, Midjourney 7/8.
- **Video**: Kling (3.0/2.6/2.1), Veo (3/3.1), Seedance (2.0/1.5), Sora 2, Grok Imagine Video.
- **3D & Splat**: Hunyuan 3D 2.0/2.1, WorldLabs Marble Gaussian Splatting.
---
## š„ļø Companion API Bridge
For applications integrating the MCP server as a managed subprocess, `companion/mcp_routes.py` provides FastAPI endpoints:
- `GET /api/mcp/health` ā Check process state and PID.
- `POST /api/mcp/start` ā Spawn the binary with stdio pipes.
- `POST /api/mcp/stop` ā Gracefully terminate or kill the process.
- `POST /api/mcp/token` ā Exchange API keys/cookies for an MCP session token.
---
## š Documentation
- [Setup Guide](ArtCraft-MCP-Setup-Guide.md) ā Comprehensive client installation manual.
- [CLI Tools Guide](TOOLS.md) ā Detailed parameters for all Python tools.
- [Developer Notes](DEV-NOTES.md) ā Architecture and protocol details.
- [Rust Source Guide](rust/README.md) ā Source code walkthrough for both crates.
- [Companion Guide](companion/docs_mcp_server.md) ā FastAPI / FastMCP bridge architecture.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues