temperature-mcp-server
A simple MCP server that provides temperature information for popular locations
pinned to #65f33dfupdated 2 weeks ago
Ask your AI client: “install mcps/temperature-mcp-server”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install mcps/temperature-mcp-servermetahub onboarded this repo on the author's behalf.
If you own github.com/maximhq/bifrost on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
6,426
Last commit
2 weeks ago
Latest release
published
- #ai-gateway
- #gateway
- #gateway-services
- #generative-ai
- #guardrails
- #llm
- #llm-cost
- #llm-gateway
- #llm-observability
- #llmops
- #load-balancing
- #mcp-client
- #mcp-gateway
- #mcp-server
- #model-router
- #token-management
Evaluation report
PassingAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.65f33df· 2 weeks ago
Select a category above to see its individual checks.
Release history
1- releasecurrent65f33dfpass2 weeks ago
Contents
A simple Model Context Protocol (MCP) server that provides temperature information for popular cities around the world. This server exposes a single tool get_temperature that returns dummy temperature data for demonstration purposes.
Features
- Single MCP tool:
get_temperature - Supports 20+ popular cities worldwide
- Returns temperature in Celsius or Fahrenheit
- Includes weather conditions
- Uses dummy/mock data (no external API calls)
Installation
npm install
Build
npm run build
Usage
Running the Server
The server runs on stdio transport (standard input/output) by default:
npm start
Using with MCP Clients
This server can be used with any MCP-compatible client. Add it to your client configuration:
{
"mcpServers": {
"temperature": {
"command": "node",
"args": ["/path/to/temperature-mcp/dist/index.js"]
}
}
}
Available Tool
get_temperature
Get the current temperature for a popular city.
Input:
location(string, required): The name of the city
Example:
{
"location": "New York"
}
Output:
Temperature in New York: 72°F
Condition: Partly Cloudy
Supported Cities
The server provides temperature data for the following cities:
- New York, Los Angeles, San Francisco, Chicago (USA)
- London, Paris, Berlin, Moscow (Europe)
- Tokyo, Beijing, Shanghai, Hong Kong, Seoul, Singapore (Asia)
- Sydney (Australia)
- Dubai (Middle East)
- Mumbai (India)
- Toronto (Canada)
- Mexico City (Mexico)
- Rio de Janeiro (Brazil)
Development
To run in development mode:
npm run dev
Architecture
This server demonstrates:
- TypeScript MCP server implementation
- Tool registration and execution
- Input validation using Zod
- Stdio transport for communication
- Error handling and user-friendly messages
Note
This server uses dummy data for demonstration purposes. In a production environment, you would integrate with a real weather API service.
Reviews
No reviews yet. Be the first.
Related
@remote-mcp/example
@remote-mcp/example MCP server
excel-mcp-server
Excel MCP Server for manipulating Excel files
vulnerable-mcp-server-malicious-code-exec
A simple MCP server with a get_qotd tool that fetches quotes from a free API
mh install mcps/temperature-mcp-server