Skip to main content
Glama
Eventor MCP

Eventor MCP

by jonarnes

Eventor MCP

Read-only MCP server for the Norwegian Eventor orienteering API. Its 15 tools cover organisations, events, classes, entries, starts, results, competitor counts and a derived person results summary. It never creates, changes or cancels entries.

API reference: https://eventor.orientering.no/api/documentation. The supplied Eventor XSD is in docs/.

Local ChatGPT setup

See Eventor lokalt i ChatGPT for the complete setup. ChatGPT desktop supports local stdio MCP; see the official MCP documentation.

python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"
# If .env does not exist: copy .env.example to .env and set EVENTOR_API_KEY.
codex mcp add eventor -- /ABSOLUTE/PATH/eventor-mcp/scripts/run-local.sh
.venv/bin/python scripts/check-local.py --live

Restart the MCP server in ChatGPT, then use /mcp to check it. The launcher finds .env even when ChatGPT starts in another directory. The local process requires no MCP Bearer token or public URL. For other stdio clients, use the same launcher, or eventor-mcp serve with the project directory as the working directory.

A local configuration does not connect ChatGPT web; that requires a remote connection or supported tunnel.

Related MCP server: Nolio MCP Server

Data and query behavior

  • XML attributes are represented as @name; text on an attributed element uses #text. Example: <CompetitorStatus value="OK"/> becomes {"@value":"OK"}. Unattributed leaf values remain strings. Repeated siblings become arrays; a single sibling remains an object or string.

  • Events, entries and personal starts default to the next 30 days. Personal results and summaries default to the previous 365 days. Configured smaller date limits shorten these defaults. Specify both dates for another window. With one date supplied, the other is derived using the bounded default span.

  • Summary statistics use the overall PersonResult/Result, retaining event/class context and statuses. Per-race results are not counted again. Unranked and invalid finishes count as participation, but do not affect placement statistics. Responses include events_available and truncated when the summary is capped.

  • Responses exceeding the byte limit fail explicitly; narrow the query. API calls are limited by concurrency, a rolling per-minute quota, and a total timeout including queueing and response streaming. Cache hits do not consume the upstream request quota. Limits apply per server process.

  • The cache is bounded by both entries and estimated parsed-data memory. It is private to the process, expires automatically and resets on restart.

Remote HTTP / Coolify

Remote HTTP requires EVENTOR_MCP_BEARER_TOKEN and EVENTOR_MCP_PUBLIC_URL. Use a separate random MCP token, not the Eventor API key. The public URL must be an HTTPS origin such as https://eventor.example.no, without a path. Loopback HTTP is permitted for development.

eventor-mcp serve-http --host 0.0.0.0 --port 8000

Connect to https://eventor.example.no/mcp with Authorization: Bearer <EVENTOR_MCP_BEARER_TOKEN>. Streamable HTTP is the image default. For an SSE client, override the command with serve-sse --host 0.0.0.0; its endpoint is /sse.

  1. Build using Dockerfile, inject secrets through Coolify, and set the public URL to the external HTTPS origin. The image runs as an unprivileged user.

  2. Configure Traefik's service port to match PORT (default 8000). Use an unprivileged port, and terminate TLS at the proxy.

  3. Configure a health check on GET /health at the container port. This is a process liveness endpoint and makes no Eventor request. Use test ping for an explicit upstream check.

  4. /.well-known/mcp/server-card advertises only the selected HTTP transport. Authentication is a static Bearer token; interactive OAuth endpoints and authorization grants are not advertised or implemented. Use a client that supports preconfigured Bearer authentication.

  5. Do not use the supplied stdio Compose service as a Coolify HTTP service: its command: ["serve"] intentionally starts a local stdio process.

HTTP startup fails when credentials or origin are missing. Host/Origin validation remains enabled. For explicitly unauthenticated loopback development only:

ALLOW_INSECURE_HTTP=true EVENTOR_MCP_BEARER_TOKEN= EVENTOR_MCP_PUBLIC_URL= \
  eventor-mcp serve-http --host 127.0.0.1

This opt-in cannot bind to 0.0.0.0 or another non-loopback address through the CLI. Discovery and /health are public; MCP requests require the configured token. Mounting the service below a URL prefix is not supported by public discovery; use a dedicated hostname with the standard endpoint paths.

Configuration

See .env.example for all settings. Key resource defaults:

Setting

Default

Purpose

API_MAX_DATE_RANGE_DAYS

730

Maximum search date span

API_MAX_RESPONSE_BYTES

4000000

Maximum decoded upstream XML bytes

API_MAX_CONCURRENT_REQUESTS

4

Simultaneous upstream requests

API_REQUESTS_PER_MINUTE

60

Upstream requests per rolling minute

EVENTOR_TIMEOUT_SECONDS

30

Total upstream operation timeout

CACHE_MAX_BYTES

32000000

Estimated parsed-data cache budget

CACHE_MAX_ENTRIES

256

Cache entry count limit

CACHE_TTL_SECONDS

300

Cache freshness interval

STATS_MAX_DATE_RANGE_DAYS

730

Additional summary date limit

STATS_MAX_EVENTS_IN_SUMMARY

500

Summary output row limit

ID-list parameters accept at most 100 positive comma-separated IDs; top accepts 1–1000. Summaries apply the smaller of the general and summary date limits. Full upstream responses are bounded before parsing; the summary row limit only controls the output, not the upstream query size.

