Dockerized Mcp Server Template
БесплатноНе проверенA reusable Dockerized Python server template implementing the Model Context Protocol (MCP) with Streamable HTTP transport, built using the official MCP Python S
Описание
A reusable Dockerized Python server template implementing the Model Context Protocol (MCP) with Streamable HTTP transport, built using the official MCP Python SDK (v1.8.0+) for easy integration with Large Language Models (LLMs).
README
This repository provides a reusable template for a Python server implementing the Model Context Protocol (MCP), running in a Docker container and utilizing Streamable HTTP for real-time communication. Built on the Python implementation of the Model Context Protocol (MCP), this template enables easy integration with Large Language Models (LLMs).
What is MCP?
The Model Context Protocol (MCP) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way.
This template demonstrates a production-ready MCP server running in a Docker container, utilizing stateless Streamable HTTP for real-time communication.
Project Structure
dockerized-mcp-server-template/
├── src/
│ ├── Dockerfile
│ ├── requirements.txt
│ └── server.py
├── docker-compose.yml
└── README.md
Getting Started
Build and Run with Docker Compose
docker-compose up --build
The server will be accessible at:
http://localhost:8080/mcp
Running Directly (without Docker)
Alternatively, you can run the server directly using Python. First, install dependencies:
pip install -r src/requirements.txt
Then run the server:
python src/server.py
The server will be accessible at:
http://localhost:8080/mcp
Example Usage
The example includes a simple MCP tool function add:
@mcp.tool()
def add(a: int, b: int) -> int:
"""Add two numbers"""
return a + b
You can invoke this tool via MCP client requests.
Technical Notes
This template uses Streamable HTTP transport, which is available in the Model Context Protocol starting with the Python SDK v1.8.0 (https://github.com/modelcontextprotocol/python-sdk).
Why Streamable HTTP?
Streamable HTTP significantly improves upon the previous SSE transport by enabling stateless operation, making MCP compatible with serverless architectures and standard web infrastructure. This approach eliminates the need for persistent connections, resulting in better resource efficiency and cost effectiveness, while offering a more straightforward implementation for developers. The result is an MCP server that's easier to deploy, more scalable, and more resource-efficient without sacrificing functionality.
Resources
Установка Dockerized Mcp Server Template
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/zantis/dockerized-mcp-server-templateFAQ
Dockerized Mcp Server Template MCP бесплатный?
Да, Dockerized Mcp Server Template MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Dockerized Mcp Server Template?
Нет, Dockerized Mcp Server Template работает без API-ключей и переменных окружения.
Dockerized Mcp Server Template — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Dockerized Mcp Server Template в Claude Desktop, Claude Code или Cursor?
Открой Dockerized Mcp Server Template на 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 Dockerized Mcp Server Template with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
