Skip to main content

Randonneuring Connect MCP Server

PyPI version Python 3.10+ License: MIT

Connect AI assistants to randonneuring cycling event data - Universal Tools Architecture

An MCP server that lets AI agents explore randonneuring (ultra-distance cycling) events through natural language. Version 5.1.3+ features a Universal Tools Architecture with 5 tools that work across ALL data sources, with 100% parameter compliance and zero errors.

🚀 What's New in v5.1.3

100% Parameter Compliance - Production Ready

Critical fixes to eliminate all TypeError exceptions:

  • ✅ Fixed all 8 PBP parameter mismatches
  • ✅ 100% compliance across all 100 functions
  • ✅ Zero errors, production-ready
  • ✅ Updated to randonneuring-intelligence>=1.5.0

Previous Updates (v5.1.0)

PBP Historical Data Integration - 48,000+ Participants (1951-2023)

We've added comprehensive Paris-Brest-Paris (PBP) historical data as a dedicated source, bringing our total to 4 data sources with 110 functions:

5 Universal Tools

  1. discover_data - Discover available sources and their capabilities
  2. query_data - Execute filtered queries across any source
  3. analyze_data - Get statistics and aggregations
  4. compare_data - Compare data across sources, time periods, or cohorts
  5. get_insights - Multi-step intelligent analysis and summaries

4 Data Sources (110 functions)

  • LRM (Les Randonneurs Mondiaux): 26 functions - worldwide events
  • Audax India: 26 functions - Indian events and participants
  • PBP (Paris-Brest-Paris): 42 functions - historical PBP results (1951-2023, 21 editions, 48K+ participants) ⭐ NEW
  • Challenge Lepertel: 16 functions - Grand Slam finishers

Installation

pip install randonneuring-connect-mcp

For development:

pip install randonneuring-connect-mcp[dev]

Quick Start

For AI Clients (Claude Desktop, Kiro, etc.)

Add to your MCP configuration file:

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "randonneuring-connect": {
      "command": "python",
      "args": ["-m", "randonneuring_mcp"]
    }
  }
}

Kiro IDE (~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "randonneuring-connect": {
      "command": "python",
      "args": ["-m", "randonneuring_mcp"]
    }
  }
}

Then restart your AI client. The 5 universal tools will be available.

Usage Examples

Discovery

"What data sources are available?"
→ Uses discover_data to list LRM, Audax India, PBP, Challenge Lepertel

"What can I query from PBP data?"
→ Shows 42 available functions (12 filters, 10 stats, 8 queries)

Querying

"How many Indian riders finished PBP 2023?"
→ query_data(source="pbp", filters={"filter_by_nationality": {"nationality": "IN"}, "filter_by_year": {"year": 2023}, "filter_by_status": {"status": "finisher"}})

"Show me Paris-Brest-Paris 2019 finishers from USA"
→ query_data(source="pbp", filters={"filter_by_year": {"year": 2019}, "filter_by_nationality": {"nationality": "US"}, "filter_by_status": {"status": "finisher"}})

"Find Audax India events in Mumbai from 2024"
→ query_data(source="audax_india", filters={"filter_by_location": {"location": "Mumbai"}, "filter_by_year": {"year": 2024}})

Analysis

"Get nationality distribution in PBP 2023"
→ analyze_data(source="pbp", analysis_type="get_nationality_stats", parameters={"year": 2023})

"Which rider has the most PBP participations?"
→ analyze_data(source="pbp", analysis_type="get_top_riders_by_participations", parameters={"limit": 1})

"Get gender distribution in LRM"
→ analyze_data(source="lrm", analysis_type="get_gender_distribution")

Comparison

"Compare Indian participation in PBP 2023 vs 2019"
→ compare_data(comparisons=[
    {"label": "PBP 2023 India", "source": "pbp", "filters": {"filter_by_year": {"year": 2023}, "filter_by_nationality": {"nationality": "IN"}}},
    {"label": "PBP 2019 India", "source": "pbp", "filters": {"filter_by_year": {"year": 2019}, "filter_by_nationality": {"nationality": "IN"}}}
  ])

Insights

"Give me a summary of LRM data"
→ get_insights(source="lrm", insight_type="summary")
→ Returns: year range, unique riders, countries, events, top riders, gender distribution

Architecture

Registry-Adapter-Tool Pattern

┌─────────────────────────────────────────────┐
│          5 Universal Tools                   │
│  (discover, query, analyze, compare, insights)│
└───────────────┬─────────────────────────────┘
                │
┌───────────────▼─────────────────────────────┐
│          Adapter Layer                       │
│   (LRM, Audax, PBP, Challenge adapters)      │
└───────────────┬─────────────────────────────┘
                │
┌───────────────▼─────────────────────────────┐
│       Capability Registry                    │
│     (110 functions mapped)                   │
└───────────────┬─────────────────────────────┘
                │
┌───────────────▼─────────────────────────────┐
│    randonneuring-intelligence package        │
│        (actual implementations)              │
└─────────────────────────────────────────────┘

Benefits:

  • Scalability: Add new sources without new tools
  • LLM-friendly: 5 tools instead of 8 (reduces cognitive load)
  • Future-proof: Support 50+ sources with same 5 tools
  • Maintainable: Clean separation of concerns

Available Functions by Source

LRM (26 functions)

Filters (10): by year, rider, country, event, club, distance, gender, time, organizer, date range
Statistics (8): rider stats, club stats, event stats, time analysis, gender distribution, top riders, organizer stats, country stats
Queries (8): unique riders, clubs, events, years, countries, distances, genders, organizers

Audax India (26 functions)

Event Filters (8): by year, club, location, state, distance, status, type, date range
Participant Filters (4): by name, club, result status, fee paid
Queries (14): unique clubs, locations, states, distances, years, event types, etc.

