khushboosaini/activity-2-MCP-server
3.2
If you are the rightful owner of activity-2-MCP-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
This document provides a structured overview of a simple FastMCP server example, highlighting its features, tools, resources, and usage across different platforms.
Simple FastMCP Server Example
This small example shows a minimal MCP server using the fastmcp library. If
fastmcp isn't installed, the example falls back to a FastAPI app so you can
run and experiment locally.
Files:
server.py: example server (triesfastmcp, falls back toFastAPI).requirements.txt: dependencies to install.
Quick start (PowerShell):
python -m pip install -r "c:/work/BSI - AI/AI activities/activity_2/requirements.txt"
cd "c:/work/BSI - AI/AI activities/activity_2"
uvicorn server:app --reload --port 8000
Try the endpoints:
GET http://127.0.0.1:8000/-> helloGET http://127.0.0.1:8000/health-> health check (FastAPI fallback)POST http://127.0.0.1:8000/mcp/respondwith JSON{ "input": "hello" }-> example reply
Notes:
- If you have
fastmcpinstalled, adaptserver.pyto match the real library API. - The fallback is intended for local testing and demonstration.