mcp-prompt -go
一个提供优秀prompt的Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地和使用。提供tool和prompt两种形式
claude mcp add --transport stdio smallnest-mcp-prompt-server-go docker run -i mcp-prompt-server-go \ --env PROMPTS_DIR="prompts (default: prompts/ under repo root)" \ --env CONFIG_VERBOSE="false"
How to use
This MCP server for prompts (Go version) bundles a collection of prompt templates as MCP tools. Once started (via Docker in this configuration), it exposes the prompts loaded from the prompts/ directory as MCP tools you can invoke through any MCP-enabled editor or launcher. You can ask the system to generate structured outputs, create titles, summaries, or other content by selecting the corresponding MCP tool and providing any required arguments. The server hot-reloads prompts when you update the YAML/JSON templates, so edits take effect without restarting the process.
To use, ensure the server is running and then call a specific prompt by its tool name in your MCP-enabled workflow. Tools are designed to be parameterizable and compatible with popular editors like Raycast, Cursor, Windsurf, and Cherrystudio. For example, you might call a prompt tool to generate a product PRD, produce a catchy title, or generate a visual webpage outline, all without copying long prompt blocks manually.
How to install
Prerequisites:
- Docker installed on your machine
- Basic knowledge of running Docker containers
- Access to the repository with the mcp-prompt-server-go project and its prompts directory
Installation steps:
- Clone the repository (or pull the Docker image if you have a prebuilt image):
git clone https://github.com/yourusername/mcp-prompt-server-go.git
cd mcp-prompt-server-go
- Build the Go-based project locally (optional if you prefer building a Docker image):
# If you want to build locally
go build ./...
- Build or pull a Docker image for the server. If you have a Dockerfile, build it:
# Example if a Dockerfile exists
docker build -t mcp-prompt-server-go:latest .
- Run the server via Docker. If using the provided mcp-prompt-server-go image, start it in interactive mode:
docker run -it --rm \
-v "$(pwd)/prompts:/app/prompts":/app/prompts \
-e PROMPTS_DIR=/app/prompts \
mcp-prompt-server-go:latest
- Verify the server starts and loads prompts from the prompts/ directory. You should see logs indicating prompts were loaded and MCP tools registered.
Notes:
- If you customize the prompts path, set the PROMPTS_DIR environment variable accordingly.
- The repository’s build script (if present) can streamline the process; otherwise, you can rely on Docker as shown.
Additional notes
Tips and common issues:
- Ensure the prompts/ directory contains valid YAML/JSON templates; syntax errors can prevent loading.
- If prompts fail to load, check logs for YAML/JSON parsing errors and ensure each prompt has a unique name.
- Use hot-reload (reload_prompts) to refresh templates without restarting the server.
- When integrating with editors, you may need to configure the MCP tool name to match the prompt you want to invoke (e.g., prompt-gen-titles).
- If using Docker, remember to mount the prompts directory into the container or bake them into the image to ensure availability at startup.
- Environment variables can tweak logging level, prompts path, and transport settings for MCP tools.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go