π¦
Py Fastmcp Server Sample
No description available
0 installs
Trust: 30 β Low
Devtools
Ask AI about Py Fastmcp Server Sample
Powered by Claude Β· Grounded in docs
I know everything about Py Fastmcp Server Sample. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
py-fastmcp-server-sample
This is a sample Python project demonstrating a simple MCP (Model Context Protocol) server using FastMCP.
Features
- Example MCP server implementation
- Custom math operations
- FastAPI-based server
Requirements
- Python 3.8+
- fastmcp (install with
pip install fastmcp) - fastapi
- uvicorn
Installation
- Clone this repository:
git clone <repo-url> cd py-fastmcp-server-sample - (Optional) Create and activate a virtual environment:
python -m venv venv .\venv\Scripts\activate - Install dependencies:
pip install -r requirements.txt
Usage
To start the MCP server, run:
python my_math_mcp_server.py
Or, if using FastAPI with Uvicorn:
uvicorn my_math_mcp_server:app --reload
Project Structure
main.pyβ Example client or entry pointmy_math_mcp_server.pyβ MCP server implementationrequirements.txtβ Python dependenciespyproject.tomlβ Project metadata
License
MIT License