PBP - Paris-Brest-Paris (42 functions) ⭐ NEW

Data Loaders (4): load all history, specific year, metadata, all participants
Filters (12): by year, year range, rider, nationality, club, status, time, gender, vehicle type, event type, location, rank
Statistics (10): rider stats, nationality stats, club stats, year stats, time analysis, gender distribution, vehicle distribution, top riders, completion rates, fastest times
Queries (8): unique riders, nationalities, clubs, years, locations, vehicle types, event types, status types
Coverage: 48,000+ participants across 21 editions (1951-2023)

Challenge Lepertel (16 functions)

Filters (5): by rider, country, claiming period, brevet country, claiming year
Statistics (5): rider stats, country stats, period stats, country diversity, brevet distribution
Queries (6): unique riders, countries, claiming periods, claiming years, brevet countries, brevet distances

Migration Guide (v3.x → v5.0)

Old Way (v3.x)

# 8 source-specific tools
audax_query_events(year=2024, club="Mumbai")
lrm_query_results(event="Paris-Brest-Paris", year=2023)
audax_get_statistics(stat_type="top_participants", limit=10)

New Way (v5.0)

# 5 universal tools
query_data(source="audax_india", filters={"filter_by_year": {"year": 2024}, "filter_by_club": {"club": "Mumbai"}})
query_data(source="lrm", filters={"filter_by_event": {"event_name": "Paris-Brest-Paris"}, "filter_by_year": {"year": 2023}})
analyze_data(source="audax_india", analysis_type="get_top_participants_by_events", parameters={"limit": 10})

Key Changes:

  1. All queries now specify source parameter
  2. Filters are structured as nested dictionaries
  3. Statistics use analysis_type instead of stat_type
  4. New tools: discover_data, compare_data, get_insights

Data Sources

All data is automatically loaded from S3 via the randonneuring-intelligence package (no manual downloads needed):

  • LRM: Worldwide Long Randonnée Medal results (PBP, LEL, etc.)
  • Audax India: Indian randonneuring events and participant details
  • PBP: Paris-Brest-Paris historical results (1951-2023, 21 editions, 48,000+ participants) ⭐ NEW
  • Challenge Lepertel: Grand Slam finishers (riders who completed 200/300/400/600km in multiple countries)

Development

# Clone the repository
git clone https://github.com/mprathappandian/randonneuring-platform.git
cd randonneuring-platform/packages/mcp-server

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black src/

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

Changelog

v5.1.3 (2024-12-05)

  • Critical parameter alignment fixes for 100% compliance
  • Upgraded to randonneuring-intelligence v1.5.0
  • All TypeError exceptions eliminated
  • Production-ready with zero parameter mismatches

v5.1.1 (2024-12-04)

  • Updated PyPI metadata to include PBP in description and keywords
  • Improved discoverability with "pbp" and "paris-brest-paris" keywords

v5.1.0 (2024-12-04)

  • Added PBP (Paris-Brest-Paris) data source with 42 functions
  • Support for 48,000+ PBP historical participants (1951-2023, 21 editions)
  • 12 filters, 10 statistics, 8 queries for comprehensive PBP analysis
  • Updated to randonneuring-intelligence v1.4.0
  • Now supports 4 data sources with 110 total functions

v5.0.5 (2024-12-04)

  • Enhanced tool descriptions for better LLM tool selection
  • Clearer guidance on when to use each universal tool

v5.0.3 (2024-12-02)

  • Updated to randonneuring-intelligence v1.2.1
  • Fixed SR (Super Randonneur) computation and statistics

v5.0.2 (2024-11-30)

  • Added Audax India SR awards data source support

v5.0.0 (2024-12-01)

  • BREAKING: Complete architecture overhaul
  • Introduced Universal Tools Architecture (5 tools)
  • Added Challenge Lepertel data source (16 functions)
  • Registry-Adapter-Tool pattern for unlimited scalability
  • Upgraded to randonneuring-intelligence v1.2.0

v3.1.3

  • 8 consolidated tools (Audax India + LRM)
  • S3 auto-loading

v3.0.0

  • Initial MCP server release
  • 72 individual tools

License

MIT License - see LICENSE file for details

Support

Metadata

Release files for randonneuring-connect-mcp 5.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for randonneuring-connect-mcp 5.2.0
File Size Uploaded Provenance Actions
randonneuring_connect_mcp-5.2.0.tar.gz 39.1 kB Without provenance Details for randonneuring_connect_mcp-5.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for randonneuring-connect-mcp 5.2.0
File Interpreter ABI Platform Actions
randonneuring_connect_mcp-5.2.0-py3-none-any.whl Python 3 none any Details for randonneuring_connect_mcp-5.2.0-py3-none-any.whl

Total release size: 89.6 kB

Release files / randonneuring_connect_mcp-5.2.0.tar.gz

Download URL randonneuring_connect_mcp-5.2.0.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ba6c67176708e8265e6a19eb2f6e70975ab44f8a6edf423143ee1ef3171089e2
BLAKE2b-256 checksum
How to use checksums
71a974aceb0e96b3a4bd218ad91a49e3d34615f1a06c128b9dcd04070c2f5637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Release files / randonneuring_connect_mcp-5.2.0-py3-none-any.whl

Download URL randonneuring_connect_mcp-5.2.0-py3-none-any.whl
Size 50.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f628528f6d77d3e39bbbdbf0b83f38b8c106506378273c6870a6bb8207ef7be
BLAKE2b-256 checksum
How to use checksums
832798c4cbade12af33e5f36725a4783fe1236ebdd57552dad376c336ec50b40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.3

Security for randonneuring-connect-mcp 5.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page