golf
by golf-mcp·★ 824·Score 55
Production-ready MCP server framework for building, deploying and scaling secure AI agent infrastructure with authentication, observability, and debugging capabilities.
Overview
Golf is a Python-based framework designed to streamline the creation of MCP server applications. It allows developers to define servers' capabilities—tools, prompts, and resources—as simple Python files within a conventional directory structure, which the framework automatically discovers and compiles into a runnable MCP server. With version 0.2.0, Golf offers enterprise-grade authentication (JWT, OAuth Server, API key, development tokens), built-in utilities for LLM interactions, and automatic telemetry integration, significantly reducing boilerplate code and accelerating development.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Golf when building production-ready MCP servers that require enterprise-grade authentication, observability, and a clean Python-based development experience.
When NOT to choose this
Avoid Golf if you need a lightweight solution without authentication, prefer non-Python implementations, or require minimal framework dependencies.
Tools this server exposes
1 tool extracted from the READMEhelloasync def hello(name: str = "World", greeting: str = "Hello") -> OutputSay hello to the given name.
Comparable tools
Installation
Installation
- Install Golf using pip:
pip install golf-mcp- Initialize a new project:
golf init your-project-name- Run the development server:
cd your-project-name
golf build dev
golf runFor Claude Desktop integration, add to claude_desktop_config.json:
{
"mcpServers": {
"golf": {
"command": "python",
"args": ["-m", "golf.cli", "run"],
"env": {}
}
}
}FAQ
- What makes Golf different from other MCP frameworks?
- Golf provides a production-ready framework with built-in enterprise-grade authentication (JWT, OAuth, API keys), observability, debugging tools, and telemetry integration. It minimizes boilerplate code by automatically discovering and compiling tools, resources, and prompts from a conventional directory structure.
- Can I use Golf to build MCP servers for specific applications?
- Yes, Golf is designed to be versatile and can be used to build MCP servers for various applications. The framework allows you to define custom tools, resources, and prompts through Python files, giving you full flexibility to implement your specific use case while handling the server infrastructure and authentication.
On Hacker News
Recent discussion from the developer community.
- Story by antonig · 2026-03-08
Compare golf with
Last updated · Auto-generated from public README + GitHub signals.