golf
by golf-mcp
Overview
A Python framework for building conversational AI servers (MCP servers) by defining tools, resources, and prompts as modular Python files, with integrated authentication, telemetry, and LLM interaction utilities.
Installation
golf build dev && golf runEnvironment Variables
- HOST
- PORT
- GOLF_TELEMETRY
- OTEL_TRACES_EXPORTER
- OTEL_EXPORTER_OTLP_ENDPOINT
- WEATHER_API_KEY
- JWT_ISSUER_ENV_VAR
- API_KEY_DEBUG
Security Notes
The example `calculator.py` tool (generated by default with `golf init`) uses `eval()` to evaluate mathematical expressions. While it includes a basic character whitelist, `eval()` is inherently dangerous and, if exposed to untrusted input (e.g., from an LLM generating malicious input or a direct API call), it poses a critical remote code execution vulnerability. For production environments, this tool should be removed or replaced with a safer expression parser. Other `exec()` and `subprocess` calls within the framework are for executing trusted local project files during the build/run process, which is generally acceptable. Telemetry uses a public API key and explicitly disables IP address collection.
Similar Servers
zenfeed
An AI-powered information hub that acts as an intelligent RSS reader, real-time news knowledge base, and personal assistant for monitoring events and delivering analysis reports.
cupertino
Cupertino is an Apple Documentation Crawler & MCP Server that provides accurate, up-to-date Apple API documentation and sample code to AI agents and developers for offline and AI-assisted development.
biomedmcp
A biomedical research Model Context Protocol (MCP) server and an autonomous research agent that uses local LLMs to search PubMed and the web for medical questions, providing evidence-based answers with citations.
PDFlow
Transform PDF documents into structured data (Markdown, JSON, XML, etc.) using multimodal AI, with web UI, CLI, and AI agent integration.