Skip to main content
Glama

MCP Crash Course

A simple demo of MCP python sdk.

MseeP.ai Security Assessment Badge

uv commands

start a new project

uv init <project-name>

create a virtual environment

uv venv

activate the virtual environment

uv venv --activate

install the dependencies

uv add <package> 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 :

  • Install MCP python sdk

uv add "mcp[cli]"
  • Run mcp inspector

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 :

  • run command

uv run mcp install .\server\weather.py
  • query "what is weather alert in CA" in claude desktop

Add server to cursor :

  • goto preferences > settings > mcp and copy paste claude config

{ "mcpServers": { "weather": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "C:\\Users\\Suraj\\Desktop\\Python\\mcp-crash-course\\mcpcrashcourse\\server\\weather.py" ] } } }
  • Then do a query in cursor chat

Directly consume server in code - using mcp-use :

  • Install mcp-use

uv add mcp-use
  • Install langchain-groq

uv add langchain-groq
  • run client

uv run server/client.py
Deploy Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    A simple MCP service that allows users to query weather conditions for cities worldwide through the Cursor AI assistant.
    Last updated -
    1
  • -
    security
    F
    license
    -
    quality
    An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
    Last updated -
    1
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Python-based MCP server that provides real-time weather information using the National Weather Service API, supporting both synchronous and asynchronous HTTP requests.
    Last updated -
    MIT License
  • A
    security
    A
    license
    A
    quality
    A TypeScript-based MCP server that provides simulated weather data including current conditions, forecasts, alerts, and location search functionality through both MCP protocol and HTTP API endpoints.
    Last updated -
    5
    4
    1
    MIT License

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/suryanshp1/mcpcrashcourse'

If you have feedback or need assistance with the MCP directory API, please join our Discord server