Token导航 LogoToken导航

MCP Server · 地图位置

MCP Streamable Servers

MCP Streamable Servers 是一个支持HTTP和SSE协议的实时数据服务器,提供天气和产品数据的实时更新。

未说明官方级别未说明来源级核验工具 6
位置天气TypeScriptHTTP服务器

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
pong-pk007
提供方
pong-pk007

工具数量

6

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

MCP Streamable Servers 属于地图位置类 MCP Server,公开资料标注 6 个工具,通过传输方式未标注接入,客户端适配情况以官方文档为准,没有现成的安装命令;接入前先确认权限范围。

分类

地图位置

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 6 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

🚀 MCP Streamable Servers

MCP (Model Context Protocol) Servers ที่รองรับทั้ง HTTP และ SSE (Server-Sent Events) สำหรับข้อมูลสภาพอากาศและข้อมูลสินค้า

📋 เซิร์ฟเวอร์ที่มีให้

🌤️ Weather Server

  • HTTP Version: src/weather-server.ts (Port 3003)
  • SSE Version: src/weather-server-sse.ts (Port 3004)
  • Features: ข้อมูลสภาพอากาศ, พยากรณ์อากาศ, Real-time updates

📱 Product Server

  • HTTP Version: src/product-server.ts (Port 3002)
  • SSE Version: src/product-server-sse.ts (Port 3005)
  • Features: ข้อมูลสินค้า, ค้นหาสินค้า, ตรวจสอบสต็อค, Real-time stock/price updates

🛠️ การติดตั้งและเรียกใช้

1. ติดตั้ง Dependencies

npm install

2. เรียกใช้เซิร์ฟเวอร์

HTTP Servers:
# Weather Server (Port 3003)
npm run dev:weather

# Product Server (Port 3002)
npm run dev:product

# รันทั้งสองเซิร์ฟเวอร์พร้อมกัน
npm run dev:all
SSE Servers:
# Weather Server SSE (Port 3004)
npm run dev:weather-sse

# Product Server SSE (Port 3005)
npm run dev:product-sse

# รันทั้งสองเซิร์ฟเวอร์ SSE พร้อมกัน
npm run dev:all-sse

3. ทดสอบการทำงาน

Health Check:
# HTTP Servers
npm run test:health

# SSE Servers
npm run test:health-sse
MCP Tools:
# HTTP Servers
npm run test:mcp

# SSE Servers
npm run test:mcp-sse

🌐 Demo Web Interface

Weather Server SSE Demo

เปิดไฟล์ demo/weather-sse-demo.html ในเบราว์เซอร์

  • URL: file:///path/to/demo/weather-sse-demo.html
  • เชื่อมต่อกับ: http://localhost:3004

Product Server SSE Demo

เปิดไฟล์ demo/product-sse-demo.html ในเบราว์เซอร์

  • URL: file:///path/to/demo/product-sse-demo.html
  • เชื่อมต่อกับ: http://localhost:3005

🔌 API Endpoints

HTTP Servers

Weather Server (Port 3003)
  • GET /health - Health check
  • POST /mcp - MCP requests
  • OPTIONS /mcp - CORS preflight
Product Server (Port 3002)
  • GET /health - Health check
  • POST /mcp - MCP requests
  • OPTIONS /mcp - CORS preflight

SSE Servers

Weather Server SSE (Port 3004)
  • GET /health - Health check
  • GET /mcp - SSE connection
  • POST /mcp - MCP requests
  • OPTIONS /mcp - CORS preflight
Product Server SSE (Port 3005)
  • GET /health - Health check
  • GET /mcp - SSE connection
  • POST /mcp - MCP requests
  • OPTIONS /mcp - CORS preflight

🛠️ MCP Tools

Weather Server Tools

  1. get-weather - ดูสภาพอากาศปัจจุบัน
   {
     "name": "get-weather",
     "arguments": { "city": "Bangkok" }
   }
  1. get-weather-forecast - ดูพยากรณ์อากาศ
   {
     "name": "get-weather-forecast",
     "arguments": { "city": "Bangkok", "days": 3 }
   }

