A simple demo of MCP python sdk.
MCP Crash Course
uv commands
start a new project
create a virtual environment
activate the virtual environment
install the dependencies
run application
run the development server
build the project
Run server using MCP Inspector :
- Install MCP python sdk
- Run mcp inspector
MCP Inspector is up and running at http://127.0.0.1:6274
Add server to claude desktop :
- run command
- query "what is weather alert in CA" in claude desktop
Add server to cursor :
- goto preferences > settings > mcp and copy paste claude config
- Then do a query in cursor chat
Directly consume server in code - using mcp-use :
- Install mcp-use
- Install langchain-groq
- run client
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
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.
Related MCP Servers
- -securityFlicense-qualityThis SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.Last updated -90Python
- -securityFlicense-qualityThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)Last updated -Python
- AsecurityAlicenseAqualityAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.Last updated -1PythonMIT License
- AsecurityFlicenseAqualityA basic MCP server template that can be integrated with Cursor to enable AI tools like weather information retrieval using Claude-3.7-sonnet model.Last updated -2TypeScript