MCP Crash Course
A simple demonstration of the MCP Python SDK.
MCP Crash Course
A simple demo of MCP python sdk.
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
Servidores relacionados
Scout Monitoring MCP
patrocinadorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
patrocinadorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Dash0
Navigate your OpenTelemetry resources, investigate incidents and query metrics, logs and traces on Dash0.
HeyBeauty
Perform virtual try-ons using the HeyBeauty API.
Unity MCP Server
An MCP server that allows AI assistants to programmatically interact with Unity development projects.
drawdb-mcp
DrawDB + MCP server
Remote MCP Server Chatbot
A demonstration of deploying a remote MCP server on Cloudflare Workers without authentication.
MCP Python REPL Server
An interactive Python REPL server with built-in support for the uv package manager and virtual environments.
Sentry MCP Server
An MCP server for interacting with the Sentry error tracking and performance monitoring platform.
XcodeBuild MCP
A server providing tools for Xcode project management, simulator management, and app utilities.
Shallow Research Code Assistant
A multi-agent AI-powered research and code assistant. Requires external API keys for LLM providers, web search, and secure code execution.
Integrated MCPs Guide
An integrated MCP server combining Azure DevOps, Gmail, Browser, and Gemini AI functionalities on a Node.js server.
