npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-template-server

v1.0.0

Published

简洁的 MCP 模板服务器,用于Cursor编辑器的MCP协议

Downloads

5

Readme

MCP 模板服务器

这是一个基于 Model Context Protocol (MCP) 的模板服务器,专门用于提供模板管理功能。

功能

  1. 列出所有模板类别
  2. 按类别筛选模板
  3. 搜索模板
  4. 获取模板详情
  5. 获取填充参数后的模板内容
  6. 提供模板提示

从NPM安装

# 全局安装
npm install -g mcp-template-server

# 启动服务器
mcp-template-server

手动安装与使用

# 克隆仓库
git clone <仓库地址>
cd MCP-Simple

# 安装依赖并构建
./build.sh

# 启动服务器
node build/index.js

在 Cursor 中使用

  1. 打开 Cursor 的 MCP 配置面板
  2. 添加新的 MCP 服务
  3. 选择服务类型为"command"
  4. 如果全局安装了npm包,输入命令:mcp-template-server
  5. 如果手动安装,输入命令:node /path/to/MCP-Simple/build/index.js
  6. 保存配置并连接

可用工具

| 工具名称 | 描述 | 参数 | |---------|------|------| | list_categories | 列出所有模板类别 | 无 | | list_templates_by_category | 按类别列出模板 | category: 类别名称 | | search_templates | 搜索模板 | keyword: 搜索关键词 | | get_template_details | 获取模板详情 | template_id: 模板ID | | get_template_content | 获取填充参数后的模板内容 | template_id: 模板ID, params: 参数对象 |

可用提示

| 提示名称 | 描述 | 参数 | |---------|------|------| | create_template | 创建模板内容 | template_id: 模板ID, params: 参数对象(可选) |

示例

列出所有类别

const result = await client.callTool({
  name: "list_categories",
  arguments: {}
});

按类别列出模板

const result = await client.callTool({
  name: "list_templates_by_category",
  arguments: {
    category: "公众号头图"
  }
});

获取模板内容

const result = await client.callTool({
  name: "get_template_content",
  arguments: {
    template_id: "tech-header",
    params: {
      firstLine: "从零开始",
      secondLine: "20分钟开发MCP",
      features: "简单易用,功能强大,快速上手"
    }
  }
});

使用提示

const prompt = await client.getPrompt("create_template", {
  template_id: "tech-header",
  params: {
    firstLine: "从零开始",
    secondLine: "20分钟开发MCP",
    features: "简单易用,功能强大,快速上手"
  }
});