MCP Prompt Server
by gdli6177
The MCP Prompt Server provides pre-defined prompt templates based on the Model Context Protocol (MCP) to help editors like Cline/Cursor/Windsurf execute tasks more efficiently. It returns pre-defined prompts as tools for better integration with editors.
Last updated: N/A
What is MCP Prompt Server?
The MCP Prompt Server is a server that provides pre-set prompt templates based on the Model Context Protocol (MCP). These templates are designed to assist users in various tasks within editors like Cursor and Windsurf.
How to use MCP Prompt Server?
- Install dependencies using
npm install
. 2. Start the server usingnpm start
. 3. Configure your editor (Cursor or Windsurf) to connect to the server via stdio, following the instructions in the README. 4. Use the provided prompt templates as tools within the editor by specifying the tool name and arguments.
Key features of MCP Prompt Server
Provides pre-set prompt templates for tasks like code review and API documentation.
Offers prompt templates as MCP tools instead of MCP prompts.
Supports dynamic parameter replacement for flexible prompt templates.
Allows developers to add and modify prompt templates.
Provides a tool API for reloading prompts and querying available prompts.
Optimized for Cursor and Windsurf editors for better integration.
Use cases of MCP Prompt Server
Code review: Use the 'code_review' prompt to review code in different languages.
API documentation generation: Use the 'api_documentation' prompt to generate API documentation from code.
Code refactoring: Use the 'code_refactoring' prompt to refactor code.
Test case generation: Use the 'test_case_generator' prompt to generate test cases.
Project architecture overview: Use the 'project_architecture' prompt to understand project structure.
FAQ from MCP Prompt Server
How do I add a new prompt template?
How do I add a new prompt template?
Create a new YAML or JSON file in the src/prompts
directory with the required fields (name, description, arguments, messages). The server will automatically load it on the next start or when you use the reload_prompts
tool.
How do I reload prompts without restarting the server?
How do I reload prompts without restarting the server?
Use the reload_prompts
tool provided by the server.
How do I find the available prompt names?
How do I find the available prompt names?
Use the get_prompt_names
tool provided by the server.
How do I integrate the server with Cursor?
How do I integrate the server with Cursor?
Edit Cursor's MCP configuration file (usually in ~/.cursor/
) and add a server configuration pointing to the src/index.js
file.
How do I integrate the server with Windsurf?
How do I integrate the server with Windsurf?
Navigate to Windsurf settings > Advanced settings, or use the command palette to open Windsurf settings. Add a new server configuration in the Cascade section, pointing to the src/index.js
file.