zenofmcp
The Zen of MCP: principles for designing tools that models can use well.
A model is only as good as the tools you hand it. These principles cover how to design, describe, protect and operate tools for models, whether you build them with the Model Context Protocol (MCP) or anything else.
import this gave Python a shared mindset. import zenofmcp does the same for this corner of AI engineering: 15 short principles you can remember, cite by number and argue about.
Written against the MCP specification as of 2026-07-28 (stateless, no protocol sessions). The principles themselves don't depend on any spec version.
pip install zenofmcp # or: uv pip install zenofmcp / uv add zenofmcp
uvx zenofmcp --random # run the CLI without installing (uv)
>>> import zenofmcp
The Zen of MCP, by Anuj Sadani
1. Each tool should do one thing—and its name should say which.
2. Few sharp tools are better than many blunt ones.
...
The principles
Numbers are stable across releases, so "see principle 3" in a review always means the same thing.
Design
- Each tool should do one thing—and its name should say which.
- Few sharp tools are better than many blunt ones.
- Design for the job, not the endpoint.
Describe
- The description is the interface.
- Schemas guide; validation guards.
- Errors should point the way forward.
- In the face of missing input, refuse the temptation to guess.
State
- Keep the server stateless; let handles carry the state.
- Long work should return a receipt, not a wait.
- Every call may arrive twice—make sure it only counts once.
Protect
- Borrow the caller's authority; never exceed it.
- The irreversible should never be implicit.
- Never pass outside text off as your own.
Operate
- Enough is better than everything.
- A published tool is a public API.
Every principle comes with an explanation and a concrete do/don't example: zenofmcp --examples.
Usage
On import
import zenofmcp # prints the principles
from zenofmcp import verbose # prints them with explanations
Set ZENOFMCP_QUIET=1 to import without printing.
Command line
zenofmcp # the principles
zenofmcp --verbose # with explanations
zenofmcp --examples # with a do/don't example for each
zenofmcp --themes # grouped by theme
zenofmcp -n 3 # one principle in full
zenofmcp --random # one at random: a daily reminder for your shell profile
zenofmcp --checklist # Markdown checklist for PRs and agent instructions
zenofmcp --json # machine-readable
python -m zenofmcp works the same way.
As data
import os; os.environ["ZENOFMCP_QUIET"] = "1"
import zenofmcp
zenofmcp.get(3).text # "Design for the job, not the endpoint."
zenofmcp.by_theme("design") # list of Principle objects
[p.text for p in zenofmcp.PRINCIPLES]
Putting it into your workflow
A slogan is not a process. The principles help most where decisions are made:
- Pull requests. Paste
zenofmcp --checklistinto.github/pull_request_template.md. Reviewers can then point to a principle by number. - Coding agents. Add the checklist (or
zenofmcp --themes) toAGENTS.md,CLAUDE.mdor your editor's rules file, so your agent works by the same standard you review by. - Onboarding.
zenofmcp --examplesis a short read for anyone new to the team's approach.
What this is, and isn't
- It is a compact, opinionated philosophy and a shared vocabulary for teams.
- It isn't a linter, a framework or a replacement for engineering judgment.
- It's vendor-neutral: no principle depends on a particular model, framework or vendor.
Contributing
The principles should evolve through discussion, not by decree. Propose a new principle, a rewording or a better example by opening an issue. See CONTRIBUTING.md.
License
Metadata
Release files for zenofmcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zenofmcp-0.1.0.tar.gz | 11.7 kB | With provenance | Details for zenofmcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zenofmcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zenofmcp-0.1.0-py3-none-any.whl |
Total release size: 22.2 kB
Release files / zenofmcp-0.1.0.tar.gz
| Download URL | zenofmcp-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
609808156b21dbbd93b9245d7049925106e9863a8b68d83eab9f704f26e815c5
|
|
BLAKE2b-256 checksum How to use checksums |
b6d9269b3248e7fdd106bc0ae7be79012185367e74103dc90426d1b95e36a715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / zenofmcp-0.1.0-py3-none-any.whl
| Download URL | zenofmcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6985bc4a8936d47518599bc0018a54ded295fae27ad016d34383f0260f8646ba
|
|
BLAKE2b-256 checksum How to use checksums |
13f39a7cead9c745464cb4891302e8f67e5d586e56aa0d77954dbe5be41fcda8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for zenofmcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zenofmcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.