Skip to main content

An MCP server for guiding users through Standard Operating Procedures

Project description

sop-mcp

PyPI Python License

An MCP server that brings process automation to AI agents through Standard Operating Procedures.

LLMs are powerful but unpredictable when executing multi-step processes — they skip steps, summarize instead of act, and lose track of where they are. sop-mcp solves this by delivering procedures one step at a time, forcing the agent to execute each step and provide concrete output before advancing. This turns SOPs into a control mechanism that makes LLM behavior predictable and auditable.

The result: agents that follow processes the way humans do — step by step, with reasoning enforced at each level.

This approach aligns with Agent SOPs — a standardized markdown format for defining AI agent workflows using RFC 2119 requirement levels (MUST, SHOULD, MAY). sop-mcp adds the execution layer: an MCP server that delivers these procedures one step at a time and enforces completion before advancing.

Install

Kiro Cursor VS Code
Add to Kiro Install MCP Server Install on VS Code

Or add manually:

{
  "mcpServers": {
    "sop-mcp": {
      "command": "uvx",
      "args": ["sop-mcp"],
      "env": { "SOP_STORAGE_DIR": "/path/to/your/sops" }
    }
  }
}

How It Works

Every session starts the same way — discover what's available, then execute.

list_resources()                                     → catalog of sop:// URIs
run_sop(sop_name="sop_creation_guide")               → Step 1 + instructions
run_sop(..., current_step=1, step_output="...")      → Step 2
run_sop(..., current_step=2, step_output="...")      → Step 3
  ...
run_sop(..., current_step=N, step_output="...")      → Completion

Each response tells the agent to execute the step — not just read it.

Bundled SOPs

Four SOPs ship with the server so new users can try run_sop immediately:

SOP What it does
sop_creation_guide Step-by-step guide for authoring new SOPs with RFC 2119 requirements
code_review_process Standard code review workflow — prepare, review, address feedback, merge
employee_onboarding_setup IT setup for a new hire — alias, email, hardware selection
user_onboarding_process Provision identity, application access, and welcome package

Storage default: ~/.sop_mcp (seeded from the bundled SOPs on first run). Override with SOP_STORAGE_DIR.

Tools

Tool Purpose
list_resources Discover available SOPs (built in to every MCP client)
read_resource Read an SOP's full content before executing it
run_sop Execute an SOP step by step
publish_sop Create or update an SOP
submit_sop_feedback Record improvement suggestions

Full parameter reference: docs/mcp-reference.md

Documentation

Audience Resource
AI tools llms.txt — auto-discovered server description
Users skills/sop-mcp-usage/ — how to use
Operators skills/sop-mcp-configuration/ — install, configure, hooks
Developers CONTRIBUTING.md — build, test, design decisions
Reference docs/mcp-reference.md — full tool schemas

Development

uv sync              # install dependencies
uv run pytest        # run tests
uv run sop-mcp       # start server locally
uv run python scripts/generate_docs.py  # regenerate docs

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sop_mcp-0.10.1.tar.gz (160.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sop_mcp-0.10.1-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file sop_mcp-0.10.1.tar.gz.

File metadata

  • Download URL: sop_mcp-0.10.1.tar.gz
  • Upload date:
  • Size: 160.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sop_mcp-0.10.1.tar.gz
Algorithm Hash digest
SHA256 a0b21a4333f2b15de265f5d827ad272df5e438d5cdfc74fbd1dba0ba831bae76
MD5 78296d09d54152e4f692677d26886a77
BLAKE2b-256 e7be9e67f1f13c4d20201e080e18a2b134eda4c9c75e273edbf1b68f9ae7f6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sop_mcp-0.10.1.tar.gz:

Publisher: publish.yml on ValueArchitectsAI/sop-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sop_mcp-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: sop_mcp-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sop_mcp-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7693356ec4b1abc77a47c2db3fcc9bd78945f604fb0dde1acb668f17c4f83e32
MD5 2c6015a146af7a6329b1c891d2c78515
BLAKE2b-256 f1667e78cb090e86ce1a0acfb2a08354b45987e3cc65d43512d1762477456ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sop_mcp-0.10.1-py3-none-any.whl:

Publisher: publish.yml on ValueArchitectsAI/sop-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page