Logs go to stderr and optionally rotating files via LOG_DIR. Container stdout and stderr are available in Coolify; file logging is optional. In the Docker image, use an absolute writable path such as LOG_DIR=/home/eventor/logs (a relative path resolves under the root-owned /app). If LOG_DIR is not writable, file logging is skipped with a warning. Never commit .env or API keys. API output can contain personal data: all holders of the MCP Bearer token share the Eventor organisation key's read permissions.

CLI and tests

eventor-mcp test ping
eventor-mcp test events --from-date '2026-01-01' --to-date '2026-01-31'
eventor-mcp test organisation 12345
eventor-mcp test get /api/events --query-json '{"fromDate":"2026-01-01","toDate":"2026-01-31"}'
.venv/bin/python -m pytest -q

--no-cache bypasses the response cache on CLI test commands. The standalone cache clear command only clears its own short-lived process; it cannot flush an already running MCP server. Restart that server to clear its cache.

The tests cover schema-shaped XML, summary context and statuses, date boundaries, authentication, discovery, resource limits, and a real stdio MCP subprocess handshake/tool call. Tests use mocked Eventor data and do not require live keys. check-local.py --live is a separate opt-in integration check.

License

MIT — see LICENSE.

Available Tools

15 tools
eventor_competitor_countC
Read-onlyIdempotent

Count entries (GET /api/competitorcount). organisation_ids is required (comma-separated).

Inputs: organisation_ids (required), event_ids, person_ids. Returns: object

eventor_get_eventB
Read-onlyIdempotent

Get a single event (GET /api/event/{eventId}).

Inputs: event_id (required). Returns: object

eventor_get_organisationB
Read-onlyIdempotent

Get one organisation by id (GET /api/organisation/{id}).

Inputs: organisation_id (required). Returns: object

eventor_list_entriesC
Read-onlyIdempotent

List entries (GET /api/entries). IDs are comma-separated lists.

Inputs: event_ids, to_event_date, event_class_ids, from_event_date, +5 more. Returns: object

eventor_list_event_classesC
Read-onlyIdempotent

List classes for an event (GET /api/eventclasses).

Inputs: event_id (required), include_entry_fees. Returns: object

eventor_list_eventsC
Read-onlyIdempotent

Search events in a date window (GET /api/events). organisation_ids/event_ids are comma-separated.

Inputs: to_date, event_ids, from_date, organisation_ids, +3 more. Returns: object

eventor_list_organisationsB
Read-onlyIdempotent

List organisations (clubs, regions, federation) (GET /api/organisations).

Inputs: include_properties. Returns: object

eventor_person_results_summaryA
Read-onlyIdempotent

Derived summary over historical results for a person (uses GET /api/results/person). Enforces a configurable max date range to limit API load. Returns compact stats; optionally includes parsed XML as JSON.

Inputs: person_id (required), to_date, event_ids, from_date, +2 more. Returns: object

eventor_pingA
Read-onlyIdempotent

Verify the API key and return the organisation linked to it (GET /api/organisation/apiKey).

Inputs: no named parameters. Returns: object

eventor_results_eventC
Read-onlyIdempotent

Results for an event (GET /api/results/event).

Inputs: event_id (required), top, include_split_times. Returns: object

eventor_results_organisationC
Read-onlyIdempotent

Results for organisations in an event (GET /api/results/organisation).

Inputs: event_id (required), organisation_ids (required), top, include_split_times. Returns: object

eventor_results_personC
Read-onlyIdempotent

Historical results for a person (GET /api/results/person).

Inputs: person_id (required), top, to_date, event_ids, +2 more. Returns: object

eventor_starts_eventC
Read-onlyIdempotent

Start list for an event (GET /api/starts/event).

Inputs: event_id (required). Returns: object

eventor_starts_organisationB
Read-onlyIdempotent

Start times for organisations in an event (GET /api/starts/organisation).

Inputs: event_id (required), organisation_ids (required). Returns: object

eventor_starts_personC
Read-onlyIdempotent

Start times for a person (GET /api/starts/person).

Inputs: person_id (required), to_date, event_ids, from_date. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 15 tools

    Disambiguation4/5

    The three-way families results_event/person/organisation and starts_event/person/organisation are clearly differentiated by the dimension they key on, and list vs get vs count tools are distinct. The only real overlap is eventor_person_results_summary versus eventor_results_person, which the description partially resolves by explaining it is a derived aggregate over the same endpoint.

    Naming Consistency3/5

    All tools share the eventor_ prefix and snake_case, which is good. However, verb placement is inconsistent: some follow verb_noun (list_events, get_event, list_entries) while others follow noun_action (results_event, starts_person, person_results_summary), and one is a bare compound (competitor_count).

    Tool Count4/5

    At 15 tools the set is reasonably scoped for an Eventor API wrapper, and the symmetric results_* and starts_* families each map to a real endpoint rather than redundant surface. Slightly heavy, but no tool feels purely filler.

    Completeness3/5

    The surface is entirely read-only GETs: no create/update operations for entries, starts, or events, so an agent cannot perform any write workflow. It also lacks person and club lookup tools even though results_person and starts_person require person IDs, forcing agents to work around missing discovery steps.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Exposes the Norwegian/Swedish orienteering federation's Eventor REST API as typed tools, letting an MCP client query events, clubs, entries and competitors, and optionally publish start and result lists, without ever seeing the user's API key or Eventor password.
      8
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only access to B2match event and matchmaking data through tools for events, participants, organisations, opportunities, agenda, sessions, speakers, and authenticated meeting, schedule, conversation, and notification workflows. Supports anonymous public queries and secure local token-based access.
      22
      65 npm
      MIT