Stratum MCP server
Structured execution for coding agents: contracts, postconditions, gates, guardrails.
1 stars235 downloads/wk
Reviews
Write oneNobody has reviewed Stratum MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Stratum MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-16 · same rubric, same numbers if you re-run it
- Code scan96 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 3 days ago15/15
- Maintainer identityregistry namespace matches repository owner7/10
How Stratum MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 91/100
- higher than 85% of 48,243 servers
- GitHub stars
- 1
- more than 65% of 28,706 servers
- Downloads a week
- 235
- more than 77% of 12,306 servers with a package
Release history: 6 versions in the registry since 2026-09-06, latest 2026-09-29, typically one every 2 days.
Install Stratum MCP in Claude Code, Cursor or VS Code
Runs npx -y @smartmemory/stratum on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add stratum-mcp -- npx -y @smartmemory/stratum
What the publisher says
From the Stratum MCP repository's README, as published. We do not edit it. Read it on GitHub
Stratum
State machine dispatch server for AI agent workflows.
Your agent proposes the step. Stratum decides whether it actually finished.
Stratum gives AI coding agents (Claude Code, Codex, etc.) a formal execution model. Instead of improvising a plan and retrying blindly, the agent writes a typed spec, the server tracks state, enforces postconditions, and returns structured failure context on retry. Every step produces an auditable trace record.
Where it sits. Stratum is the execution kernel, one layer below the thing most people run day to day. Compose drives the product lifecycle (design, blueprint, plan, review gates) and calls Stratum to execute each step. Reach for Stratum directly when you want the state machine and the postconditions without a lifecycle on top of them.
The founding intent behind this machinery is recorded in docs/VISION.md: a spec language that keeps LLMs on rails invisibly, so the same conversation yields stronger results than freeform execution.
One shipped component:
- ts/ — the TypeScript engine (@smartmemory/stratum): IR validation (version: 1 specs), flow execution with ensure postconditions, MCP server for Claude Code, query/gate/guard CLI, background flows and background agent runs. Published to npm as @smartmemory/stratum (bins: stratum, stratum-mcp) and listed in the MCP registry as ai.smartmemory/stratum-mcp.
Engine status (2026-07-18, STRAT-PY-RETIRE): the TS engine is the ONLY engine.
The Python library (stratum-py) and Python MCP server (stratum-mcp) are retired.
Their source is archived on the python-legacy branch, and PyPI packages are
frozen at their final releases. The engine executes version: 1 specs exclusively.
Legacy v0.x specs are rejected by validate and classified (report-only) by
stratum migrate --check. The authoritative v1 shape is the Zod IR schema in
ts/src/ir/ plus stratum validate output.
Governed workflows as auditable flows — on any agent, not just one vendor. Unlike a single-vendor in-context orchestrator, Stratum runs as an MCP server and a library under Claude Code, Codex, or any MCP host; enforces typed contracts and ensure postconditions on every flow execution; stops at real human gates; dispatches Claude and Codex agents in one flow (so an independent reviewer can be a different model from the implementer); and persists flow state across sessions. Where you want raw in-context fan-out, reach for an in-host workflow runtime; where you want the run governed, portable, and auditable, that's a Stratum workflow.
Table of Contents
- Installation
- Quick Start
- Core Concepts
- YAML Spec Reference
- MCP Tools API
- Step Types
- Ensures (Postconditions)
- Contracts and Output Validation
- Gates (Human-in-the-Loop)
- Flow Composition
- Routing
- Iterations
Installation
Install from npm (Node >= 22):
npm install -g @smartmemory/stratum # provides `stratum` (CLI) and `stratum-mcp` (MCP server)Or run from a checkout for development:
git clone https://github.com/smartmemory/stratum
cd stratum/ts && npm install # or pnpm installShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-10-16restoreC → Ascore 91
Stratum MCP: common questions
- Is Stratum MCP server safe?
- Yes, by our scan: it is graded A (91/100). Read the Stratum MCP safety report
- How do I install Stratum MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Stratum MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Stratum MCP maintained?
- The last commit was 23 days ago (2026-10-13). The latest release is v0.7.3.
- How does Stratum MCP compare with other MCP servers?
- safety score 91/100 (higher than 85% of 48,243 servers); github stars 1 (more than 65% of 28,706 servers); downloads a week 235 (more than 77% of 12,306 servers with a package). Full comparison.