Cursor Agent 0f871d79fd feat: add multi-layer caching to /api/mcp to reduce edge compute costs
Key optimizations:
- Short-circuit 'initialize' and 'notifications/initialized' requests
  with pre-built static responses, avoiding McpServer/Transport/DB auth
  creation for every new MCP session (~2 requests saved per session)
- Add LRU+TTL in-memory cache for API key authentication (5 min TTL)
- Cache read-only DB queries: prompt list, prompt get, search prompts,
  get skill, search skills (60-120s TTL depending on operation)
- Pre-serialize GET /api/mcp discovery JSON at module level (once per
  cold-start instead of per-request)
- Add Vercel-CDN-Cache-Control and CDN-Cache-Control headers for the
  GET endpoint to ensure proper Vercel Edge Network caching
- Add framework-level cache headers in next.config.ts for /api/mcp
- Move rate limiting before server creation so rejected requests
  never incur DB auth or server setup costs
- Move body parsing before server creation to enable method inspection
  for short-circuiting

Co-authored-by: Fatih Kadir Akın <fka@fka.dev>
2026-03-30 19:37:05 +00:00
2025-12-10 15:41:23 +03:00
2022-12-05 16:54:13 +03:00
2026-02-06 11:57:50 +03:00
2026-02-06 11:57:50 +03:00
2025-12-10 15:41:23 +03:00
2025-12-10 15:41:23 +03:00
2026-03-19 15:16:07 +03:00
2025-12-10 15:41:23 +03:00

prompts.chat
prompts.chat

The world's largest open-source prompt library for AI
Works with ChatGPT, Claude, Gemini, Llama, Mistral, and more

formerly known as Awesome ChatGPT Prompts

Website Awesome Hugging Face Ask DeepWiki

🌐 Browse Prompts📖 Read the Book📄 View on GitHub🚀 Self-Host

🏆 Featured in Forbes · 🎓 Referenced by Harvard, Columbia · 📄 40+ academic citations · ❤️ Most liked dataset on Hugging Face
143k+ GitHub stars · 🏅 GitHub Staff Pick · 🚀 First prompt library (Dec 2022)

Loved by AI pioneers:
Greg Brockman (OpenAI Co-Founder) · Wojciech Zaremba (OpenAI Co-Founder) · Clement Delangue (Hugging Face CEO) · Thomas Dohmke (Former GitHub CEO)


What is this?

A curated collection of prompt examples for AI chat models. Originally created for ChatGPT, these prompts work great with any modern AI assistant.

Browse Prompts Data Formats
prompts.chat prompts.csv
PROMPTS.md Hugging Face Dataset

Want to contribute? Add prompts at prompts.chat/prompts/new — they sync here automatically.


📖 The Interactive Book of Prompting

Learn prompt engineering with our free, interactive guide — 25+ chapters covering everything from basics to advanced techniques like chain-of-thought reasoning, few-shot learning, and AI agents.

Start Reading →


🎮 Prompting for Kids

Promi

An interactive, game-based adventure to teach children (ages 8-14) how to communicate with AI through fun puzzles and stories.

Start Playing →



🚀 Self-Hosting

Deploy your own private prompt library with custom branding, themes, and authentication.

Quick Start:

npx prompts.chat new my-prompt-library
cd my-prompt-library

Manual Setup:

git clone https://github.com/f/prompts.chat.git
cd prompts.chat
npm install && npm run setup

The setup wizard configures branding, theme, authentication (GitHub/Google/Azure AD), and features.

📖 Full Self-Hosting Guide🐳 Docker Guide


🔌 Integrations

CLI

npx prompts.chat

Claude Code Plugin

/plugin marketplace add f/prompts.chat
/plugin install prompts.chat@prompts.chat

📖 Plugin Documentation

MCP Server

Use prompts.chat as an MCP server in your AI tools.

Remote (recommended):

{
  "mcpServers": {
    "prompts.chat": {
      "url": "https://prompts.chat/api/mcp"
    }
  }
}

Local:

{
  "mcpServers": {
    "prompts.chat": {
      "command": "npx",
      "args": ["-y", "prompts.chat", "mcp"]
    }
  }
}

📖 MCP Documentation


💖 Sponsors

Clemta    Wiro    Cognition    CodeRabbit    Sentry    Each Labs    CommandCode

Built with Windsurf and Devin
Become a Sponsor →


👥 Contributors


📜 License

CC0 1.0 Universal (Public Domain) — Copy, modify, distribute, and use freely. No attribution required.

Languages
HTML 48.4%
MDX 36.3%
TypeScript 14.9%
JavaScript 0.2%