Prompt ServerSAFE
这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
🚀 重要升级通知!
我们基于基于 MCP Prompt Server 使用场景,推出全新升级服务:mypromptmcp.com。
通过该平台,您可以在线自由管理自己的 prompt 提示词,并且允许灵活组合、打包成 MCP 服务,轻松集成到不同的 AI Agent 或工具中(如 Cursor、Windsurf、Cline 等),实现跨平台调用和高效协作。
立即体验更强大的 prompt 管理与分发能力,访问 mypromptmcp.com 了解详情!
⚠️ 重要提醒: MCP Prompt Server 依然可以正常使用,但后续我们将不再进行功能升级和维护。如果您希望持续获得最新的功能和体验,建议迁移并使用 mypromptmcp.com。
English Version
这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。
功能特点
- 提供预设的prompt模板,可用于代码审查、API文档生成、代码重构等任务
- 将所有prompt模板作为MCP工具(tools)提供,而非MCP prompts格式
- 支持动态参数替换,使prompt模板更加灵活
- 允许开发者自由添加和修改prompt模板
- 提供工具API,可重新加载prompt和查询可用prompt
- 专为Cursor和Windsurf等编辑器优化,提供更好的集成体验
目录结构
prompt-server/ ├── package.json # 项目依赖和脚本 ├── src/ # 源代码目录 │ ├── index.js # 服务器入口文件 │ └── prompts/ # 预设prompt模板目录 │ ├── code_review.yaml │ ├── api_documentation.yaml │ ├── code_refactoring.yaml │ ├── test_case_generator.yaml │ └── project_architecture.yaml └── README.md # 项目说明文档
安装和使用
- 安装依赖:
cd prompt-server npm install
- 启动服务器:
npm start
服务器将在标准输入/输出上运行,可以被Cursor、Windsurf或其他MCP客户端连接。
添加新的Prompt模板
您可以通过在src/prompts目录中添加新的YAML或JSON文件来创建新的prompt模板。每个模板文件应包含以下内容:
name: prompt_name # 唯一标识符,用于调用此prompt
description: prompt description # 对prompt功能的描述
arguments: # 参数列表(可选)
- name: arg_name # 参数名称
description: arg description # 参数描述
required: true/false # 是否必需
messages: # prompt消息列表
- role: user/assistant # 消息角色
content:
type: text # 内容类型
text: | # 文本内容,可包含参数占位符 {{arg_name}}
Your prompt text here...添加新文件后,服务器会在下次启动时自动加载,或
52d69252951aOBSERVED · 2026-10-06Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-prompt-server -- npx -y [email protected]
{
"mcpServers": {
"mcp-prompt-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_prompt_names | read | |
reload_prompts | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, express, fs-extra, yaml, zod, nodemon
Gates applied: no_behavioural_pass.
52d69252951afull audit observations/trust-audit/mcp-server/gdli6177__prompt-server.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | 52d69252951a | SAFE | B | 89 | first audit |
Questions
What is the Prompt Server MCP server?
这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。
What tools does Prompt Server expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Prompt Server safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Prompt Server need?
No credential environment variables were found in its source, so it appears to need none.
How does Prompt Server run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-prompt-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (52d69252951a), read on 2026-10-06. The repository is watched and re-audited when it changes.