Price Per TokenPrice Per Token
PromptForge

PromptForge

by stevekaplanai

GitHub 1 1,213 uses Remote
0

About

PromptForge is an intelligent prompt optimization middleware that enhances user prompts before they reach AI models. It analyzes prompt intent and applies domain-specific optimization patterns to improve clarity, context, and response quality. Key features of PromptForge: - **Smart Pattern Matching**: Automatically detects prompt intent and applies relevant enhancements like role additions, context injection, and structural improvements - **Domain-Specific Tuning**: Pre-configured optimization patterns for marketing copy, data analysis, tax/accounting, and code generation - **Analytics & Performance Tracking**: Monitors optimization metrics and prompt performance over time using Supabase - **Custom Pattern Management**: Create, update, and manage custom optimization patterns stored via JSONBin.io - **Before/After Testing**: Compare original and optimized prompts to evaluate improvement PromptForge integrates with external services for pattern storage and analytics, requiring zero configuration to start while remaining fully customizable for advanced use cases.

README

PromptForge MCP Server

Intelligent prompt optimization middleware that enhances user prompts before execution.

Features

  • 🎯 Smart Pattern Matching - Automatically detects prompt intent and applies relevant optimizations
  • 📊 Analytics Tracking - Monitor optimization performance and patterns
  • 🔧 Customizable Patterns - Add and modify optimization patterns for your specific needs
  • 🚀 Domain-Specific Enhancements - Pre-configured patterns for marketing, data analysis, tax/accounting, and code generation
  • 💾 External Service Integration - Uses JSONBin for pattern storage and Supabase for analytics
  • Setup

    1. Install Dependencies

    npm install
    

    2. Configure External Services

    #### JSONBin.io (Pattern Storage) 1. Create account at https://jsonbin.io 2. Create a new bin with initial patterns 3. Copy your bin ID and API key

    #### Supabase (Analytics) 1. Create account at https://supabase.com 2. Create a new project 3. Create a table called prompt_analytics with this schema: - id (uuid, primary key) - original_prompt (text) - optimized_prompt (text) - domain (text) - confidence (float) - modifications (json) - user_feedback (json, nullable) - performance_metrics (json, nullable) - created_at (timestamp with timezone)

    3. Environment Variables

    Copy .env.example to .env and fill in your API credentials:

    cp .env.example .env
    

    4. Test Your Setup

    npm test
    

    Available Tools

    optimize_prompt

    Optimizes a prompt using intelligent pattern matching.

    {
      "tool": "optimize_prompt",
      "arguments": {
        "prompt": "Write an email about our services",
        "domain": "marketing_copy",
        "context": {
          "company": "Your Company",
          "audience": "B2B customers"
        }
      }
    }
    

    get_patterns

    Retrieve current optimization patterns.

    {
      "tool": "get_patterns",
      "arguments": {
        "domain": "marketing_copy"
      }
    }
    

    update_pattern

    Update or add a pattern in the library.

    {
      "tool": "update_pattern",
      "arguments": {
        "domain": "custom_domain",
        "pattern": {
          "triggerKeywords": ["keyword1", "keyword2"],
          "enhancements": [
            {
              "type": "role_addition",
              "value": "You are an expert..."
            }
          ]
        }
      }
    }
    

    get_analytics_summary

    Get analytics summary for optimizations.

    {
      "tool": "get_analytics_summary",
      "arguments": {
        "timeRange": "week",
        "domain": "marketing_copy"
      }
    }
    

    test_optimization

    Test optimization with before/after comparison.

    {
      "tool": "test_optimization",
      "arguments": {
        "prompt": "analyze our sales data",
        "showDiff": true
      }
    }
    

    Deployment to mcpify.ai

    1. Create New MCP Server on mcpify.ai - Name: promptforge - Description: "Intelligent prompt optimization for consistent AI outputs"

    2. Upload Files - Copy the contents of server.js to mcpify.ai - Add environment variables from your .env file

    3. Configure Tools - The server automatically exposes all tools defined in getTools()

    Default Patterns

    The server includes pre-configured patterns for:

  • Marketing Copy - Copywriting, emails, landing pages, ads
  • Data Analysis - Analytics, reports, insights, metrics
  • Tax & Accounting - Financial planning, tax optimization, compliance
  • Code Generation - Programming, debugging, implementation
  • General - Fallback for unmatched prompts
  • For Schapira CPA Integration

    This server is optimized for use with Schapira CPA's services:

    {
      "context": {
        "company": "Schapira CPA",
        "industry": "Tax and Accounting Services",
        "audience": "Mid-market owner-operated businesses",
        "tone": "professional"
      }
    }
    

    License

    MIT - Feel free to customize for your needs!

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81