modelscope·@wangtsiao/pulse-cn-mcp
一个模型上下文协议服务器,为人工智能模型提供来自18个主要中国互联网平台(包括微博、知乎和哔哩哔哩)的实时热点内容。
一个强大的模型上下文协议(MCP)服务器,提供来自中国互联网的实时热门内容。
功能 • 安装 • 快速开始 • 文档 • 贡献 • 许可证
</div>Pulse CN MCP 服务器使 AI 模型能够访问有关中国互联网上最新趋势的信息。它基于模型上下文协议(MCP)构建,充当 AI 模型与来自中国最流行的社交媒体平台、新闻网站和内容聚合器的实时数据之间的桥梁。
该服务器提供了来自 18 个主要中文平台的实时趋势数据访问:
| 平台 | 内容 | 状态 |
|---|---|---|
| 🔮 星座运势 | 每日星座运势预测 | ✅ |
| 💬 每日一句励志英语 | 每日励志英文名言 | ✅ |
| 📊 热搜热榜聚合 | 聚合热门话题 | ✅ |
| 🔥 微博实时热搜 | 微博实时热门话题 | ✅ |
| 📰 今日头条热搜 | 今日头条热门新闻 | ✅ |
| 📝 澎湃新闻热搜 | 澎湃新闻热门话题 | ✅ |
| 🏀 虎扑步行街热搜 | 虎扑步行街实时趋势 | 🔜 |
| ❓ 知乎实时热搜 | 知乎实时热门话题 | 🔜 |
| 📔 知乎每日日报 | 知乎每日精选 | 🔜 |
| 💼 36氪24小时热榜 | 36氪24小时热门商业新闻 | 🔜 |
| 🎬 哔哩哔哩全站日榜 | 哔哩哔哩每日排行榜 | 🔜 |
| 🔍 百度热点热榜 | 百度热门话题 | 🔜 |
| 📱 抖音热点热榜 | 抖音热门话题 | 🔜 |
| 👥 豆瓣小组精选 | 豆瓣小组精选内容 | 🔜 |
| 💻 IT资讯热榜 | IT新闻热门话题 | 🔜 |
| 📈 虎嗅网热榜 | 虎嗅24小时热门话题 | 🔜 |
| 📱 产品经理热文榜 | Woshipm每日热门文章 | 🔜 |
| 🐞 虫族部落最新热门 | 虫族部落最新热门内容 | 🔜 |
# Clone the repository
git clone https://github.com/wangtsiao/pulse-cn-mcp.git
# Navigate to the project directory
cd pulse-cn-mcp
# Using npm
npm install
npm run build
# Or using Bun (faster)
bun install
bun run build
使用以下命令启动 MCP 服务器:
# Using npm
npm start
# Or using Bun
bun start
这将使用 Stdio 传输方式启动服务器,使其准备好供兼容 MCP 的 AI 模型连接。
Pulse CN MCP 服务器遵循模块化架构,每个数据源都有单独的工具:
src/
├── index.ts # Main entry point and server setup
└── tools/ # Individual tool implementations
├── weiboHotspots.js
├── horoscope.js
├── dailyEnglishSentence.js
├── internetHotspotsAggregator.js
├── todayHeadlinesHotspots.js
├── paperNewsHotspots.js
└── otherHotspots.js
| 工具名称 | 描述 | 端点 |
|---|---|---|
weibo-hotspots | 来自微博的实时热门话题 | /weibo-hotspots |
horoscope | 按星座划分的每日运势 | /horoscope |
daily-english-sentence | 每日励志英文名言 | /daily-english-sentence |
internet-hotspots-aggregator | 聚合热门话题 | /internet-hotspots-aggregator |
today-headlines-hotspots | 今日头条热门话题 | /today-headlines-hotspots |
paper-news-hotspots | 澎湃新闻热门资讯 | /paper-news-hotspots |
hupu-pedestrian-street-hotspotszhihu-realtime-hotspotszhihu-daily-hotspots36-krypton-24-hour-hotspotsbilibili-daily-hotspotsbaidu-hotspotsdouyin-hotspotsdouban-group-hotspotshuxiu-hotspotsproduct-manager-hotspotsin-information-hotspotsinsect-hotspots这里是使用 TypeScript 与服务器集成的方法:
import { McpClient } from "@modelcontextprotocol/sdk/client";
async function example() {
const client = new McpClient();
// Get Weibo trending topics
const weiboHotspots = await client.callTool("weibo-hotspots", {});
console.log(weiboHotspots.content);
// Get daily horoscope for Aries
const horoscope = await client.callTool("horoscope", { sign: "aries" });
console.log(horoscope.content);
}
src/tools/ 目录下创建一个新文件(例如 myNewTool.ts)src/index.ts 中注册该工具示例:
// src/tools/myNewTool.ts
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";
export function registerMyNewTool(server: McpServer) {
server.tool(
"my-new-tool",
"Description of my new tool",
{
// Tool parameters schema
param1: z.string().describe("Parameter description")
},
async (params) => {
// Tool implementation
return {
content: [
{ type: "text", text: "Result of my tool" }
]
};
}
);
}
// src/index.ts - Add import and registration
import { registerMyNewTool } from './tools/myNewTool.js';
// ...
registerMyNewTool(server);
欢迎贡献!请随时提交 Pull Request。
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)本项目根据 MIT 许可证发布 - 查看 LICENSE 文件获取详细信息。
本项目利用了由韩小韩API提供的免费 API。我们对其出色的服务和支持表示衷心的感谢。
一个为大型语言模型(LLM)设计的、高可用的12306余票查询工具服务,现已搭载智能会话管理引擎。 12306-MCP-Server 将复杂的12306余票查询接口封装为符合 Model Context Protocol (MCP) 规范的工具集,允许AI Agent通过自然语言无缝查询实时火车票、中转换乘和经停站信息。 从 v1.0.0 版本开始,项目引入了全新的智能会话管理系统,通过会话池、动态User-Agent轮换和自动错误恢复机制,将服务的稳定性与反屏蔽能力提升至全新高度。
一个MCP服务器,它在本地git仓库上提供语义搜索功能,使用户能够克隆仓库、处理分支并通过矢量化代码块搜索代码。
一种模型上下文协议(MCP)服务器,可以帮助大型语言模型以最少的设置来索引、搜索和分析代码库。
通过向量嵌入技术,为项目提供记忆库和RAG上下文支持,以增强代码理解和管理,并与RooCode和Cline集成。
VariFlight航班信息服务的模型上下文协议(MCP)服务器实现方案。该服务器提供了多种工具,支持查询航班信息、天气数据及航班舒适度指标。
基于GTFS数据的Caltrain火车时刻查询服务,提供实时火车时刻表、站点查询和时间特定查询功能。