Golf
Production-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
What is Golf?
Golf is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to production-ready mcp server framework • build, deploy & scale secure ai agent infrastructure • includes auth, observability, debugger, telemetry & runtime • run real-world mcps powering ai agents
Production-Ready MCP Server Framework • Build, deploy & scale secure AI agent infrastructure • Includes Auth, Observability, Debugger, Telemetry & Runtime • Run real-world MCPs powering AI Agents
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Production-Ready MCP Server Framework • Build, deploy & scal
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx golfConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Golf
Golf is a production-ready Python framework for building, deploying, and scaling MCP servers with enterprise features built in. It provides automatic tool, resource, and prompt discovery from a file-based project layout, multiple authentication methods (JWT, OAuth 2.0, static tokens), OpenTelemetry tracing, and a built-in debugger — so you can ship secure, observable AI agent infrastructure without reinventing the wheel. Developers use Golf when they need to go from a prototype MCP server to a production deployment with auth and monitoring.
Prerequisites
- Python 3.10 or later installed
- pip or uv for Python package management
- An MCP-compatible client such as Claude Desktop or Cursor
- An OpenTelemetry-compatible backend for tracing (optional, e.g., Jaeger or OTLP endpoint)
Install Golf via pip
Install the golf-mcp package from PyPI.
pip install golf-mcpInitialize a new Golf project
Use the Golf CLI to scaffold a new MCP server project with the recommended directory structure.
golf init my-mcp-server
cd my-mcp-serverAdd tools, resources, and prompts
Create Python files in the tools/, resources/, and prompts/ directories. Golf auto-discovers them by file path and registers them as MCP capabilities. Tool IDs are derived from the filename and directory (e.g., tools/payments/charge.py becomes charge_payments).
# tools/hello.py
from typing import Annotated
from pydantic import BaseModel, Field
class Output(BaseModel):
message: str
async def hello(
name: Annotated[str, Field(description="Person to greet")] = "World"
) -> Output:
return Output(message=f"Hello, {name}!")
export = helloConfigure the server
Edit golf.json to set the server name, host, port, and transport type. Supported transports are sse, streamable-http, and stdio.
{
"name": "My Golf Server",
"host": "localhost",
"port": 3000,
"transport": "sse",
"opentelemetry_enabled": false
}Build and run the development server
Build the project and start the Golf MCP server. It will listen on the configured port.
golf build dev
golf runSet up authentication (optional)
Create an auth.py file in your project root to configure JWT, OAuth 2.0, or static token authentication for production deployments.
Golf Examples
Client configuration
Connect to a running Golf MCP server from Claude Desktop using the SSE transport.
{
"mcpServers": {
"golf": {
"command": "golf",
"args": ["run"],
"env": {
"OTEL_TRACES_EXPORTER": "otlp_http",
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4318/v1/traces"
}
}
}
}Prompts to try
Example prompts for interacting with a Golf-based MCP server.
- "List all tools available on this Golf MCP server"
- "Call the hello tool with name set to 'Alice'"
- "What resources are exposed by this server?"
- "Show me the available prompt templates on this server"Troubleshooting Golf
Golf command not found after pip install
Ensure your Python scripts directory is in your PATH. With pip, run 'pip show golf-mcp' to find the install location, or use 'python -m golf' as an alternative.
Tools are not being discovered by Golf
Verify each tool file exports a callable via 'export = function_name'. The file must be in the tools/ directory and the exported function must have typed parameters with Pydantic output schemas.
Authentication errors when clients connect
During development, use the 'dev_tokens' auth method in auth.py. For production, switch to JWT and ensure your JWKS URI is accessible from the server.
Frequently Asked Questions about Golf
What is Golf?
Golf is a Model Context Protocol (MCP) server that production-ready mcp server framework • build, deploy & scale secure ai agent infrastructure • includes auth, observability, debugger, telemetry & runtime • run real-world mcps powering ai agents It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Golf?
Follow the installation instructions on the Golf GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Golf?
Golf works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Golf free to use?
Yes, Golf is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
Golf Alternatives — Similar Developer Tools Servers
Looking for alternatives to Golf? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Golf in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Golf?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.