loading…
Search for a command to run...
loading…
This repository provides a template for creating MCP servers with Python, including installation instructions and tools for testing with the MCP Inspector.
This repository provides a template for creating MCP servers with Python, including installation instructions and tools for testing with the MCP Inspector.
We recommend using uv to manage your Python projects.
If you prefer to manage your dependencies using pyproject.toml, you can add all libraries to your project:
uv sync
If you haven't created a uv-managed project yet, create one:
uv init mcp-server-demo
cd mcp-server-demo
Then add MCP to your project dependencies:
uv add "mcp[cli]"
Alternatively, for projects using pip for dependencies:
pip install "mcp[cli]"
client.py file providedpython client.py
To run the mcp command with uv:
uv run mcp
The MCP inspector is a developer tool for testing and debugging MCP servers.

The MCP Inspector consists of two main components that work together:
Note that the proxy is not a network proxy for intercepting traffic. Instead, it functions as both an MCP client (connecting to your MCP server) and an HTTP server (serving the web UI), enabling browser-based interaction with MCP servers that use different transport protocols.
To get up and running right away with the UI, just execute the following:
npx @modelcontextprotocol/inspector
The server will start up and the UI will be accessible at http://localhost:6274.
To inspect an MCP server implementation, there's no need to clone this repo. Instead, use npx. For example, if your server is built at build/index.js:
npx @modelcontextprotocol/inspector node build/index.js
For python server with uv:
npx @modelcontextprotocol/inspector uv run main.py
Выполни в терминале:
claude mcp add mcp-server-master -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development