Back to Home
eatikrh icon

hackaton-mcp-server

Verified Safe

by eatikrh

Overview

A production-ready template for developing Model Context Protocol (MCP) servers, enabling AI agents to use specialized tools for arithmetic, code review prompt generation, resource handling, and backend service querying, with integrated Slack bot support via Keycloak OAuth.

Installation

Run Command
podman run -p 8080:8080 --env-file .env template-mcp-server

Environment Variables

  • MCP_PORT
  • MCP_TRANSPORT_PROTOCOL
  • ENABLE_AUTH
  • SSO_CLIENT_ID
  • SSO_CLIENT_SECRET
  • SSO_INTROSPECTION_URL
  • SESSION_SECRET
  • PYTHON_LOG_LEVEL
  • POSTGRES_HOST
  • POSTGRES_PORT
  • POSTGRES_DB
  • POSTGRES_USER
  • POSTGRES_PASSWORD
  • MCP_HOST_ENDPOINT

Security Notes

The server offers an `ENABLE_AUTH=false` mode for simplified integrations (e.g., Slack bot demo), explicitly warned as 'not suitable for internet exposure' in documentation. This design shifts authentication responsibility to individual tools or external handling, posing a significant risk if not properly understood and configured. Hardcoded default `MCP_HOST=0.0.0.0` can expose the server if not behind a firewall. Deployment manifests (`secret.yaml`) contain placeholder secrets ('CHANGE_ME') requiring manual updates for production. The `_local_development_token` in `api.py` allows a browser-based OAuth flow for local development, which is a local-only bypass, not a production risk.

Similar Servers

Stats

Interest Score0
Security Score6
Cost ClassLow
Avg Tokens50
Stars0
Forks0
Last Update2025-11-19

Tags

MCPFastAPIPythonAI AgentsKeycloakOAuth2Slack Integration