home / mcp / discovery api mcp server
MCP Server generated by mcp.ag2.ai
Configuration
View docs{
"mcpServers": {
"ag2-mcp-servers-discovery-api": {
"url": "https://api.apis.guru/v2/specs/ticketmaster.com/discovery/v2/openapi.json",
"headers": {
"CONFIG": "{\"server\": {\"name\": \"ticketmaster_discovery\"}}",
"SECURITY": "API_KEY=YOUR_API_KEY",
"CONFIG_PATH": "/path/to/mcp_server/mcp_config.json"
}
}
}
}This MCP server exposes a machine-readable API for the Ticketmaster Discovery OpenAPI specification, enabling clients to interact with the discovery data through the MCP protocol. It provides a stable, versioned entry point you can connect to from MCP clients, simplifying integration and testing.
Connect your MCP client to the Discovery MCP Server using the http endpoint or run the local stdio server. The server presents a consistent MCP interface for querying the Ticketmaster Discovery API, so you can fetch discovery data, schemas, and related endpoints without embedding direct API calls in your client.
# Prerequisites
- Python 3.9+
- pip
- uv (optional, for running the server via uv)
# Installation from source
# 1) Clone the repository
git clone <repository-url>
cd mcp-server
# 2) Install dependencies (dev dependencies enabled)
pip install -e ".[dev]"
# Alternatively, use uv to install editable dev dependencies
# (if you prefer using uv tooling)
uv pip install --editable ".[dev]"# Run the MCP server in stdio mode
python mcp_server/main.py stdioConfigure and run options are available via environment variables shown below. You can point the server to a configuration file or pass a JSON string directly. Security-related parameters can be supplied via environment variables as well.
# Examples of environment variables you can set
CONFIG_PATH=/path/to/mcp_server/mcp_config.json
CONFIG='{"server": {"name": "ticketmaster_discovery"}}'
SECURITY=API_KEY=YOUR_API_KEYThe server supports multiple transport modes. The most common usage is to run it in stdio mode during development or when embedding the MCP server in tooling. You can also connect via an HTTP-based MCP URL if you expose the server remotely.
# Build and publish using Hatch
hatch build
hatch publishLinting and formatting tool used to enforce code style and quality.
Static type checker used to ensure type correctness across the codebase.
Testing framework used to run unit and integration tests.
Pre-commit hooks configured to run linting, type checks, and tests before commits.
Build and publish tool used to package the MCP server.