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

- Skill: `agentskillexchange/build-authenticated-mcp-servers-from-python-files-with-golf` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/build-authenticated-mcp-servers-from-python-files-with-golf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/build-authenticated-mcp-servers-from-python-files-with-golf/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/build-authenticated-mcp-servers-from-python-files-with-golf

---


# 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/)

