Stratum MCP — Claude Code MCP server: features and setup
Stratum runs agent tasks as tracked flows, checks completion conditions, and records an audit trail. Use it when a workflow needs explicit gates and verifiable steps.
claude mcp add stratum-mcp -- npx -y @smartmemory/stratumWhat Stratum MCP does
Stratum gives coding agents a stateful execution flow. The server validates a typed specification, returns the next step, then checks its postconditions when the agent reports completion. A failed check comes back with details the agent can use on a retry. Completed runs leave an audit record.
The TypeScript package includes the execution engine, an MCP server, and CLI commands such as query, gate, and guard. It accepts version: 1 specifications, supports human approval gates, and can dispatch Claude and Codex agents within one flow. Stratum handles execution rather than the product lifecycle above it.
Node.js 22 or later is required. The Python engine and Python MCP server have been retired, and the current engine rejects legacy v0.x specifications.
What it helps with
- break an agent task into checkable steps
- verify postconditions after each step
- pause a flow for human approval
- keep an audit trail across sessions
Example prompts for the agent
- Plan these changes as a flow and check each step's completion conditions.
- Pause before this step so I can review the result.
- Show the execution audit and explain the failed check.
How to install Stratum MCP
Platform CLI
claude mcp add stratum-mcp -- npx -y @smartmemory/stratumPlatform CLI
codex mcp add stratum-mcp -- npx -y @smartmemory/stratumConfig file
{
"mcpServers": {
"stratum-mcp": {
"command": "npx",
"args": [
"-y",
"@smartmemory/stratum"
]
}
}
}Config file
{
"servers": {
"stratum-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartmemory/stratum"
]
}
}
}Platform CLI
gemini mcp add stratum-mcp npx -y @smartmemory/stratumStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Stratum MCP
How do I install Stratum MCP in Claude Code?
Run claude mcp add stratum-mcp -- npx -y @smartmemory/stratum.
What does Stratum MCP do?
It manages agent flows, checks postconditions after steps, and keeps an execution audit.
Which Node.js version does Stratum MCP require?
It requires Node.js 22 or later and runs version: 1 specifications.