- Home
- MCP servers
- Golf V2
Golf V2
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-golf-v2": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "A JSON string containing the configuration",
"SECURITY": "Environment variables for security parameters (e.g., API keys)",
"CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
}
}
}
}You run an MCP (Model Context Protocol) Server to expose structured data for a specific API, enabling consistent model-context interactions across clients. This server is tailored to the golf-v2 sportsdata.io API, letting you start and connect via standard MCP transports.
How to use
Start the MCP server in stdio mode to communicate directly with client processes on the same machine. Use your MCP client to connect over the stdio transport and exchange requests following the MCP protocol. You can also run the server in other transports such as sse or streamable-http if you configure them, but stdio is the quickest way to begin during development.
To begin, run the following command in your terminal. This launches the MCP server from the local source tree in stdio mode.
python mcp_server/main.py stdio
What you can do with the server
Connect your MCP client to the server to request data from the golf-v2 API context. The server supports multiple transport options, so you can switch to other modes if needed. You can control how the server starts and what configuration it uses through environment variables.
Available tools
ruff
Linting and formatting the Python codebase to ensure style and quality.
mypy
Static type checking to catch type errors during development.
pytest
Run tests and generate coverage reports to verify functionality.
pre-commit
Run pre-commit hooks before commits to enforce standards.
hatch
Build and publish the MCP project.