sample-mcp-server

frenoid/sample-mcp-server

3.1

If you are the rightful owner of sample-mcp-server 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.

A Weather MCP server provides AI Agents with weather alerts and forecasts from the US weather service.

A Weather MCP server

A weather MCP server to provide AI Agents with weather alerts and forecasts from the US weather service

A fork of A Simple MCP Weather Server written in Python

Follow the guide Build an MCP server

How to run

Clone the repository

Clone the Github repository

git clone git@github.com:frenoid/sample-mcp-server.git

Enter the directory

cd sample-mcp-server

Run the server

The server takes 2 env MCP_SERVER_HOST and MCP_SERVER_PORT to control the host and port bindings.

The default values are as follows

export MCP_SERVER_HOST=127.0.0.1
export MCP_SERVER_PORT=8080

To expose the server to external services on port 5555, run with the following commands

MCP_SERVER_HOST=0.0.0.0 MCP_SERVER_PORT=5555 python weather.py