RISEN Prompts MCP Server
A small, local, network-free MCP server for the RISEN prompt-engineering framework. It gives any MCP client tools to build, validate, save, and reuse structured prompts.
README
RISEN Prompts MCP Server
A small, local, network-free Model Context Protocol server for the RISEN prompt-engineering framework. It gives any MCP client — Claude Desktop, Claude Code, and OpenAI Codex CLI — a shared set of tools to build, validate, save, and reuse structured prompts.
RISEN stands for Role · Instructions · Steps · Expectations · Narrowing.
Why this one
There are a few RISEN MCP servers floating around. This one is built around three commitments that the others don't state clearly:
- Runs entirely on your machine. The server code performs only local
filesystem, stdio, and process coordination: no HTTP clients, sockets,
telemetry, or external APIs. You can verify this in
src/. - Honest, deterministic logic. No fake "AI performance tracking" or hidden model calls. The validator uses transparent, documented heuristics and rates structural quality — it never pretends to guarantee a prompt will work.
- Real tests and a clean build. TypeScript, unit tests, an end-to-end MCP round-trip check, and a 10-gate verification script (
npm run verify) that CI runs unchanged on Windows and Ubuntu — including a cross-process concurrency stress test and a 4000-case fuzz pass.
Tools
| Tool | What it does |
|---|---|
risen_build |
Assemble the five components into a clean, ready-to-paste prompt + a quality score. |
risen_validate |
Score a prompt 0–100 with a per-component breakdown and specific suggestions. |
risen_scaffold |
Turn a plain task into a RISEN skeleton with the question each slot must answer. |
risen_template_save |
Save a reusable template (supports {{variables}}) to local storage. |
risen_template_list |
List saved templates, filterable by tag or query. |
risen_template_get |
Retrieve one template and its assembled prompt. |
risen_template_delete |
Delete a template. |
risen_render |
Substitute {{variables}} in a template and return the finished prompt. |
It also exposes a risen_guide prompt that explains the framework, discoverable as a slash command in clients that support MCP prompts.
Install
From source
Requires Node.js 22 or newer.
git clone https://github.com/SYZBZ/risen-prompts-mcp.git
cd risen-prompts-mcp
npm install
npm run build
npm test # optional: run the test suite
This produces dist/index.js, the server entry point.
Configure your client
Replace /absolute/path/to/risen-prompts-mcp with where you cloned the repo.
Claude Desktop
Edit claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"risen-prompts": {
"command": "node",
"args": ["/absolute/path/to/risen-prompts-mcp/dist/index.js"]
}
}
}
Claude Code
claude mcp add risen-prompts -- node /absolute/path/to/risen-prompts-mcp/dist/index.js
Or add it to .mcp.json in your project root:
{
"mcpServers": {
"risen-prompts": {
"command": "node",
"args": ["/absolute/path/to/risen-prompts-mcp/dist/index.js"]
}
}
}
OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.risen-prompts]
command = "node"
args = ["/absolute/path/to/risen-prompts-mcp/dist/index.js"]
Ready-to-copy versions of all three live in examples/.
Usage
Once connected, ask your assistant naturally — it will pick the right tool. For example:
"Use the RISEN tools to validate this prompt: role = a helpful assistant, instructions = write a blog post…"
"Scaffold a RISEN prompt for writing a cold outreach email."
"Save that as a template called 'Cold Email' with a {{recipient}} variable, then render it for recipient = a hiring manager."
The RISEN framework
| Component | Purpose | Weak → Strong |
|---|---|---|
| Role | The persona/expertise the model adopts. | "an assistant" → "Senior Python developer with AWS experience" |
| Instructions | The core task, as a directive. | "help with code" → "Review the Django code for security vulnerabilities" |
| Steps | Ordered actions to follow. | (none) → 3+ concrete, sequential steps |
| Expectations | What a good output looks like. | "be good" → "bullet list, severity-tagged, ≤2 sentences each" |
| Narrowing | Constraints and scope. | (none) → "Do not comment on formatting; security only" |
The validator awards up to 20 points per component (100 total). It rewards specificity, action verbs, measurable output targets, and explicit constraint language.
The semantic scoring cues are currently tuned for English. Prompts in other languages can still be assembled, stored, and rendered, but their validation scores may be lower than their actual structural quality.
Storage
Templates are stored as a single JSON file:
- Default:
~/.risen-mcp/templates.json - Override with the
RISEN_DATA_DIRenvironment variable.
It's plain JSON — you can read or back it up directly. Before editing it by hand, stop every RISEN MCP server that uses the same data directory.
Writes are atomic and guarded by a cross-process lock so multiple MCP clients
cannot overwrite each other's changes. Invalid or malformed JSON is reported
and left untouched instead of being silently replaced. New storage directories
and files use owner-only permissions on platforms that support POSIX modes.
Locks record an owner token and process ID; a later writer automatically
recovers a lock abandoned by a terminated process. If ownership cannot be
confirmed safely, the write stops with a recovery message instead of guessing.
After confirming no RISEN server is running, that message may ask you to remove
.templates.lock and .templates.lock.recovery before retrying.
Development
npm run build # compile TypeScript to dist/
npm test # build, then run unit + storage + MCP stdio tests
npm run verify # full 10-gate check: strict types, tests, cross-process
# concurrency stress, fuzz invariants, packaging, hygiene
Core logic lives in src/risen.ts as pure functions with no I/O, so it's easy to test and reuse. CI runs the same scripts/verify.sh on a Windows + Ubuntu matrix, so a green local run means CI confirms rather than discovers.
Known dependency advisories
npm audit currently reports two moderate advisories for @hono/node-server
(GHSA-frvp-7c67-39w9),
pulled in transitively by @modelcontextprotocol/sdk. They are intentionally
left as-is:
- The vulnerable code is Hono's HTTP
serve-statichandler. This server is stdio-only — it never starts an HTTP server, so that path is unreachable. - The SDK version in use is the latest available;
npm audit fix --forcewould downgrade it to 1.24.3, a breaking change, without making this server safer.
CI still enforces npm audit --omit=dev --audit-level=high, so any high or
critical advisory in production dependencies fails the build.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。