mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-serverWhat time is it?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Server
An extensible Model Context Protocol (MCP) server with weather and time tools. Built for learning — connect it to Claude Desktop and start chatting.
Getting Started
1. Clone & Install
git clone <repo-url> && cd mcp-server
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux / WSL
pip install -e .Or with uv:
git clone <repo-url> && cd mcp-server
uv venv
source .venv/bin/activate
uv pip install -e .2. Connect to Claude Desktop
Run the setup script to automatically write the Claude Desktop config file:
macOS:
python setup_claude_agent.pyThis writes ~/Library/Application Support/Claude/claude_desktop_config.json pointing to your project's .venv/bin/python.
If your project is in a non-standard location, pass it explicitly:
python setup_claude_agent.py --project-path /path/to/mcp-serverWindows (via WSL):
python3 setup_claude_agent.py --windows --win-user <YourWindowsUser> --wsl-user <YourWSLUser>For example:
python3 setup_claude_agent.py --windows --win-user Cam --wsl-user camThis writes %APPDATA%\Claude\claude_desktop_config.json and configures Claude Desktop to launch the server through WSL.
3. Restart Claude Desktop
Close and reopen Claude Desktop. To verify the server is connected, go to Settings → Developer — you should see mcp-server with a green running badge.
4. Try It Out
Ask Claude any of the following:
"What time is it?" — uses the
get_current_timetool"Get weather alerts for California" — uses the
weather://alerts/CAresource"What's the forecast for latitude 40.7128, longitude -74.0060?" — uses the forecast resource
You don't need to start the server manually — Claude Desktop launches it automatically.
Related MCP server: MCP Server
Available Tools & Resources
Type | Name | What it does |
Tool |
| Returns current time with automatic timezone detection |
Resource |
| Weather alerts for a US state (e.g. |
Resource |
| 5-period forecast for coordinates |
Prompt |
| Guides Claude through a full weather analysis |
Prompt |
| Helps with timezone checks, conversions, comparisons |
Adding Your Own Tools
Open src/mcp_server/server.py and add a function with the @mcp.tool() decorator:
@mcp.tool()
async def my_tool(param: str) -> str:
"""Description of what this tool does."""
return f"Result for {param}"Restart Claude Desktop to pick up the change.
For resources and prompts, see CONTRIBUTING.md.
Running Tests
pip install -e ".[dev]" # or: uv pip install -e ".[dev]"
pytestProject Structure
src/mcp_server/
├── server.py # MCP server entry point — register tools here
└── tools/
├── weather/ # Weather alerts & forecasts (NWS API)
├── time/ # IP-based timezone & current time
└── conversation/ # Conversation toolsLicense
MIT
Resources
Available Tools
4 toolsclear_old_cacheA
Clear expired weather cache entries.
Args: max_age_minutes: Maximum age in minutes before considering expired
Returns: Status message with number of entries removed
| Name | Required | Description | Default |
|---|---|---|---|
| max_age_minutes | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description indicates a destructive action (clearing cache) and mentions the return value (status with count). However, it lacks details on side effects (e.g., impact on other users, reversibility) or safety considerations beyond 'expired' entries.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise with a clear one-liner followed by structured args/returns. It could be even more concise but is well-organized and readable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (single parameter, output schema exists), the description covers its core function and return value adequately. However, it does not elaborate on edge cases or behavior when no entries are expired.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds meaningful context for the only parameter, 'max_age_minutes', beyond the schema's type and default, explaining it as 'Maximum age in minutes before considering expired'. This compensates for the 0% schema description coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool action ('Clear expired weather cache entries') with a specific verb and resource, distinguishing it from sibling read tools like get_alerts, get_current_time, and get_forecast.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for cache maintenance but does not explicitly state when to use this tool over alternatives (e.g., after forecast fetches) or provide any usage restrictions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_alertsA
Get active weather alerts for a US state.
Provides current weather alerts and warnings for the specified state. Checks cache first (30 min expiry), fetches fresh if needed.
Args: state: Two-letter US state code (e.g. CA, NY)
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses caching behavior (30 min expiry and refresh). Since no annotations are provided, this transparency helps the agent understand potential staleness. No destructive side effects are mentioned, which is appropriate for a read operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise (4 sentences) with clear structure: purpose, elaboration, caching behavior, and parameter details. Every sentence adds value without repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (1 parameter) and presence of output schema, the description covers all essential aspects: purpose, caching, and parameter format. It is complete enough for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has 0% description coverage, so the description carries the full burden. It provides useful context: 'Two-letter US state code' with examples (CA, NY), which adds meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states 'Get active weather alerts for a US state', specifying the action and resource. It distinguishes from siblings like get_forecast or clear_old_cache by focusing on alerts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide explicit when-to-use or when-not-to-use guidance compared to siblings. However, the purpose is clear enough that an agent would know to use it for alerts, not forecasts or cache operations.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_current_timeA
Get the current time based on the user's IP address.
This tool determines the user's timezone from their IP address using geolocation and returns the current local time in that timezone.
Args: ip_address: Optional IP address to determine timezone. If not provided or empty string, attempts to detect automatically or defaults to UTC.
Returns: Formatted string with current time, timezone, day, and ISO timestamp
| Name | Required | Description | Default |
|---|---|---|---|
| ip_address | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description fully discloses behavior: it determines timezone via IP geolocation, handles missing IP by auto-detection or UTC fallback, and returns a formatted string with time, timezone, day, and ISO timestamp. No contradictions exist.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise (two short paragraphs), front-loaded with the purpose, and uses a clear docstring structure. Every sentence contributes value, with no redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the low complexity (one optional parameter, no nested objects, output schema present), the description is complete. It explains input behavior and the output format (formatted string with time, timezone, day, ISO timestamp) without needing to detail the output schema further.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has only one parameter (ip_address) with no description, giving 0% schema coverage. The description adds full semantics: 'Optional IP address to determine timezone. If not provided or empty string, attempts to detect automatically or defaults to UTC.' This is essential context beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get the current time based on the user's IP address.' The verb 'get' and resource 'current time' are specific, and the method (IP-based geolocation) differentiates it from unrelated sibling tools like clear_old_cache and get_alerts.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains the use case (getting current time for a location) and the optional IP parameter. It does not explicitly state when not to use it or mention alternatives, but sibling tools are in different domains, so no confusion arises. The guidance is clear enough for an agent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_forecastA
Get weather forecast for geographic coordinates.
Provides a 5-day forecast for the specified location. Checks cache first (60 min expiry), fetches fresh if needed.
Args: latitude: Latitude of the location (-90 to 90) longitude: Longitude of the location (-180 to 180)
| Name | Required | Description | Default |
|---|---|---|---|
| latitude | Yes | ||
| longitude | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses caching behavior (60 min expiry) and refreshing logic, adding value beyond missing annotations. However, it omits details on error handling, data format, or side effects, leaving gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise with three sentences and bullet points, front-loading the core purpose. Every sentence contributes value without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple 2-parameter tool with an output schema, the description covers purpose, params with ranges, and caching. It is mostly complete but could mention behavior for invalid coordinates or when cache is not used.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 0% schema description coverage, the description adds essential meaning by specifying valid ranges for latitude (-90 to 90) and longitude (-180 to 180). This compensates well for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves a weather forecast for given geographic coordinates, using specific verbs and resource. It distinguishes well from sibling tools like 'clear_old_cache' and 'get_alerts' which serve different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for obtaining a 5-day forecast with caching, but does not explicitly state when to use or when alternatives are better. No guidance on exclusions or prerequisites is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
Each tool serves a distinct purpose: clear_old_cache for cache maintenance, get_alerts for weather alerts, get_current_time for time retrieval, and get_forecast for weather forecast. No overlap in functionality.
All tool names follow a consistent verb_noun pattern using snake_case: clear_old_cache, get_alerts, get_current_time, get_forecast. The naming convention is uniform.
With 4 tools, the server is well-scoped. The number is appropriate for a focused set of utilities, not too few or too many.
The tool set lacks cohesion: it combines weather (alerts, forecast) with time and cache maintenance, but omits common weather operations like current conditions or location search. The cache clearing tool is specific to weather cache, yet the time tool is unrelated, leaving gaps in both potential domains.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server for weather with reasoning — umbrella advice, outdoor checks, city comparisons.
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.23
- AlicenseAqualityDmaintenanceAn extensible MCP server with weather and time tools for Claude Desktop. It provides current time with automatic timezone detection, weather alerts for US states, and 5-period forecasts for coordinates.4MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server providing AI-powered weather tools via Google Generative AI, enabling real-time weather data retrieval through natural language queries.MIT
- FlicenseNot gradedqualityBmaintenanceA zero-config MCP server that provides real-time weather data and 5-day forecasts for any location without requiring API keys, enabling natural language weather queries through Claude.28
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/czabriskie/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server