mcp-server-template
Verified Safeby 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
.venv/bin/python -m src.mainEnvironment 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
kubernetes-mcp-server
Facilitates AI agent interaction with Kubernetes and OpenShift clusters by exposing management and observability tools via the Model Context Protocol.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
mcp-server-python-template
This server acts as a template for building Model Context Protocol (MCP) servers in Python, specifically demonstrating how to expose weather-related tools (get_alerts, get_forecast) by integrating with an external API (National Weather Service) to provide context and actions for AI models.
mcp-servers
Provides an MCP server for Qdrant vector database integration, enabling AI agents to perform semantic search, store documents, and manage collections with advanced multi-tenant filtering capabilities.