Scores your prompts against your real codebase β context-aware prompt intelligence
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Context-aware prompt intelligence for Claude CLI.
Scores your prompts against your real codebase β file paths, symbols, session history β and rewrites them with AI.
When you write a prompt in Claude CLI, PrompyAI automatically evaluates it against your actual project and returns:
That's it. No sign-up, no config files. Works immediately.
Requires Node.js 20+ and Claude CLI.
PrompyAI uses a two-layer architecture so all users get AI-enhanced output:
| User type | How it works |
|---|---|
API key users (ANTHROPIC_API_KEY set) | PrompyAI calls Claude Haiku directly for fast, dedicated AI rewrites |
| Subscription users (no API key) | PrompyAI returns codebase context to Claude, and Claude itself generates the enhanced prompt using your existing session |
Either way, the enhanced prompt is grounded in your real project β actual file paths, verified function names, and project architecture.
Each dimension scores 0β25, total 0β100.
| Dimension | What it measures |
|---|---|
| Specificity | Concrete actions vs vague verbs, output format, quantitative constraints |
| Context Completeness | File references, error messages, expected vs actual behavior |
| Task Clarity | Single focused task, success criteria, unambiguous language |
| File & Folder Anchoring | @mentions, project entity references, verified symbol names |
Grades: A (90+) Β· B (70+) Β· C (50+) Β· D (30+) Β· F (<30)
evaluate_promptAutomatically called on every user message. Scores your prompt against your project.
| Parameter | Required | Description |
|---|---|---|
prompt | yes | The prompt text to evaluate |
workspace_path | yes | Absolute path to your project |
active_file | no | Currently open file path |
session_id | no | Claude Code session ID for multi-turn context |
get_contextReturns your project summary: tech stack, recent files, key folders, AI instruction files.
| Parameter | Required | Description |
|---|---|---|
workspace_path | yes | Absolute path to your project |
prompyai_toggleTurns auto-evaluation on or off.
| Parameter | Required | Description |
|---|---|---|
enabled | yes | true to enable, false to disable |
| Variable | Required | Description |
|---|---|---|
ANTHROPIC_API_KEY | No | Enables direct AI suggestions via Claude Haiku (optional β works without it) |
PROMPYAI_TELEMETRY | No | Set to false to opt out of anonymous telemetry |
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/prompyai)<a href="https://allmcps.com/mcp/prompyai"><img src="https://allmcps.com/api/badge/prompyai?style=directory" alt="Prompyai on AllMCPs" /></a>