OPTA API Documentation MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OPTA API Documentation MCP Servershow me the MA13 endpoint overview for possession events"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OPTA API Documentation MCP Server
Un servidor MCP (Model Context Protocol) para consultar la documentación de la API de fútbol de OPTA.
Características
🔐 Autenticación automática con las credenciales de OPTA
🔍 Búsqueda inteligente en toda la documentación
📚 Cache de documentación para mejorar el rendimiento
🛠️ Herramientas MCP para consultar endpoints específicos
🔄 Actualización automática del cache cada 24 horas
🚀 Listo para despliegue en Render con configuración automática
📖 Documentación completa de endpoints con ejemplos
Related MCP server: BALLDONTLIE Sports MCP Server
Instalación
Clona el repositorio:
git clone https://github.com/sportsanalytics-world/OPTA_api_docs.git
cd OPTA_api_docsInstala las dependencias:
npm installConfigura las variables de entorno:
cp env.example .envEdita el archivo .env con tus credenciales de OPTA:
OPTA_USERNAME=tu_usuario_aqui
OPTA_PASSWORD=tu_password_aqui
OPTA_DOCS_BASE_URL=https://docs.performgroup.comUso
Desarrollo
npm run devProducción
npm run build
npm startProcesar Endpoints
npm run process:endpointsHerramientas MCP Disponibles
get_endpoint_documentation
Obtiene la documentación HTML de un endpoint específico de OPTA y responde preguntas sobre ella.
Parámetros:
endpoint_code(string): Código del endpoint (ej: MA13, MA1, PE2, etc.)question(string): Pregunta sobre la documentación del endpoint
Ejemplo:
{
"endpoint_code": "MA13",
"question": "What is the overview of this endpoint?"
}Configuración en Cursor
Para usar este servidor MCP en Cursor, agrega la siguiente configuración a tu ~/.cursor/mcp.json:
{
"mcpServers": {
"opta-api-docs": {
"command": "node",
"args": ["dist/index.js"],
"env": {
"OPTA_USERNAME": "tu_usuario",
"OPTA_PASSWORD": "tu_password"
}
}
}
}Despliegue en Render
El proyecto incluye configuración automática para despliegue en Render:
Conecta tu repositorio a Render
Render detectará automáticamente el
render.yamlConfigura las variables de entorno en Render:
OPTA_USERNAME: Tu usuario de OPTAOPTA_PASSWORD: Tu contraseña de OPTAOPTA_DOCS_BASE_URL: Ya configurado
Configuración de Render (render.yaml)
services:
- type: web
name: opta-api-docs-mcp
env: node
buildCommand: npm install && npm run build
startCommand: npm start
envVars:
- key: NODE_ENV
value: production
- key: OPTA_USERNAME
sync: false
- key: OPTA_PASSWORD
sync: false
- key: OPTA_DOCS_BASE_URL
value: https://docs.performgroup.com/docs/rh/sdapi
autoDeploy: trueEstructura del Proyecto
src/
├── index.ts # Punto de entrada
├── mcpServer.ts # Servidor MCP principal
├── types/
│ └── index.ts # Definiciones de tipos TypeScript
├── services/
│ ├── optaScraper.ts # Servicio para scrapear OPTA
│ └── documentationManager.ts # Gestor de documentación y cache
└── scripts/
├── processOptaEndpoints.ts # Procesamiento de endpoints
└── discoverEndpoints.ts # Descubrimiento de endpointsEndpoints Conocidos
El servidor incluye los siguientes endpoints de OPTA:
MA13 - Soccer API Possession Events: Eventos de posesión en fútbol
MA3 - Soccer API Match Events: Eventos de partidos de fútbol
MA12 - Soccer API Match Expected Goals: Expected Goals de partidos
MA6 - Soccer API Commentary: Comentarios automáticos y manuales
MA1 - Soccer API Fixtures and Results: Fixtures y resultados
Ejemplos de Uso
Consultar Documentación de un Endpoint
# Obtener overview de MA13
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-d '{
"method": "tools/call",
"params": {
"name": "get_endpoint_documentation",
"arguments": {
"endpoint_code": "MA13",
"question": "What is the overview of this endpoint?"
}
}
}'Desarrollo
Agregar Nuevos Endpoints
Para agregar nuevos endpoints, edita el archivo src/services/optaScraper.ts y agrega las URLs en el array knownEndpoints.
Personalizar Búsqueda
Puedes modificar la lógica de búsqueda en src/services/documentationManager.ts para ajustar los pesos de relevancia.
Scripts Disponibles
npm run build: Compila el proyecto TypeScriptnpm run dev: Ejecuta en modo desarrollonpm start: Ejecuta en modo producciónnpm run process:endpoints: Procesa y actualiza los endpoints
Troubleshooting
Error de Autenticación
Verifica que las credenciales en
.envsean correctasAsegúrate de que tu cuenta tenga acceso a la documentación de OPTA
Error de Conexión
Verifica tu conexión a internet
Comprueba que la URL base sea accesible
Cache No Se Actualiza
Usa la herramienta
refresh_documentation_cachepara forzar una actualizaciónVerifica el estado del cache con
get_cache_status
Error de MCP Server
Verifica que el servidor esté corriendo:
npm startComprueba los logs del servidor
Asegúrate de que las dependencias estén actualizadas:
npm install
Tecnologías Utilizadas
Node.js: Runtime de JavaScript
TypeScript: Lenguaje de programación tipado
@modelcontextprotocol/sdk: SDK para servidores MCP
Axios: Cliente HTTP
Cheerio: Parser HTML
Zod: Validación de esquemas
Licencia
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides programmatic access to comprehensive football statistics and live match data via API-Football, enabling applications to retrieve league standings, team fixtures, player statistics, and real-time match events.Last updated6
- Alicense-qualityCmaintenanceProvides access to comprehensive sports data from 5 major leagues (NBA, NFL, MLB, EPL, NHL) including teams, players, games, statistics, standings, injuries, and betting odds through 67+ endpoints. Enables users to query sports information and analytics through natural language.Last updated12MIT
- AlicenseAqualityDmaintenanceProvides comprehensive documentation for 377 Fortnox API endpoints and 81 resource categories directly from the official OpenAPI specification. It enables users to search, browse, and explore technical endpoint details and data schemas within AI assistants without requiring authentication.Last updated734MIT
- AlicenseAqualityAmaintenanceSearchable football data provider documentation for AI coding agents. Enables agents to look up verified docs on event types, qualifier IDs, coordinate systems, and more across 15 providers.Last updated742841MIT
Related MCP Connectors
Provides AI assistants with direct access to Mapbox developer APIs and documentation.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sportsanalytics-world/OPTA_api_docs'
If you have feedback or need assistance with the MCP directory API, please join our Discord server