Skip to content

foundersandcoders/MCP_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCP Server Workshop

Setup

Create and activate a virtual environment:

python -m venv .venv
source .venv/bin/activate

Use python3 if needed. On Windows: .\.venv\Scripts\Activate

Install dependencies:

pip install -r requirements.txt

Test with MCP Inspector

Launch Inspector:

npx @modelcontextprotocol/inspector python server.py

Inspector opens at http://localhost:5173

Test the tools:

  1. Run ping → returns {"ok": true, "message": "Server is running"}
  2. Run weather with a city name (e.g., "London")

Troubleshooting

If Inspector gets stuck:

# macOS/Linux
pkill -f "@modelcontextprotocol/inspector"

# Windows
Get-Process | Where-Object { $_.Path -like "*@modelcontextprotocol*" } | Stop-Process

About

Template for your MCP servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages