npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

promptkiln-mcp

v2.1.0

Published

Two-pass prompt optimization MCP server with local heuristic analysis and LLM-specific best practices. No API key required.

Readme

PromptKiln MCP Server

Two-pass prompt optimization with local heuristic analysis and LLM-specific best practices

PromptKiln applies a Double Forge process to transform rough prompts into high-quality, structured instructions tuned for the LLM you actually use.

Features

  • Double Forge two-pass optimization (heuristic analysis + LLM refinement)
  • LLM-specific best practices for Claude, Gemini, and OpenAI models
  • Self-updating cache that keeps best-practice data fresh
  • Heuristic scoring to quantify prompt quality before and after optimization
  • Presets for common prompt patterns (code review, creative writing, data analysis, etc.)

Quick Start

Option A: npx (recommended)

npx promptkiln-mcp

Add to your MCP client configuration:

{
  "mcpServers": {
    "promptkiln": {
      "command": "npx",
      "args": ["-y", "promptkiln-mcp"]
    }
  }
}

Option B: Claude Code plugin

claude plugin install promptkiln-mcp

Option C: Manual install

git clone https://github.com/alanshurafa/promptkiln-mcp.git
cd promptkiln-mcp
npm install
node server.js

Tools

| Tool | Description | |---|---| | double_forge | Run the full two-pass optimization pipeline on a prompt | | score | Score a prompt using heuristic analysis without modifying it | | list_presets | List available optimization presets | | forge_with_preset | Optimize a prompt using a named preset configuration | | update_practices | Refresh the LLM best-practices cache from upstream sources |

Target LLM Options

| Value | Aliases | Description | |---|---|---| | claude | anthropic, sonnet, opus, haiku | Anthropic Claude models | | gemini | google, bard, gemini-pro, gemini-flash | Google Gemini models | | openai | gpt, chatgpt, gpt-4, gpt-4o, o1, o3 | OpenAI GPT models | | universal | (default) | Model-agnostic optimization |

How It Works

PromptKiln uses a Double Forge architecture with two distinct passes:

Pass 1 -- Heuristic Analysis

The prompt is scored locally against a set of structural and semantic heuristics: clarity, specificity, role definition, output format, constraint coverage, and more. This pass runs instantly with no API calls and produces a numeric score, a list of identified gaps, and a heuristic-improved version of the prompt.

Pass 2 -- LLM Refinement

The heuristic output is fed into a refinement prompt that applies LLM-specific best practices for the target model. This pass restructures the prompt using the optimal patterns, token strategies, and formatting conventions for the chosen LLM, producing the final optimized prompt.

Self-Updating Best Practices

PromptKiln maintains best-practice data through a three-tier architecture:

  1. Bundled defaults -- shipped with the package, always available offline
  2. Cached upstream data -- periodically refreshed from curated sources and stored in llm-practices-cache.json
  3. User overrides -- local customizations that take highest priority

Run update_practices to pull the latest recommendations, or let the cache refresh automatically when it expires.

License

MIT