MCP服务器

MCP服务器是一个基于FastMCP构建的服务,提供访问Snap4City资源的工具,适用于城市交通和物联网数据查询场景。

  • by CASician
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 CASician/mcp-server-snap

使用说明

MCP服务器

这是一个 MCP服务器 建于 FastMCP 它提供了访问Snap4City资源的工具。

它可以通过任何兼容MCP的客户端(例如 MCP客户端)

特性

工具

  • get_services(...)

  • iot_search(...)

  • iot_search_time_range(...)

  • get_events(...)

  • get_location(...)

  • get_bus_lines(...)

  • get_bus_routes(...)

  • get_bus_stops(...)

  • tpl_geo_search(...)

  • get_bus_position(...)

  • route_shortest_path(...)

资源

  • get_agencies()

提示词

  • explain_bus_lines_prompt(...)

运行服务器

python server.py

预期产量:

Server is now running...

服务器通过以下方式进行通信 标准,已准备好供MCP客户端使用。 如果与上述MCP客户端一起使用,则无需启动它。当 chat 别名被调用。

备注