template-mcp-server
by redhat-data-and-ai·★ 54·Score 48
A production-ready Python template for building MCP servers with FastMCP, FastAPI, OAuth, and deployment examples.
Overview
This is a comprehensive MCP server template from Red Hat that provides a solid foundation for developing production MCP servers. It includes three example tools (multiply calculator, code review prompt generator, and Red Hat logo tool) and demonstrates best practices for MCP development including proper error handling, health checks, multiple transport protocols, SSL support, and structured logging. The template also includes OAuth integration with PostgreSQL token storage and deployment configurations for OpenShift.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this template when starting a new MCP server project, especially if you need production-ready features like OAuth authentication, container deployment, and CI/CD integration.
When NOT to choose this
Don't choose this if you're building a simple proof-of-concept or if you need a different programming language (this template is Python-specific).
Tools this server exposes
3 tools extracted from the READMEmultiply_calculatorA calculator that multiplies two numbers
code_review_prompt_generatorGenerates a prompt for reviewing code
red_hat_logo_toolReturns a Red Hat logo image
Comparable tools
Installation
Installation
Quick Start
git clone https://github.com/redhat-data-and-ai/template-mcp-server
cd template-mcp-server
make install # creates venv, installs deps + pre-commit hooks
make local # starts server on localhost:5001Manual Setup
# Create venv and install
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pre-commit install
# Configure and run
cp .env.example .env
template-mcp-serverClaude Desktop Configuration
{
"mcpServers": {
"template-mcp-server": {
"command": "uv",
"args": ["run", "template-mcp-server"],
"env": {
"MCP_HOST": "localhost",
"MCP_PORT": "5001"
}
}
}
}FAQ
- What transport protocols are supported?
- The template supports HTTP, SSE (Server-Sent Events), and streamable-HTTP protocols for MCP communication.
- Can I use this template for production deployment?
- Yes, this is a production-ready template with SSL support, containerization, and OpenShift deployment manifests included.
Compare template-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.