Skip to main content
Glama

Weather MCP Server

by laplus-x
weather.ts851 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp"; import { z } from "zod"; export const reportWeatherNews = (server: McpServer) => { server.prompt( "weather-news-report", { message: z.string() }, async ({ message }) => { console.log(`Received request: message=${message}`); const result = ` You are a professional news anchor. Report message as if you are delivering a live news broadcast. Message: ${message} Make it concise, factual, and engaging for the audience. Avoid technical jargon and keep it under 80 words. ` console.log(`Sended response: result=${result}`) return { messages: [ { role: "user", content: { type: "text", text: result.trim() } }, ], }; } ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/laplus-x/weather-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server