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
관련 서버
Alpha Vantage MCP Server
스폰서Access financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
GoMCP
A Go library for building clients and servers using the Model Context Protocol (MCP).
Vaadin MCP Server
The Vaadin Model Context Protocol (MCP) server provides AI coding assistants with direct access to comprehensive Vaadin documentation, enabling intelligent code assistance for Vaadin Java and React applications.
PipeCD
Integrate with PipeCD to manage applications and deployments.
mcp-nodejs
A Node.js MCP server example for the OpenWeather API, requiring an API key.
SDD MCP
Provides Seam-Driven Development tools for AI-assisted software development.
Remote MCP Server (Authless)
A remote MCP server for Cloudflare Workers, authless by default with optional token-based authentication.
ask-gemini-mcp
MCP server that enables AI assistants to interact with Google Gemini CLI
CodeGraphContext
An MCP server that indexes local code into a graph database to provide context to AI assistants.
Pickapicon
Quickly retrieve SVGs using the Iconify API, with no external data files required.
Language Server
MCP Language Server gives MCP enabled clients access to semantic tools like get definition, references, rename, and diagnostics.
