Simple MCP Server with Streamable HTTP Example
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Simple MCP Server with Streamable HTTP ExampleAdd 5 and 3"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A simple MCP server with streamable HTTP transport Example
This example demonstrates how to create a simple MCP server with streamable HTTP transport, featuring several tools, prompts, and resources.
Run
By default, the server runs on port 8000.
python simple_streamable_http_mcp_server.pyOr with uv:
uv run mcp-serverCustom Port
Change the port (default is 8000):
MCP_SERVER_PORT=9000 python simple_streamable_http_mcp_server.pyDebug Logging
Enable debug logs for tool calls:
MCP_DEBUG=1 python simple_streamable_http_mcp_server.pyBoth Together
MCP_SERVER_PORT=9000 MCP_DEBUG=1 python simple_streamable_http_mcp_server.pyTools
hello_world(name)- Say helloadd_numbers(a, b)- Add two numbersrandom_number(min_val, max_val)- Generate random numberreturn_json_example()- Return example JSONcalculate_bmi(weight, height)- Calculate BMIget_logo()- Return the OllMCP logo image
Prompts
BMI Calculator- Prompt for BMI calculation
Resources
server://info- Get server infotext://welcome- Get a welcome messageimages://ollmcp-logo- Get the OllMCP logo imagefile://{path*}- Read a local text file by path
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonigl/mcp-server-with-streamable-http-example'
If you have feedback or need assistance with the MCP directory API, please join our Discord server