mcp-server-fastapi

内容来源:README.md(说明文档) · 原始地址 · 查看安装指南

原始内容

MCP_server_fastapi


🚀 Getting Started

Follow the steps below to install dependencies, run the server, and debug your tools locally.


📦 Install Dependencies

Use uv (a faster Python package manager) to install project dependencies:

uv pip install -r pyproject.toml

▶️ Start the Server

You can run the server using one of the following options:

Option 1: Using Python

python src/server.py

Option 2: Using uv

uv run start

🧪 Debug and Test

You can test your tool locally using MCP Inspector:

mcp dev ./src/weather.py

🛠 Requirements

  • Python 3.12+
  • uv installed
  • mcp CLI installed