Golf

v1.0.0Developer Toolsstable

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

agent-runtimeaiai-agentai-agent-toolsai-agents
Share:
826
Stars
0
Downloads
0
Weekly
0/5

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

Production-ready MCP server framework
Auth, observability, debugger, and telemetry
golf-mcp

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx golf

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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)
1

Install Golf via pip

Install the golf-mcp package from PyPI.

pip install golf-mcp
2

Initialize 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-server
3

Add 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 = hello
4

Configure 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
}
5

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 run
6

Set 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.

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.

Quick Config Preview

{ "mcpServers": { "golf": { "command": "npx", "args": ["-y", "golf"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides