Go-based MCP prompt server exposing prompt templates as MCP tools

Go-based MCP prompt server exposing prompt templates as MCP tools

mcp-prompt-server-go•bysmallnest

An MCP server written in Go that loads prompt templates from YAML/JSON files and exposes them as callable MCP tools for natural-language prompt invocation.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes all prompts automatically as MCP tools with parameterized invocation.
  • •Loads prompt templates from the prompts directory at startup.
  • •Supports reloading prompts without restarting via a reload_prompts tool and listing prompt names.
  • •Can be extended by adding new YAML or JSON prompt files without modifying core code.

BEST FOR

  • •Users who want to invoke frequently used prompts through natural-language conversation instead of copy-pasting.
  • •Workflows needing reusable prompt templates for code, writing, product, knowledge cards, web generation and structured summaries.
  • •Teams extending a prompt library through external YAML/JSON files without touching the server code.

ABOUT MCP-PROMPT-SERVER-GO

Go-based MCP prompt server exposing prompt templates as MCP tools is cataloged as an MCP server attributed to smallnest. An MCP server written in Go that loads prompt templates from YAML/JSON files and exposes them as callable MCP tools for natural-language prompt invocation. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Go-based MCP prompt server exposing prompt templates as MCP tools are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How are prompts defined for this server?

Prompts are defined as YAML or JSON files placed in the prompts directory.

Can prompts be updated without restarting the server?

Yes, the reload_prompts tool hot-reloads all prompt templates so the server does not need a restart.

What does get_prompt_names do?

It lists all available prompt names.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 2b226e157e0d · 采集于 2026-11-13 09:44:57 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP 提示词服务器 (Go版本)

这是一个使用Go语言实现的MCP提示词服务器,基于mark3labs/mcp-go库。

不只是受 joeseesun/mcp-prompt-server, and gdli6177/mcp-prompt-server 启发,而且初始的提示词都是从joeseesun/mcp-prompt-server项目中复制过来的。

你是否遇到过这些痛点?

是否曾经有一堆提示词但记不住什么时候该用哪个?

是否厌倦了每次需要提示词时都要复制粘贴?

有些人将提示词存储在AI编程工具的规则中,这解决了部分问题。

但如果我们能将常用提示词转化为MCP工具呢?

通过将提示词模板设计为工具,我们可以通过自然语言对话调用各种提示词。

这个MCP的强大之处

不再需要复制粘贴冗长的提示词。

只需使用自然语言对话即可自动:

  • 生成可视化网页
  • 设计PRD
  • 创建吸引人的标题
  • 还有更多...

AI会自动找到并使用合适的提示词。

适用于任何支持MCP的工具,如Raycast、Cursor、Windsurf、Cherrystudio等。

主要特性

  • 📦 丰富的提示词模板: 内置高质量的代码、写作、产品、知识卡片、网页生成、结构化总结等提示词
  • 🛠️ 即插即用的MCP工具: 所有提示词自动注册为MCP工具,支持参数化调用,兼容主流编辑器
  • 🔄 热重载与管理: 无需重启服务器即可重新加载新提示词
  • 🧩 易于扩展: 添加新的YAML/JSON文件即可扩展功能,无需修改核心代码
  • 🏷️ 多语言与多领域: 适用于中文/英文内容、产品、教育、媒体、AI等多个领域

目录结构

mcp-prompt-server-go/
├── cmd/
│   └── main.go               # 程序入口
├── internal/
│   ├── server/               # 服务器实现
│   │   └── server.go
│   ├── prompt/               # 提示词处理
│   │   ├── loader.go         # 提示词加载器
│   │   └── model.go          # 提示词数据结构
│   └── util/                 # 工具函数
│       └── files.go
├── prompts/                  # 所有提示词模板(YAML/JSON文件)
│   ├── gen_summarize.yaml
│   ├── gen_title.yaml
│   └── ...
└── README.md

快速开始

  1. 克隆仓库

    git clone https://github.com/yourusername/mcp-prompt-server-go.git
    cd mcp-prompt-server-go
    
  2. 构建项目

    ./build.sh
    
  3. 启动服务器

    ./bin/mcp-prompt-server
    

    MCP提示词服务器将自动加载prompts/目录中的所有提示词模板,并将它们作为MCP工具暴露。

工具集成

Raycast

  1. 在Raycast中,搜索install server (MCP)
  2. 给你的MCP一个简单的名称,例如prompt(方便后续@调用)
  3. 命令: 输入构建后可执行文件的路径,例如 /Users/yourusername/mcp-prompt-server-go/bin/mcp-prompt-server
  4. 保存后Raycast将自动集成MCP提示词服务器

Cursor

  • 编辑~/.cursor/mcp_config.json并添加以下内容(替换路径为您的实际项目路径):

    {
      "servers": [
        {
          "name": "Prompt Server",
          "command": "/path/to/mcp-prompt-server-go/bin/mcp-prompt-server",
          "args": [],
          "transport": "stdio"
        }
      ]
    }
    

Windsurf

  • 编辑~/.codeium/windsurf/mcp_config.json并添加:

    {
      "mcpServers": {
        "prompt-server": {
          "command": "/path/to/mcp-prompt-server-go/bin/mcp-prompt-server",
          "args": [],
          "transport": "stdio"
        }
      }
    }
    

如何扩展提示词

  1. 在prompts/目录中创建新的YAML或JSON文件

  2. 模板示例:

    name: your_prompt_name
    description: What this prompt does
    arguments: []
    messages:
      - role: user
        content:
          type: text
          text: |
            Your prompt content, supports parameter placeholders like {{param}}
    
  3. 热重载提示词

    • 使用编辑器中的reload_prompts工具,或重启服务器

管理与调试

  • reload_prompts: 热重载所有提示词模板
  • get_prompt_names: 列出所有可用的提示词名称

常见问题

  • 提示词不工作?
    检查YAML格式,确保name字段唯一,并重新加载或重启服务。
  • 参数不工作?
    确保arguments字段正确,并且参数传递正确。

贡献和反馈

  • 欢迎贡献新的提示词、建议和错误报告!

许可证

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Go-based MCP prompt server exposing prompt templates as MCP tools from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-prompt-server-go)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools