Skip to main content
Welcome — in this lesson we’ll set up a local MCP server and the basic tooling required to run and inspect it. Follow the steps below to prepare your environment, start an MCP server from a catalog, and run the inspector to explore server behavior. I keep a project folder named code that contains several example MCP servers and supporting files.
A dark-themed Visual Studio Code window with the Explorer pane open, showing a project folder tree (including a "code" folder and many "stage-*" directories) on the left. The main editor area is empty with a faint VS Code logo in the center.
Each server in this repository is registered in an mcp.json catalog. A typical entry looks like this:
Key fields and their purpose The mcp.json catalog is how inspector tools discover and launch MCP servers listed in your project. Prerequisites and environment setup
  1. Install a supported Python version (examples here use Python 3.10.19).
  2. Create and activate a project virtual environment.
  3. If present, install project dependencies from requirements.txt.
A concise set of commands to prepare the environment:
Ensure the Python version you use is compatible with the MCP SDK you plan to install. Different SDK releases may require different Python versions.
Installing the MCP SDK and the inspector To build and run MCP servers, install the official Model Context Protocol SDK for your language. This guide uses the Python SDK. Install the Python SDK (including CLI extras):
The inspector used in these examples is the Node-based inspector (published as @modelcontextprotocol/inspector) and can be run with npx:
This command starts the inspector and points it at your mcp.json catalog so it can discover and run servers listed there.
The inspector is Node-based and requires Node.js/npm installed on your system to run npx. Make sure Node.js is installed and up-to-date before running the inspector.
What this lesson covers (scope)
  • Creating and activating a Python virtual environment for your MCP server project.
  • Installing the MCP Python SDK and required dependencies.
  • Running the Node-based inspector against an mcp.json catalog to discover and start servers.
This lesson does not dig into building server implementations or the inspector internals. For now, confirm you can: create/activate a virtual environment, install dependencies, and run the inspector against your mcp.json.
A screenshot of the Model Context Protocol documentation page showing an "Available SDKs" table with languages (TypeScript, Python, C#, Go, Rust, Ruby, Java, Swift, PHP) and repository links. The page also shows tier badges for each SDK and a left navigation menu.
Links and references If you run into issues, verify Python and Node.js are properly installed, the virtual environment is activated, and the mcp.json file is in your working directory when running the inspector.

Watch Video