ZhangXixiang/weather
3.1
If you are the rightful owner of weather and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The Model Context Protocol (MCP) server facilitates communication between clients and various tools, enabling seamless integration and execution of tasks.
see: https://modelcontextprotocol.io/docs/develop/build-server#what%E2%80%99s-happening-under-the-hood
Your server is complete! Run uv run weather.py to start the MCP server, which will listen for messages from MCP hosts.
Let’s now test your server from an existing MCP host, Claude for Desktop.
client like cursor config:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
"run",
"weather.py"
]
}
}
}
What’s happening under the hood
When you ask a question:
The client sends your question to Claude
Claude analyzes the available tools and decides which one(s) to use
The client executes the chosen tool(s) through the MCP server
The results are sent back to Claude
Claude formulates a natural language response
The response is displayed to you!
```# weather