About MCP Prompt Server
MCP Prompt Server provides predefined prompt templates and utility tools, with Claude Desktop as its stated target. Its templates cover development, research, analysis and code review, and the project can be extended with additional prompts and tools.
Key features
- 01Predefined prompt templates
- 02Development and research prompts
- 03Analysis and code-review prompts
- 04Code formatting tool
- 05Custom prompt generation
Use cases
- 01Getting guidance for development tasks
- 02Structuring research analysis
- 03Reviewing code with a prompt template
- 04Generating a prompt for a topic
MCP support
The MCP server exposes prompt templates and tools, including format_code and generate_prompt, for use with Claude Desktop.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP Prompt Server
基於 Model Context Protocol 的自定義提示詞服務器,專為 Claude Desktop 設計。
功能
- 提供多種預定義提示詞模板
- 可擴展的工具功能
- 與 Claude Desktop 無縫整合
安裝與配置
前提條件
- Node.js (>= 18)
- Claude Desktop 應用
安裝依賴
# 進入專案目錄
cd /Users/{your name}/opensource/mcp_prompt_server
# 安裝依賴
npm install
# 構建專案
npm run build
Claude Desktop 整合
在 Claude Desktop 配置文件中添加以下配置:
macOS:
編輯 ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"prompt-server": {
"command": "node",
"args": ["/Users/{your name}/opensource/mcp_prompt_server/dist/index.js"]
}
}
}
使用方法
- 啟動 Claude Desktop
- 開始新對話
- 點擊輸入框旁的迴紋針圖標
- 選擇 "Choose an integration" > "prompt-server"
- 選擇您想使用的提示詞模板
可用提示詞
- development: 獲取軟體開發任務的專業指導
- research: 獲取深入的研究分析
- analyze: 對內容進行全面分析
- code-review: 獲取專業的代碼審查反饋
可用工具
- format_code: 格式化代碼並提供語法高亮
- generate_prompt: 根據主題生成自定義提示詞
開發與擴展
添加新提示詞
- 在
src/prompts/目錄中添加新的提示詞定義檔案 - 在
src/prompts/index.ts中導入並註冊新提示詞 - 實現對應的提示詞渲染函數
添加新工具
- 在
src/tools/index.ts中添加新工具的定義 - 實現對應的工具處理函數
專案結構
mcp_prompt_server/
├── src/
│ ├── index.ts # 入口文件
│ ├── tools/ # 自定義工具實作
│ │ └── index.ts # 工具定義和處理邏輯
│ └── prompts/ # 提示詞模板
│ ├── index.ts # 提示詞處理邏輯
│ ├── development.js
│ ├── research.js
│ ├── analyze.js
│ └── code-review.js
├── package.json
├── tsconfig.json
├── .gitignore
└── README.md
許可證
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.