Randonneuring Connect MCP Server

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:
-
Uninstall old package:
pip uninstall randonneuring-intelligence-mcp
-
Install new package:
pip install randonneuring-connect-mcp
-
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"]
}
}
}
-
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.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:
audax_query_events - Query events with flexible filters (year, club, location, state, distance, status, type)
audax_query_participants - Query participants with filters (name, club, result, medal, fee)
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
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
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
- Check Python version:
python --version (must be 3.10+)
- Verify installation:
pip show randonneuring-connect-mcp
- Test manually:
python -m randonneuring_mcp (should show startup logs)
Tools Not Working
- Check logs in your AI client's console
- Enable debug logging (see Advanced Configuration)
- Verify data files loaded (check startup logs)
Import Errors
Ensure randonneuring-intelligence is installed:
pip install randonneuring-intelligence
Project Links
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.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