drio
Open app

MCP Prompt Server

Source

这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。

Catalog onlyCatalog onlySTDIO

Overview

MCP Prompt Server is a server based on the Model Context Protocol (MCP) that provides preset prompt templates according to user task requirements, helping tools like Cline, Cursor, and Windsurf to execute various tasks more efficiently.

To use the MCP Prompt Server, install the dependencies, start the server, and connect it with editors like Cursor or Windsurf to access the preset prompt tools.

  • Provides preset prompt templates for tasks like code review, API documentation generation, and code refactoring. - Offers all prompt templates as MCP tools instead of MCP prompts format. - Supports dynamic parameter replacement for more flexible prompt templates. - Allows developers to freely add and modify prompt templates. - Provides a tool API to reload prompts and query available prompts. - Optimized for better integration with editors like Cursor and Windsurf.
  1. Automating code reviews in development environments.
  2. Generating API documentation from code snippets.
  3. Refactoring code efficiently using predefined templates.

Add to your AI client

Use these steps to connect MCP Prompt Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-prompt-server-gdli6177": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-prompt-server-gdli6177": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-prompt-server-gdli6177": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-prompt-server-gdli6177": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-prompt-server-gdli6177": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-prompt-server-gdli6177": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-prompt-server-gdli6177"
      ]
    }
  }
}

FAQ

Can I add my own prompt templates?

Yes! You can create new prompt templates by adding YAML or JSON files in the `src/prompts` directory.

How do I reload the prompts?

You can use the `reload_prompts` tool to reload all preset prompts without restarting the server.

Is there an API for managing prompts?

Yes! The server provides management tools like `reload_prompts` and `get_prompt_names` to manage your prompts.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2901,"uuid":"660d3434-04a4-4bc6-82a9-4003a5acf3da","name":"mcp-prompt-server","title":"MCP Prompt Server","description":"这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。","avatar_url":"https://avatars.githubusercontent.com/u/177595482?v=4","created_at":"2025-03-16T04:03:40.740Z","updated_at":"2025-03-16T06:10:11.431Z","status":"created","author_name":"gdli6177","author_avatar_url":"https://avatars.githubusercontent.com/u/177595482?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/gdli6177/mcp-prompt-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"5\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-24 11:13:20\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]