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.

🔄 Migrating from randonneuring-intelligence-mcp?

If you're upgrading from the old package:

  1. Uninstall old package:

    pip uninstall randonneuring-intelligence-mcp
    
  2. Install new package:

    pip install randonneuring-connect-mcp
    
  3. Update your mcp.json: Only change the server name from randonneuring-intelligence to randonneuring-connect. The command stays the same:

    {
      "mcpServers": {
        "randonneuring-connect": {
          "command": "python",
          "args": ["-m", "randonneuring_mcp"]
        }
      }
    }
    
  4. Restart your AI client

All 8 tools work identically - same names, same parameters!

What is This?

This MCP server lets AI agents analyze randonneuring (long-distance cycling) event data through natural language. It provides 8 intelligent consolidated tools that expose 60+ underlying functions:

  • 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

# Install the package
pip install randonneuring-connect-mcp

# Check installed version
pip show randonneuring-connect-mcp | grep Version

# Update to latest version
pip install --upgrade 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.

Configure for HTTP Access (ChatGPT, Web Apps)

The server can also run as an HTTP endpoint:

# Start HTTP server (default port 8000)
python -m randonneuring_mcp.server_http

# Or use the CLI command
randonneuring-connect-http

Public Endpoint: https://randonneuring-connect-server.onrender.com

This endpoint is used by:

  • ChatGPT (via MCP Streamable HTTP)
  • Web applications
  • Kiro plugin marketplace

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 uses: audax_query_events (with year=2023, distance=600, state="Karnataka")

"What are the completion rates for different distances?"
→ AI uses: audax_get_statistics (with stat_type="completion_by_distance")

"Show me John Smith's LRM statistics"
→ AI uses: lrm_get_statistics (with stat_type="rider_stats", rider="John Smith")

"Which clubs have organized the most events?"
→ AI uses: audax_get_statistics (with stat_type="club_stats")

Data

Data is automatically downloaded from S3 on first use and cached locally:

  • LRM worldwide results (25,000+ records)
  • Audax India event catalog with participant details (9,000+ events)

The randonneuring-intelligence package handles all data loading and caching. No manual data setup required!

Requirements

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

Architecture

AI Agent (Kiro/Claude)
       ↓
MCP Protocol (STDIO or HTTP)
       ↓
This MCP Server
       ↓
randonneuring-intelligence (business logic)
       ↓
S3 Data (cached locally in ~/.randonneuring/cache/)

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.2 (2024-12-27)

  • Documentation: Complete README overhaul with accurate information
  • Added migration guide for users upgrading from randonneuring-intelligence-mcp
  • Fixed example queries to show actual MCP tool names (not internal functions)
  • Added HTTP endpoint usage documentation
  • Added version check and update commands
  • Updated all tool docstrings to v3.1.2
  • Clarified actual dates instead of placeholders

3.1.1 (2024-12-27)

  • Fixed: Updated README configuration examples to use correct format
  • Changed from "command": "randonneuring-connect" to "command": "python", "args": ["-m", "randonneuring_mcp"]
  • Updated tool docstrings to v3.1.1
  • Clarified data loading from S3 (not bundled)

3.1.0 (2024-12-27)

  • 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

3.0.2 (2024-11-27)

  • Updated dependency to randonneuring-intelligence>=1.0.1
  • S3 data loading (no AWS credentials needed)
  • 8 consolidated tools (simplified from 53 individual tools)

Earlier Versions (as randonneuring-intelligence-mcp)

See CHANGELOG.md for complete version history

Metadata

Release files for randonneuring-connect-mcp 3.1.2

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

Built distribution (wheel)

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

Total release size: 61.2 kB

Release files / randonneuring_connect_mcp-3.1.2.tar.gz

Download URL randonneuring_connect_mcp-3.1.2.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ec28221eb70a78f9c5453a270e066db09b701356c0a8948838c4c38745ab0b9f
BLAKE2b-256 checksum
How to use checksums
a11756f368235a09a9dd8b40c38eff55404f9b15e098af3cc165f45486361882
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.2-py3-none-any.whl

Download URL randonneuring_connect_mcp-3.1.2-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f4f7401d2739f2a0da608237764ed900aa727b5e4fccbbb51f6433284c14635
BLAKE2b-256 checksum
How to use checksums
e41a62b6477f6a7ce993276aa5d31327e1aac9cd18a2a59ee4040c4ae5c53148
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.2

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