A simple demo of MCP python sdk.
MCP Crash Course
uv commands
start a new project
Copy
create a virtual environment
Copy
activate the virtual environment
Copy
install the dependencies
Copy
run application
Copy
run the development server
Copy
build the project
Copy
Run server using MCP Inspector :
- Install MCP python sdk
Copy
- Run mcp inspector
Copy
MCP Inspector is up and running at http://127.0.0.1:6274
Add server to claude desktop :
- run command
Copy
- query "what is weather alert in CA" in claude desktop
Add server to cursor :
- goto preferences > settings > mcp and copy paste claude config
Copy
- Then do a query in cursor chat
Directly consume server in code - using mcp-use :
- Install mcp-use
Copy
- Install langchain-groq
Copy
- run client
Copy
This server cannot be installed
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.