Simple Server With Streamable HTTP Example
БесплатноНе проверенDemonstrates how to create a simple MCP server with streamable HTTP transport, featuring tools, prompts, and resources.
Описание
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
Установка Simple Server With Streamable HTTP Example
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/jonigl/mcp-server-with-streamable-http-exampleFAQ
Simple Server With Streamable HTTP Example MCP бесплатный?
Да, Simple Server With Streamable HTTP Example MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Simple Server With Streamable HTTP Example?
Нет, Simple Server With Streamable HTTP Example работает без API-ключей и переменных окружения.
Simple Server With Streamable HTTP Example — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Simple Server With Streamable HTTP Example в Claude Desktop, Claude Code или Cursor?
Открой Simple Server With Streamable HTTP Example на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: 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
автор: mcpdotdirectCompare Simple Server With Streamable HTTP Example with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
