22nd of 5 in MCP servers and chat-host apps

template-mcp-server

Python FastMCP server template with OAuth, OpenShift manifests and CI

Stars
66
License
Apache-2.0
Last commit
Aug 2026
Language
Python

Overview

Python 3.12+ package on FastMCP and FastAPI with HTTP, SSE and streamable-HTTP transports on port 5001, a /health endpoint, Pydantic settings, structlog JSON logs, optional SSL and OAuth with PostgreSQL token storage. Ships three example tools, a UBI Containerfile, compose.yaml, OpenShift manifests, CI for tests, lint, security and releases. For teams standardizing MCP servers on Red Hat tooling.

Who it is for: Python teams building MCP servers for OpenShift

Strengths

  • HTTP, SSE and streamable-HTTP transports selectable by env var
  • OAuth with PostgreSQL token storage and a documented auth guide
  • Containerfile, compose.yaml and OpenShift manifests included
  • CI runs tests, linting, security scans and releases

Weaknesses

  • ENABLE_AUTH defaults differ between .env.example and code
  • Rename checklist touches nine files after cloning
  • OAuth mode needs PostgreSQL
  • Red Hat UBI base image and OpenShift focus may not fit other platforms

What it needs

  • Python, FastMCP, MCP Python SDK
  • Needs PostgreSQL (OAuth token storage)
  • GitHub template
  • Docker
  • env example file

Also in MCP servers and chat-host apps

See all 5
Also in MCP servers and chat-host apps
RankProjectScore
1mcp-typescript-templateExpress and Effect template for a stateless remote MCP server58 stars, MIT60 out of 100
3mcp-for-next.jsStateless MCP server route for a Next.js App Router app Live demo ↗ (opens in a new tab)373 stars, MIT41 out of 100
#4openai-apps-sdk-examplesExample MCP servers and widgets for ChatGPT apps on the Apps SDK2.4k stars, MIT32 out of 100
#5mcp-forgeGo MCP server template with OAuth discovery and JWT validation98 stars, Apache-2.024 out of 100