promptlint
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
⚡ PromptLint
Write prompts. Lint them. Test them. Ship them.
The developer toolkit for testing, analyzing, optimizing, and versioning AI prompts.
Live Playground • Documentation • VS Code Extension • Report Bug
PROMPTLINT
│
┌─────┼─────┐
↓ ↓ ↓
LINT FIX TEST
│ │ │
└─────┼─────┘
↓
SCORE ENGINE ── (Quality • Security • Cost)🚀 Quickstart
Install PromptLint in seconds:
pip install promptlint1. Score a Prompt File
promptlint score prompt.txt2. Full Diagnostic Analysis
promptlint analyze prompt.txt3. Security Scan (Offline API Key & Injection Protection)
promptlint security prompt.txt4. Auto-Fix Prompt
promptlint fix prompt.txt --output fixed_prompt.txtRelated MCP server: promptlint-mcp
🔥 Features at a Glance
Feature | Description |
🛡️ Zero-Data Leak Security | 100% offline scanner for AWS/OpenAI/GitHub secrets and prompt injection attacks. |
⚡ Sub-10ms Rule Engine | 25+ deterministic rules covering structure, clarity, ambiguity, conflicts, and cost. |
🤖 Native MCP Server | Exposes |
🔌 VS Code Extension | Real-time red squiggly lint diagnostics in your IDE via Language Server Protocol (LSP). |
🐍 Python AST Extractor | Automatically extracts and lints prompt strings directly out of |
✨ Magic AI Rewriter | Optional |
🛠️ Usage & Commands
Usage: promptlint [OPTIONS] COMMAND [ARGS]...
Commands:
analyze Analyze a prompt and report quality issues.
score Show only the quality score for a prompt.
security Run a security scan on a prompt.
tokens Show token count and size statistics.
fix Apply deterministic or magic improvements to a prompt.
diff Compare two prompt versions and show quality changes.
mcp Start the Model Context Protocol (MCP) Server.
lsp Start the Language Server Protocol (LSP) Server.Pipe & Stdin Support
echo "Write a blog post about AI. Make it good." | promptlint analyze -Interactive Mode (No Arguments)
Simply type promptlint in your terminal to launch the interactive terminal wizard:
promptlint🤖 AI Agent Integration (MCP Server)
PromptLint implements the Model Context Protocol (MCP) natively.
Add PromptLint to your MCP client configuration (Claude Code, Antigravity, Cursor):
{
"mcpServers": {
"promptlint": {
"command": "promptlint",
"args": ["mcp"]
}
}
}Now your AI coding agents can automatically lint their own generated prompts before running them!
📊 Rules Reference Matrix
Rule ID | Category | Severity | Description |
| Security |
| Hardcoded secret key (AWS, OpenAI, GitHub, Anthropic) |
| Security |
| Potential prompt injection attempt / system override |
| Structure |
| Missing objective or clear task verb |
| Structure |
| Missing explicit output format specification |
| Structure |
| Input context referenced without delimiter tags ( |
| Clarity |
| Vague quality instructions ("make it good", "do your best") |
| Ambiguity |
| Hallucination risk ("feel free to guess", "invent facts") |
| Conflicts |
| Contradictory instructions (e.g. JSON vs Markdown, Concise vs Detailed) |
| Efficiency |
| Repeated instructions wasting tokens |
| Efficiency |
| Negative constraint overload (4+ "do not" statements) |
🌐 Live Web Playground
Try PromptLint directly in your browser without installing anything:
👉 brixsoftworks.github.io/promptlint
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Lints + auto-fixes how AI coding agents discover any new product. 24 rules, 6 tools, score 0-100.
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Lets coding agents check their own code for leaked secrets, risky dependencies and AI-code mistakes
Enforces architectural invariants and code quality rules inside your AI agent's edit loop.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables AI agents to self-govern by scanning code for hardcoded secrets, structural violations, and AI drift in real-time, providing fix packets for automatic remediation.29MIT- AlicenseNot gradedqualityCmaintenanceA static analyzer for AI prompts that runs as a CLI and MCP server, enabling linting of system prompts, agent instructions, and tool descriptions to catch contradictions, redundancy, and fluff before sending to an LLM.53 npm1MIT
- AlicenseAqualityCmaintenanceProtects AI agents from prompt injection and destructive actions while enabling self-improving prompts through a security pipeline.1062 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables a coding agent to iteratively rewrite a misbehaving prompt and rerun it, with every attempt graded against a frozen baseline by judges from other AI vendors so improvements are proven rather than assumed. It also classifies failures into nine origins, showing when the problem lies in the test set, rubric, judges, or surrounding code instead of the prompt.10Apache 2.0