Product Server Tools

  1. get-product - ดูข้อมูลสินค้า
   {
     "name": "get-product",
     "arguments": { "productId": "P001" }
   }
  1. search-products - ค้นหาสินค้า
   {
     "name": "search-products",
     "arguments": { "query": "iPhone" }
   }
  1. check-stock - ตรวจสอบสต็อค
   {
     "name": "check-stock",
     "arguments": { "productId": "P001" }
   }
  1. get-product-specs - ดูสเปคสินค้า
   {
     "name": "get-product-specs",
     "arguments": { "productId": "P001" }
   }

📡 SSE Events

Weather Server SSE Events

  • connection - การเชื่อมต่อสำเร็จ
  • server_info - ข้อมูลเซิร์ฟเวอร์
  • weather_update - อัปเดตสภาพอากาศแบบ real-time (ทุก 30 วินาที)
  • mcp_response - ผลลัพธ์ MCP requests
  • mcp_error - ข้อผิดพลาด MCP
  • server_shutdown - เซิร์ฟเวอร์ปิดตัว

Product Server SSE Events

  • connection - การเชื่อมต่อสำเร็จ
  • server_info - ข้อมูลเซิร์ฟเวอร์
  • stock_update - อัปเดตสต็อคแบบ real-time (ทุก 45 วินาที)
  • price_update - อัปเดตราคาแบบ real-time (ทุก 60 วินาที)
  • mcp_response - ผลลัพธ์ MCP requests
  • mcp_error - ข้อผิดพลาด MCP
  • server_shutdown - เซิร์ฟเวอร์ปิดตัว

🧪 การทดสอบด้วย Tools

cURL Examples

List Tools:
curl -X POST http://localhost:3002/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Search Products:
curl -X POST http://localhost:3002/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search-products","arguments":{"query":"iPhone"}}}'
Get Weather:
curl -X POST http://localhost:3003/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get-weather","arguments":{"city":"Bangkok"}}}'

Postman Testing

  1. Method: POST
  2. URL: http://localhost:3002/mcp (Product) หรือ http://localhost:3003/mcp (Weather)
  3. Headers:
   Content-Type: application/json
   Accept: application/json
  1. Body (JSON):
   {
     "jsonrpc": "2.0",
     "id": 1,
     "method": "tools/list"
   }

SSE Testing

เชื่อมต่อ SSE:
const eventSource = new EventSource('http://localhost:3004/mcp');
eventSource.onmessage = function(event) {
    const data = JSON.parse(event.data);
    console.log('SSE Event:', data);
};
ส่ง MCP Request:
fetch('http://localhost:3004/mcp', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
        jsonrpc: '2.0',
        id: 1,
        method: 'tools/call',
        params: {
            name: 'get-weather',
            arguments: { city: 'Bangkok' }
        }
    })
});

📊 Port Summary

ServiceTypePortURL
Product ServerHTTP3002http://localhost:3002
Weather ServerHTTP3003http://localhost:3003
Weather ServerSSE3004http://localhost:3004
Product ServerSSE3005http://localhost:3005

🔧 Development

Build:

npm run build

Clean:

npm run clean

Production:

npm run build
npm run start:weather
npm run start:product

📝 License

MIT License

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

📞 Support

หากพบปัญหาหรือต้องการความช่วยเหลือ กรุณาสร้าง issue ใน GitHub repository

工具与能力

工具数量

6

资源数量

0

提示词数量

0

能力标签

实时数据TypeScript本地部署HTTP服务器SSE服务器天气数据产品数据

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

地址与坐标转换

把地址转成经纬度,或按坐标反查位置。

路线与距离

算行程时间、规划多点路线。

天气与出行

查天气和预警,按条件安排行程。

选择建议

值得选的地方

  • 只提供 6 个工具,职责集中,接入后不容易误操作。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在地图位置场景里让模型直接调用外部能力的人。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
MCP Streamable Servers

MCP World · 本页

6未说明未标注1 个2026-05-17
Baidu Maps

MCP World

10stdio有1 个2026-05-17
MCP Server C2f246e3

MCP World

20stdio有1 个2026-05-17
OpenStreetMap MCP Server

MCP.so

12stdio有3 个2026-05-17
Google Maps (google-maps-aa2563d3)

MCP World

7未说明未标注1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

MCP Streamable Servers 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

MCP Streamable Servers 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

MCP Streamable Servers 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Streamable Servers 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Streamable Servers 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP