mcp-python-streamable-e2e-test-template

mcp-python-streamable-e2e-test-template

3.3

If you are the rightful owner of mcp-python-streamable-e2e-test-template and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This is a template project for developing Python-based Model Context Protocol (MCP) servers using FastMCP and Docker.

The Python MCP Server Template is designed to facilitate the development of MCP servers using FastMCP and Docker. It provides a streamlined setup for creating MCP servers with essential features like an 'add' tool and a 'greeting' resource. The template includes type hints, static analysis with Ruff, and a test environment. It supports a ready-to-use development environment setup with Docker and Devcontainer, making it easy to maintain consistency across different development setups. The project is built upon the official Model Context Protocol Python SDK and uses FastMCP, a lightweight and fast MCP server library for Python. The template also includes a Docker/Devcontainer setup for containerization and a consistent development environment, package management with 'uv', and configurable logging. It is designed to be a Streamable-ready End-to-End (E2E) test template for MCP, providing a robust foundation for developing and testing MCP servers.

Features

  • MCP Python SDK: Built upon the official Model Context Protocol Python SDK.
  • FastMCP Based: Uses FastMCP, a lightweight and fast MCP server library for Python.
  • Docker & Devcontainer: Provides containerization with Docker and a consistent development environment with VS Code Dev Containers.
  • Package Management with 'uv': Employs 'uv', a fast Python package installer and resolver.
  • Static Analysis and Formatting: Linting and formatting with 'Ruff' are pre-configured.

Tools

  1. add

    Adds two numbers. Example Input: {"a": 10, "b": 5}, Example Output: 15 (as TextContent)