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

mcp-prompt-server

v1.0.1

Published

MCP服务器,提供预设的prompt工具来引导Claude执行任务

Readme

MCP Prompt Server

不知道你有没有类似痛点

积累了一大堆Prompt,但经常想不起来用。

每次用都需要复制粘贴,非常繁琐。

有人会放在AI编程工具的Rules中,可以解决一部分问题。

但我想,是否可以把常用的Prompt也做成MCP。

里面的一个个Prompt模版设计成tools,这样就能用自然语言对话就能调用各种Prompt。

上网搜了下,果然已经有类似的MCP,原版地址

https://github.com/gdli6177/mcp-prompt-server

Fork了一份,把自己的常用Prompt改造一番,发现异常好用。

这个MCP的神奇效果

再也不需要复制粘贴大量提示词了。

完全用自然语言对话,自动调用Prompt生成可视化网页,设计PRD,生成标题等等

AI自动会找到合适的Prompt处理。

可以安装在Raycast、Cursor、Windsurf、Cherrystudio等任意支持MCP的工具中。

Raycast 为例,演示效果

@prompt 让写设计个产品原型并写PRD

甚至还能组个多个MCP工具,实现复杂工作流。

我让AI基于我正在浏览的内容,生成微信公众号标题。


主要功能

  • 📦 丰富的Prompt模板:内置多种高质量Prompt,涵盖代码、写作、产品、知识卡片、网页生成、结构化总结等场景。
  • 🛠️ 即插即用的MCP工具:所有Prompt自动注册为MCP工具,支持参数化调用,适配主流编辑器。
  • 🔄 热加载与管理:支持一键reload,无需重启即可加载新Prompt。
  • 🧩 极易扩展:只需添加YAML/JSON文件即可扩展新功能,无需改动主程序。
  • 🏷️ 支持多语言与多领域:适合中英文内容、产品、教育、媒体、AI等多种应用。

目录结构

mcp-prompt-server/
├── package.json
├── src/
│   ├── index.js                # 服务器主入口
│   └── prompts/                # 所有Prompt模板目录
│       ├── gen_summarize.yaml
│       ├── gen_title.yaml
│       ├── gen_html_web_page.yaml
│       ├── gen_3d_webpage_html.yaml
│       ├── gen_bento_grid_html.yaml
│       ├── gen_knowledge_card_html.yaml
│       ├── gen_magazine_card_html.yaml
│       ├── gen_prd_prototype_html.yaml
│       ├── ...                # 更多Prompt模板
│   └── 更多Prompt,需要时拿出来/ # 可选扩展Prompt
└── README.md

快速开始

  1. 安装依赖

    npm install
  2. 启动服务器

    npm start

    启动后,MCP Prompt Server会自动加载src/prompts/目录下所有Prompt模板,并以MCP工具形式对外提供服务。


如何使用

工具集成

Raycast

  1. 在 Raycast 搜索 install server(MCP)

  2. 给MCP输入一个名字,建议简单点,方便以后@使用,比如叫 prompt

  3. Command 填写 node

  4. Argument 填写你的 index.js 路径地址

  5. 保存即可,Raycast会自动集成MCP Prompt Server。

注意事项
  • 未来新增Prompt,可以复制已有模版让AI参考生成YAML文件。
  • 模版中的 arguments: [] 要么为空,要么参数设置为非必填(false),否则Raycast会报错。
  • 如果报错,可以在Raycast中搜"manage server(MCP)"卸载后重装。
  • 每次新增Prompt,都需要卸载重装MCP,暂时没找到更优解。

Cursor

  • 编辑 ~/.cursor/mcp_config.json,添加如下内容(请将路径替换为你实际的项目路径):

    {
      "servers": [
        {
          "name": "Prompt Server",
          "command": "node",
          "args": [
            "/你的文件实际路径/mcp-prompt-server/src/index.js"
          ],
          "transport": "stdio"
        }
      ]
    }
  • 保存后重启Cursor,即可在工具面板中看到所有Prompt工具。

Windsurf

  • 编辑 ~/.codeium/windsurf/mcp_config.json,添加:

    {
      "mcpServers": {
        "prompt-server": {
          "command": "node",
          "args": ["/path/to/mcp-prompt-server/src/index.js"],
          "transport": "stdio"
        }
      }
    }
  • 刷新Windsurf设置,Prompt Server即刻生效。

Trae

  • 编辑配置文件,添加:

    {
      "mcpServers": {
        "Prompt Server": {
          "command": "node",
          "args": [
            "/你的文件实际路径/mcp-prompt-server/src/index.js"
          ]
        }
      }
    }
  • 保存配置后重启Trae即可使用。


如何扩展Prompt

  1. 新建YAML或JSON文件,放入src/prompts/目录。

  2. 模板格式示例

    name: your_prompt_name
    description: 这个Prompt的用途说明
    arguments: []
    messages:
      - role: user
        content:
          type: text
          text: |
            你的Prompt内容,支持参数占位符{{param}}
  3. 热加载Prompt

    • 在编辑器中调用reload_prompts工具,或重启服务器即可。

管理与调试

  • reload_prompts:热加载所有Prompt模板
  • get_prompt_names:获取当前所有可用Prompt名称

高级用法与扩展

  • 支持多轮对话Prompt、复杂参数、跨语言内容、数据可视化等高级场景
  • 可将src/prompts/更多Prompt,需要时拿出来/目录下的模板随时复制到主目录启用

常见问题

  • Prompt未生效?
    检查YAML格式、name字段唯一性,并reload或重启服务。
  • 参数不生效?
    确认arguments字段正确,调用时传递参数名和值。

贡献与反馈

  • 欢迎提交新Prompt、优化建议或Bug反馈!
  • 联系作者:向阳乔木

License

MIT


如需进一步定制、批量生成Prompt或企业级集成,欢迎联系作者或提交Issue!