Prompt 库

CLI / MCP

只读 MCP(Streamable HTTP),在 Cursor、Claude 等客户端里直接查提示词。无需鉴权,不提供写入。

地址

https://prompt-mcp.spacexai.app/mcp

Cursor 配置(~/.cursor/mcp.json)

{
  "mcpServers": {
    "prompt-library": {
      "url": "https://prompt-mcp.spacexai.app/mcp"
    }
  }
}

工具

list_categories列出分类(含子分类和条数)
list_models列出模型(Z-Image / GPT Image / H3 / Seedance…)
list_tags受控标签词表(按维度分组,含条数)
list_prompts按 category / model / tag / type(prompt|article|image)过滤,可选 q、limit;返回类型、图片地址、has_prompt
get_prompt按 slug 取单条完整内容(类型、摘要、中英正文、图片、备注、作者、来源、文中提取的提示词)
search全文搜索标题、正文、摘要、标签、备注、作者、来源;可选 type

curl 示例

curl -s https://prompt-mcp.spacexai.app/mcp \
  -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_prompts","arguments":{"category":"video-h3"}}}'

新增提示词

提示词用 templates/new-prompt.sql,X 帖子/文章/参考图用 templates/new-x-entry.sql(图片先传 R2),给参考图补提示词用 add-prompt-to-entry.sql;改值,然后执行 npx wrangler d1 execute prompt-library --remote --file=你的文件.sql。分类、模型、标签同理(new-category / new-model / new-tag.sql),无需改代码或重新部署。