MCP.so
登录

My MCP Weather Server

@EnigmaticHarvest

关于 My MCP Weather Server

A dummy MCP server to test the mcp-chat-cli at

基本信息

分类

媒体与设计

许可证

MIT license

运行时

node

传输方式

stdio

发布者

EnigmaticHarvest

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is My MCP Weather Server?

My MCP Weather Server is an example MCP (Model Context Protocol) server built with the @modelcontextprotocol/sdk for TypeScript. It exposes a single tool that returns dummy weather information for a few predefined cities, intended for use as a backend by MCP-compliant clients such as LLM‑powered agents.

How to use My MCP Weather Server?

Clone or create the project, install dependencies with npm install, then run npm run build (or use the development command with ts-node and nodemon). The server uses Streamable HTTP Transport; clients call the get_city_weather tool by providing a city string and an optional unit parameter.

Key features of My MCP Weather Server

  • Implements the Model Context Protocol (MCP)
  • Uses Streamable HTTP Transport for communication
  • Exposes a get_city_weather tool with structured output
  • Accepts optional unit parameter (metric/imperial, defaults to metric)
  • Returns dummy weather data: temperature, description, humidity
  • Demonstes simple in-memory session management

Use cases of My MCP Weather Server

  • Prototyping an MCP‑compliant weather tool for an LLM agent
  • Learning how to build and test an MCP server with TypeScript
  • Demonstrating structured tool output and session handling
  • Testing MCP client‑server integration without a real weather API

FAQ from My MCP Weather Server

What does the get_city_weather tool return?

It returns dummy weather information including temperature, description, and humidity, along with structuredContent matching a defined outputSchema for reliable client parsing.

What are the runtime dependencies?

Node.js v18 or higher and npm (or yarn/pnpm). The server uses the @modelcontextprotocol/sdk and runs via ts-node in development mode.

Does My MCP Weather Server use a real weather API?

No. All weather data is dummy/in‑memory for a few predefined cities (e.g., paris, london, tokyo). It is an example server, not a production service.

What transport does the server use?

It uses StreamableHTTPServerTransport, the recommended MCP transport for HTTP‑based communication.

Is authentication or session management included?

The server demonstrates basic in‑memory session handling, but no authentication mechanism is implemented.

评论

媒体与设计 分类下的更多 MCP 服务器