Provides an example tool for retrieving Red Hat branding assets, such as the Red Hat logo, and includes deployment configurations for Red Hat platforms like OpenShift.
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., "@Template MCP Servergenerate a code review prompt for my Python function"
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.
Template MCP Server
A production-ready template for developing Model Context Protocol (MCP) servers using Python and FastMCP. This server provides a foundation for creating MCP-compliant servers with comprehensive examples of tools, structured logging, configuration management, and containerized deployment.
The template includes three example MCP tools: a multiply calculator, a code review prompt generator, and a Red Hat logo tool. It demonstrates best practices for MCP server development including proper error handling, health checks, multiple transport protocols (HTTP, SSE, streamable-HTTP), SSL support, and comprehensive development tooling.
Features
FastMCP + FastAPI with multiple transport protocols (HTTP, SSE, streamable-HTTP)
Three example tools: multiply calculator, code review prompt, Red Hat logo
Pydantic configuration via environment variables
Structured JSON logging with structlog
SSL/TLS support for secure deployments
Container-ready with Red Hat UBI base image
OpenShift deployment manifests included
Full CI/CD with GitHub Actions (tests, linting, security, releases)
OAuth integration with PostgreSQL token storage
Quick Start
Verify in another terminal:
How to Use This Template
Option 1: GitHub Template (Recommended)
Click the "Use this template" button at the top of the repository page.
Name your new repository (e.g.,
my-mcp-server).Clone your new repository and follow the rename checklist below.
Option 2: Manual Clone
Rename Checklist
After creating your project, replace all references to template-mcp-server and template_mcp_server with your project name. The following files require updates:
File / Directory | What to Change |
| Rename the package directory (e.g., |
|
|
| References in |
|
|
|
|
| App labels, image names, route hostnames in all manifests ( |
| Workflow names and paths |
| Title, description, clone URL, and all badge URLs (tests, coverage, Codespaces) |
| Adjust defaults if your server uses a different port or protocol |
Verify Rename
Run this to catch any leftover references:
The output should be empty (or only match this README section itself).
Configuration
Variable | Default | Description |
|
| Server bind address |
|
| Server port (1024-65535) |
|
| Transport protocol ( |
|
| SSL private key file path |
|
| SSL certificate file path |
|
| Enable OAuth authentication (see Auth Guide) |
|
| Browser-based OAuth for local dev |
|
| Logging level |
*
Documentation
Guide | Description |
System diagrams, code structure, key components, MCP tools | |
Setup, running locally, testing, code quality | |
Podman, OpenShift, container configuration | |
Workflows, pipeline features, running CI locally | |
Development workflow, commit conventions, PR process | |
Vulnerability reporting policy | |
Release history | |
OAuth setup, auth modes, troubleshooting | |
Your First Tool in 5 Minutes | |
FastMCP and LangGraph client examples |
Contributing
See CONTRIBUTING.md for detailed guidelines.