Simple Server With Streamable HTTP Example
FreeNot checkedDemonstrates how to create a simple MCP server with streamable HTTP transport, featuring tools, prompts, and resources.
About
Demonstrates how to create a simple MCP server with streamable HTTP transport, featuring tools, prompts, and resources.
README
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.py
Or with uv:
uv run mcp-server
Custom Port
Change the port (default is 8000):
MCP_SERVER_PORT=9000 python simple_streamable_http_mcp_server.py
Debug Logging
Enable debug logs for tool calls:
MCP_DEBUG=1 python simple_streamable_http_mcp_server.py
Both Together
MCP_SERVER_PORT=9000 MCP_DEBUG=1 python simple_streamable_http_mcp_server.py
Tools
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
from github.com/jonigl/mcp-server-with-streamable-http-example
Install Simple Server With Streamable HTTP Example in Claude Desktop, Claude Code & Cursor
unyly install simple-mcp-server-with-streamable-http-exampleInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add simple-mcp-server-with-streamable-http-example -- uvx --from git+https://github.com/jonigl/mcp-server-with-streamable-http-example stream-mcp-server-testFAQ
Is Simple Server With Streamable HTTP Example MCP free?
Yes, Simple Server With Streamable HTTP Example MCP is free — one-click install via Unyly at no cost.
Does Simple Server With Streamable HTTP Example need an API key?
No, Simple Server With Streamable HTTP Example runs without API keys or environment variables.
Is Simple Server With Streamable HTTP Example hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Simple Server With Streamable HTTP Example in Claude Desktop, Claude Code or Cursor?
Open Simple Server With Streamable HTTP Example on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Simple Server With Streamable HTTP Example with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
