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

lifecoach-mcp-server

v1.1.1

Published

人生教练 MCP 服务器 - 连接 Cloudflare Worker API,提供 12 位知名人生教练的专业提示词

Readme

人生教练 MCP 服务器

一个基于 Model Context Protocol (MCP) 的人生教练服务器,连接到 Cloudflare Worker API,提供 12 位人生教练的专业提示词。

功能特性

  • 🎯 获取教练信息 - 根据名称获取特定人生教练的详细提示词
  • 📋 教练列表 - 查看所有可用的人生教练
  • 🔍 智能搜索 - 根据关键词搜索匹配的教练

可用教练

  1. 李笑来 - 将认知科学应用于个人成长
  2. 苏格拉底 - 问答式教学法,启发式对话
  3. 杰伊·福雷斯特 - 系统动力学之父,反馈环理论
  4. 镜像的我 - AI版用户,读取记忆对话
  5. 思辨之神 - 反向思考、逻辑漏洞
  6. 大卫·休谟 - 思想的猎人,真相的拷问者
  7. 问题的考古学家 - 挖掘被层层包裹的真相
  8. 炼金士 - 在抱怨中听见渴望,在烦恼中看见种子
  9. 史蒂夫·乔布斯 - 产品完美主义,用户体验至上
  10. 查理芒格 - 多元思维模型,逆向思考智慧
  11. CBT心理学家 - 认知行为疗法,情绪与思维重构
  12. 埃隆·马斯克 - 第一性原理思维,颠覆式创新思考

安装

通过 npm 安装(推荐)

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

# 或者本地安装
npm install lifecoach-mcp-server

从源码安装

cd mcp-server
npm install

本地测试

# 启动服务器
npm start

# 或者开发模式(自动重载)
npm run dev

MCP 工具

1. start_lifecoach (v1.1.0 新增) ⭐

启动人生教练对话模式,返回完整的系统提示词。

参数:

示例:

{
  "name": "start_lifecoach",
  "arguments": {}
}

使用场景: 用户只需说"启动人生教练"或"开始人生教练模式",系统会自动调用此工具,返回完整的提示词并进入教练对话模式。

2. get_lifecoach

获取特定人生教练的详细信息和提示词。

参数:

  • name (string): 人生教练的名称

示例:

{
  "name": "get_lifecoach",
  "arguments": {
    "name": "李笑来"
  }
}

3. list_lifecoaches

获取所有可用的人生教练列表。

参数:

示例:

{
  "name": "list_lifecoaches",
  "arguments": {}
}

4. search_lifecoach

根据关键词搜索匹配的人生教练。

参数:

  • keyword (string): 搜索关键词

示例:

{
  "name": "search_lifecoach",
  "arguments": {
    "keyword": "思维"
  }
}

配置 Claude Desktop

在 Claude Desktop 中添加此 MCP 服务器:

  1. 打开 Claude Desktop 设置
  2. 找到 "MCP Servers" 部分
  3. 添加新服务器配置:
{
  "lifecoach": {
    "command": "node",
    "args": ["/path/to/mcp-server/src/index.js"]
  }
}

API 依赖

此 MCP 服务器依赖于 Cloudflare Worker API:

  • 基础 URL: https://lifecoach.chengfeng.me
  • 端点:
    • GET /api/lifecoach - 获取所有教练
    • GET /api/lifecoach/{name} - 获取特定教练

Claude Desktop 配置

在 Claude Desktop 设置中添加 MCP 服务器配置:

如果全局安装:

{
  "mcpServers": {
    "lifecoach": {
      "command": "lifecoach-mcp-server"
    }
  }
}

如果从源码运行:

{
  "mcpServers": {
    "lifecoach": {
      "command": "node",
      "args": ["/Users/chengfeng/Desktop/代码/人生教练mcp/mcp-server/src/index.js"]
    }
  }
}

配置文件位置:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

使用示例

在 Claude Desktop 中,您可以这样使用:

请帮我获取李笑来的教练信息
搜索关于"思维"相关的人生教练
列出所有可用的人生教练

技术栈

  • Node.js - 运行时环境
  • @modelcontextprotocol/sdk - MCP 协议实现
  • node-fetch - HTTP 请求库

项目结构

mcp-server/
├── src/
│   └── index.js          # MCP 服务器主文件
├── package.json          # 项目配置
└── README.md            # 项目文档

许可证

MIT License