Prompt Decorators
@synaptiai
About Prompt Decorators
A standardized framework for enhancing how LLMs process and respond to prompts through composable decorators, featuring an official open standard specification and Python reference implementation. Claude Code plugin and MCP server integration.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"prompt-decorators": {
"command": "python",
"args": [
"-m",
"prompt_decorators",
"verify"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Prompt Decorators?
Prompt Decorators is a comprehensive framework that standardizes how prompts for Large Language Models (LLMs) are enhanced, structured, and transformed. It includes both an official specification and a Python reference implementation, plus a Model Context Protocol (MCP) server that enables decorator functionality in tools like Claude Desktop.
How to use Prompt Decorators?
Install the package via pip install prompt-decorators (or with [mcp] for MCP integration). Load decorator definitions, create decorator instances with parameters, and apply them to prompts. The MCP server can be run alongside Claude Desktop for on‑the‑fly decorator usage.
Key features of Prompt Decorators
- Standardized annotation system inspired by software design patterns
- 140+ pre‑built decorators for reasoning, formatting, and more
- Registry‑based decorator management with parameter validation
- Composability: combine multiple decorators cleanly
- MCP server integration for desktop AI applications
- Claude Code plugin with inline sigil expansion
Use cases of Prompt Decorators
- Craft prompts for specific reasoning patterns (e.g., StepByStep, Reasoning)
- Structure outputs in consistent formats with OutputFormat decorators
- Ensure uniform model behavior across different LLMs and platforms
- Reduce token consumption by replacing verbose instructions with concise annotations
FAQ from Prompt Decorators
What are Prompt Decorators?
Prompt Decorators are composable annotations (e.g., +++Reasoning(depth=comprehensive)) that modify LLM behavior without rewriting the core prompt.
How do I install Prompt Decorators?
Run pip install prompt-decorators. For MCP integration, use pip install "prompt-decorators[mcp]".
What is the MCP server for?
The MCP server enables prompt decorator functionality in tools like Claude Desktop, allowing users to apply decorators directly within those applications.
Does Prompt Decorators work with any LLM?
Yes, the specification is platform‑agnostic. The Python implementation and MCP server work with any LLM that accepts prompt modifications.
Where do decorators get defined?
Decorators are defined in a standardized JSON registry and loaded at runtime. The package includes a comprehensive library of 140+ built‑in decorators.
More Developer Tools MCP servers
mcp-excalidraw
yctimlinMCP server and Claude Code skill for Excalidraw — programmatic canvas toolkit to create, edit, and export diagrams via AI agents with real-time canvas sync.
OpenSumi
opensumiA framework helps you quickly build AI Native IDE products. MCP Client, supports Model Context Protocol (MCP) tools via MCP server.
Burp Suite MCP Server Extension
PortSwiggerMCP Server for Burp
nuxt-mcp / vite-plugin-mcp
antfuMCP server helping models to understand your Vite/Nuxt app better.
Golf
golf-mcpProduction-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
Comments