Skip to main content

Randonneuring Connect MCP Server

PyPI version Python 3.10+ License: MIT

Connect AI assistants to randonneuring cycling event data

An MCP server that lets AI agents explore randonneuring (ultra-distance cycling) events through natural language. Provides 8 intelligent tools for analyzing Audax India events and worldwide LRM results.

What is This?

This MCP server lets AI agents analyze randonneuring (long-distance cycling) event data through natural language. It consolidates 60+ individual functions into 8 powerful tools:

  • 3 Audax India tools - Query events, participants, and statistics
  • 3 LRM tools - Query worldwide Long Randonnée Medal results
  • 2 utility tools - List available values and merge datasets

Ask questions like:

  • "Who has completed the most events in Audax India?"
  • "Show me all 1200km events in Maharashtra last year"
  • "What's the completion rate for Paris-Brest-Paris?"
  • "Which clubs have the most finishers?"

The AI uses the appropriate tools to answer your questions.

Quick Start

Installation

pip install randonneuring-connect-mcp

Configure in Kiro

Add to your Kiro MCP config (C:\Users\<username>\.kiro\settings\mcp.json on Windows):

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

Configure in Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

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

Restart Your AI Client

Restart Kiro or Claude Desktop to load the server.

Features

8 Consolidated Intelligent Tools

Audax India Tools:

  1. audax_query_events - Query events with flexible filters (year, club, location, state, distance, status, type)
  2. audax_query_participants - Query participants with filters (name, club, result, medal, fee)
  3. audax_get_statistics - Get statistics and aggregations with 26 stat_types including:
    • Event, club, participant, state statistics
    • Completion rates by distance/club/year/state
    • Financial analysis (revenue, fees, outstanding payments)
    • Medal analysis (distribution, rates, top winners)
    • NEW: Leaderboards (top participants, top clubs, participant history, distance finishers)
    • Trends and DNS/DNF analysis
  4. audax_list_values - List available clubs, locations, states, distances, event types

LRM (Long Randonnée Medal) Tools: 5. lrm_query_results - Query worldwide results (year, rider, event, club filters) 6. lrm_get_statistics - Get statistics with 4 stat_types:

  • Rider, club, event statistics
  • NEW: Top riders leaderboard
  1. lrm_list_values - List available riders and clubs

Cross-Dataset Tools: 8. merge_and_analyze - Combine Audax India and LRM data for comparative analysis

Example Queries

"Show me all 600km BRM events in Karnataka in 2023"
→ AI chains: audax_filter_by_year + audax_filter_by_distance + audax_filter_by_state

"What are the completion rates for different distances?"
→ AI calls: audax_get_completion_rates

"Show me John Smith's LRM statistics"
→ AI calls: lrm_get_rider_stats

"Which clubs have organized the most events?"
→ AI calls: audax_get_club_statistics

Data

The package includes bundled data files (~23 MB):

  • LRM worldwide results
  • Audax India event catalog with participant details

Data is loaded once at startup for fast query performance.

Requirements

  • Python 3.10 or higher
  • Works with any MCP-compatible AI client:

Architecture

AI Agent (Kiro/Claude)
       ↓
MCP Protocol (STDIO)
       ↓
This MCP Server
       ↓
randonneuring-intelligence (business logic)
       ↓
Bundled JSON Data Files

Development

Install from Source

git clone https://github.com/mprathappandian/randonneuring-platform.git
cd randonneuring-platform/packages/mcp-server
pip install -e .

Run Tests

pip install -e ".[dev]"
pytest

Advanced Configuration

Custom Data Directory

Set environment variable to use your own data files:

{
  "mcpServers": {
    "randonneuring-connect": {
      "command": "python",
      "args": ["-m", "randonneuring_mcp"],
      "env": {
        "RANDONNEURING_DATA_DIR": "/path/to/your/data"
      }
    }
  }
}

Debug Logging

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

Troubleshooting

Server Won't Start

  1. Check Python version: python --version (must be 3.10+)
  2. Verify installation: pip show randonneuring-connect-mcp
  3. Test manually: python -m randonneuring_mcp (should show startup logs)

Tools Not Working

  1. Check logs in your AI client's console
  2. Enable debug logging (see Advanced Configuration)
  3. Verify data files loaded (check startup logs)

Import Errors

Ensure randonneuring-intelligence is installed:

pip install randonneuring-intelligence

License

MIT License - see LICENSE file for details.

Author

Prathap Pandian

Acknowledgments

Built with:

Version History

3.1.0 (2024-12-XX)

  • RENAMED: Package renamed from randonneuring-intelligence-mcp to randonneuring-connect-mcp
  • Display name changed to "Randonneuring Connect"
  • Configured for Kiro plugin marketplace with public HTTP endpoint
  • Updated CLI commands: randonneuring-connect and randonneuring-connect-http
  • All functionality remains identical - only branding changes
  • Deployment URL: https://randonneuring-connect-server.onrender.com

0.1.0 (2024-11-18)

  • Initial release as randonneuring-intelligence-mcp
  • 53 tools (21 LRM + 32 Audax India)
  • Bundled data files
  • Support for Kiro and Claude Desktop

Metadata

Release files for randonneuring-connect-mcp 3.1.1

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 3.1.1
File Size Uploaded Provenance Actions
randonneuring_connect_mcp-3.1.1.tar.gz 25.3 kB Without provenance Details for randonneuring_connect_mcp-3.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 58.5 kB

Release files / randonneuring_connect_mcp-3.1.1.tar.gz

Download URL randonneuring_connect_mcp-3.1.1.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b9af19b3d31ca1d732ba0625b5335d1f857ddefb9a4b13776872bee20e57f2b7
BLAKE2b-256 checksum
How to use checksums
48969d0d7a4e4459574e87d9b0e750a393bcfc15852a3538cfa13fa05df79a98
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-3.1.1-py3-none-any.whl

Download URL randonneuring_connect_mcp-3.1.1-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b85e149f594abe1ab91a8cdfdb55d90b71e09af813daea36aab076ea80c73f8
BLAKE2b-256 checksum
How to use checksums
abef20dd38685a5d94985852572a9372bba14ef3072191ad42fa738affae8623
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 3.1.1

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