jackisacoolryan/mcp_test_1
If you are the rightful owner of mcp_test_1 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 project demonstrates a minimal FastMCP server using Streamable HTTP transport, which is the recommended default for remote MCP servers.
Test MCP Server Using Streamable HTTP
This sample project demonstrates a minimal FastMCP server using the Streamable HTTP transport, which has become the recommended default for remote MCP servers. It exposes a single greet tool that returns a friendly greeting.
Files
server.py: Defines and runs the FastMCP server. At runtime, it callsmcp.run(transport="http")to launch the server on0.0.0.0:8000/mcp. Adjust host, port or path as needed.requirements.txt: Containsfastmcpas the only dependency.
Running Locally
Ensure you have Python 3.10+ installed and a virtual environment set up. Then install dependencies and run the server:
pip install -r requirements.txt
python server.py
The server will start at http://localhost:8000/mcp. You can inspect it using an MCP client or inspector tool.
Deploying to Render
- Create a new repository in GitHub and add these files. Link it to a new Web Service on Render.
- Environment variables: None are strictly required for this simple example, but you can add
READ_ONLY=trueorMCP_PORTas needed. - Build and start commands (Streamable HTTP):
- Build command:
pip install -r requirements.txt - Start command:
python server.py
- Build command:
- Once deployed, your MCP server endpoint will be
https://<render-app-url>/mcp. Use this URL when registering the server as a connector in ChatGPT when that feature becomes available.
Why Streamable HTTP?
The Model Context Protocol has been transitioning away from Server-Sent Events (SSE) due to limitations in scalability, reliability and bidirectional communication. The Streamable HTTP transport uses a single endpoint for both sending and receiving messages, dynamically upgrading to streaming when needed, which simplifies connection management and enhances robustness.