✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more

A simple demo of MCP python sdk.

MCP Crash Course

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 .serverweather.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

Featured Templates

View More
Data Analysis
Pharmacy Admin Panel
234 1640
Verified Icon
AI Agents
AI Chatbot Starter Kit
1297 5924 5.0
Verified Icon
AI Assistants
Speech to Text
132 1439
AI Characters
Your Speaking Avatar
168 654
AI Assistants
AI Chatbot Starter Kit v0.1
128 635

Start your free trial

Build your solution today. No credit card required.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.