Back to Home
rdwj icon

mcp-server-template

Verified Safe

by rdwj

Overview

A production-ready template for building Model Context Protocol (MCP) servers with dynamic tool/resource loading, Python-based prompts, and seamless OpenShift deployment capabilities for AI agents.

Installation

Run Command
.venv/bin/python -m src.main

Environment Variables

  • MCP_TRANSPORT
  • MCP_HTTP_HOST
  • MCP_HTTP_PORT
  • MCP_HTTP_PATH
  • MCP_AUTH_JWT_ALG
  • MCP_AUTH_JWT_SECRET
  • MCP_AUTH_JWT_PUBLIC_KEY
  • MCP_REQUIRED_SCOPES
  • MCP_HOT_RELOAD
  • MCP_LOG_LEVEL
  • MCP_SERVER_NAME

Security Notes

The server template includes JWT authentication with scope-based authorization, using environment variables for sensitive keys. It explicitly addresses potential file permission issues during deployment. Error handling uses `ToolError` to prevent internal traceback exposure. `fastmcp.settings.mask_error_details` can be configured to hide detailed error information from clients. No obvious `eval` or malicious code patterns were found.

Similar Servers

Stats

Interest Score32
Security Score9
Cost ClassMedium
Avg Tokens200
Stars2
Forks1
Last Update2025-12-14

Tags

MCPAI AgentsServer TemplatePythonOpenShiftDynamic LoadingFastMCP