---
name: "Build authenticated MCP servers from Python files with Golf"
slug: "build-authenticated-mcp-servers-from-python-files-with-golf"
description: "Scaffold, build, and run MCP servers from a predictable Python project layout with tools, prompts, resources, auth, and OpenTelemetry hooks."
github_stars: 835
verification: "security_reviewed"
source: "https://github.com/golf-mcp/golf"
author: "golf-mcp"
publisher_type: "open_source"
category: "Integrations & Connectors"
framework: "MCP"
tool_ecosystem:
  github_repo: "golf-mcp/golf"
  github_stars: 835
---

# Build authenticated MCP servers from Python files with Golf

Scaffold, build, and run MCP servers from a predictable Python project layout with tools, prompts, resources, auth, and OpenTelemetry hooks.

## Prerequisites

Python 3.10+, pip, Golf CLI, MCP-compatible client

## Installation

Use the upstream install or setup path that matches your environment:
- pip install golf-mcp

Requirements and caveats from upstream:
- Golf is a **framework** designed to streamline the creation of MCP server applications. It allows developers to define server's capabilities—*tools*, *prompts*, and *resources*—as simple Python files within a conventi...
- Ensure you have Python (3.10+ recommended) installed. Then, install Golf using pip:
- **tools/**, **resources/**, **prompts/**: Contain your Python files, each defining a single component. These directories can also contain nested subdirectories to further organize your components (e.g., tools/payments...

Basic usage or getting-started notes:
- Get your Golf project up and running in a few simple steps:
- Use the Golf CLI to scaffold a new project:
- golf init your-project-name

- Source: https://github.com/golf-mcp/golf
- Extracted from upstream docs: https://raw.githubusercontent.com/golf-mcp/golf/HEAD/README.md

## Documentation

- https://docs.golf.dev

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/build-authenticated-mcp-servers-from-python-files-with-golf/)
