promptlint
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@promptlintLint this prompt and auto-fix any issues before I use it"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ 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: Clerk Chat MCP Server
🔥 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.
Security reviews for coding agents: diffs checked against your org policy and live infrastructure.
The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Related MCP Servers
- AlicenseBqualityDmaintenanceAutomatically analyzes and optimizes AI prompts by calculating clarity scores, detecting risks, asking clarifying questions, and adding domain-specific requirements to improve AI interaction quality.1MIT
- FlicenseAqualityDmaintenanceEnables autonomous prompt improvement for voice AI agents through feedback analysis, test generation, and iterative testing.10-

Rigour MCPofficial
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.27MIT- 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.28 npm1MIT