A simple demonstration server for the MCP Python SDK that provides weather alerts for locations, allowing users to query weather information through Claude Desktop or Cursor.
A simple demo of MCP python sdk.
start a new project
uv init
create a virtual environment
uv venv
activate the virtual environment
uv venv --activate
install the dependencies
uv add uv add -r requirements.txt uv sync
run application
uv run app.py
run the development server
uv run dev
build the project
uv run build
Run server using MCP Inspector :
uv add "mcp[cli]"
uv run mcp dev server/weather.py
MCP Inspector is up and running at http://127.0.0.1:6274
Add server to claude desktop :
uv run mcp install .\server\weather.py
Add server to cursor :
{ "mcpServers": { "weather": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "C:\\Users\\Suraj\\Desktop\\Python\\mcp-crash-course\\mcpcrashcourse\\server\\weather.py" ] } } }
Directly consume server in code - using mcp-use :
uv add mcp-use
uv add langchain-groq
uv run server/client.py
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!