Back to MCP directory
publicPublicdnsLocal runtime

sample-mcp-server-python

项目支持通过nodemon监控Python服务器文件变更自动重启,并可自定义端口运行

article

README

🚀 项目运行指南

本项目提供了多种运行方式,涵盖使用监视模式、自定义端口以及不使用监视模式的运行方法,帮助你更灵活地启动项目。

🚀 快速开始

📦 安装依赖

若你需要使用监视模式运行项目,需先全局安装 nodemon

npm install -g nodemon

💻 使用示例

基础用法

使用监视模式运行项目:

nodemon --exec python server.py

高级用法

自定义端口运行项目:

nodemon --exec "python server.py 2025"

不使用监视模式

若你不需要监视文件变化,可直接运行项目:

python server.py
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client