home / mcp / lol v3 stats mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-lol-v3-stats": {
"command": "python",
"args": [
"mcp_server/main.py",
"stdio"
],
"env": {
"CONFIG": "JSON string containing configuration",
"SECURITY": "Environment variables for security parameters (e.g., API keys)",
"CONFIG_PATH": "mcp_server/mcp_config.json"
}
}
}
}You run an MCP (Model Context Protocol) Server to expose a sports data source through a configurable transport, enabling clients to request and receive model context data efficiently. This guide shows you how to use the server, install and run it locally, and configure environment variables and startup options for secure, reliable access.
Start the server in stdio mode to run locally and interact with MCP clients in-process. The server accepts configuration via environment variables or a JSON config file and can be started with a single Python command. Use the standard MCp client workflow to connect, request data, and receive responses through the chosen transport.
# Prerequisites
- Python 3.9+
- pip or uv
# Clone the server repository (replace with your own URL if you publish elsewhere)
git clone <repository-url>
cd mcp_server
# Install dependencies (use this if you are not running inside a dev container)
pip install -e ".[dev]"
# Alternatively, you can use uv to install in editable mode
uv pip install --editable ".[dev]"
# Run tests and development tooling (optional but recommended during development)
./scripts/static-analysis.sh
./scripts/test.sh
```
Prepare to start the server after installation with the stdio transport command.You can configure the server using an environment-based or file-based configuration. The primary startup command for running the MCP server locally in stdio mode is shown here. Use this exact command to begin serving MCP data.
python mcp_server/main.py stdio
```
If you prefer to supply a configuration file, you can set the path to a JSON configuration file with CONFIG_PATH, or provide a JSON string via CONFIG. You can also set SECURITY-related environment variables to secure access to the MCP endpoints.Environment variables let you customize how the server starts and what data sources to expose. Typical variables include CONFIG_PATH, CONFIG, and SECURITY. Provide a path to your JSON configuration file for easy reuse across environments, or embed the configuration directly in the CONFIG variable.
Run linting with ruff to enforce code quality and style.
Format code with ruff to maintain consistent styling.
Perform static analysis (mypy, bandit, semgrep) to catch issues early.
Run tests with pytest and generate coverage reports.
Manage pre-commit hooks to ensure code quality before commits.