# Sandcastle MCP Server

> Run and manage AI workflows from chat.

- **URL**: https://followmcp.com/en/servers/sandcastle
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 93
- **FMRS Score**: 38/100 (Grade D)
- **Source**: https://github.com/gizmax/Sandcastle
- **Transports**: stdio (local process)
- **Runtimes**: Python 3.12+
- **Auth**: Optional API key

## Overview
Sandcastle is an open-source AI workflow orchestrator with a built-in MCP server that connects compatible chat clients to a running Sandcastle service. It can run saved workflows or inline YAML workflows, report run status, cancel runs, list run records, save workflows, and manage schedules. The README also describes DAG and parallel execution, multi-provider model routing, sandbox backends, cost tracking, approval gates, privacy rules, and audit features.

## Best for
- Users with a deployed Sandcastle service who want to manage workflows from Claude Desktop, Cursor, or Windsurf.
- Teams composing model calls, integrations, and approval steps in YAML DAG workflows.

## Not for
- Users without a running Sandcastle service; the MCP server requires one to connect to.
- Users seeking general chat or who do not need workflow orchestration.
- Users who need to read workflow, schedule, or health information as MCP resources; the README lists these as resources, not tools.

## Required permissions
- Requires access to the configured Sandcastle service address.
- Requires an API key for service authentication; the client example configures it as `SANDCASTLE_API_KEY`.
- Can perform the requested tool operations: run, inspect, and cancel workflows; save definitions; and create or delete schedules.

## Risks
- Workflow execution may call configured models, integrations, and sandbox backends, with associated costs or external side effects.
- Saving workflows, cancelling runs, and managing schedules change server state; use an appropriately scoped service and API key.
- The README describes sandboxing, data residency, PII handling, and audit capabilities, but their protection depends on deployment configuration and the selected backend.

## Client config (JSON)
```json
{"mcpServers":{"sandcastle":{"command":"sandcastle","args":["mcp"],"env":{"SANDCASTLE_URL":"http://localhost:8080","SANDCASTLE_API_KEY":"sc_..."}}}}
```

## Tools (8)
- `run_workflow`: Run a saved workflow by name, with optional input data and wait mode.
- `run_workflow_yaml`: Run a workflow from an inline YAML definition.
- `get_run_status`: Get detailed run status, including step results.
- `cancel_run`: Cancel a queued or running workflow.
- `list_runs`: List runs with optional status and workflow filters.
- `save_workflow`: Save a workflow YAML definition to the server.
- `create_schedule`: Create a cron schedule for a workflow.
- `delete_schedule`: Delete a workflow schedule.
