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-intelligencetorandonneuring-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:
- Kiro
- Claude Desktop
- Custom MCP clients
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
- PyPI: https://pypi.org/project/randonneuring-connect-mcp/
- GitHub: https://github.com/mprathappandian/randonneuring-platform
- Issues: https://github.com/mprathappandian/randonneuring-platform/issues
- MCP Package: packages/mcp-server/
License
MIT License - see LICENSE file for details.
Author
Prathap Pandian
- Email: mprathappandian@gmail.com
- GitHub: @mprathappandian
Acknowledgments
Built with:
- Model Context Protocol by Anthropic
- randonneuring-intelligence - Core data processing library
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-connectandrandonneuring-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
Metadata
Release files for randonneuring-connect-mcp 3.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| randonneuring_connect_mcp-3.1.3.tar.gz | 27.4 kB | Without provenance | Details for randonneuring_connect_mcp-3.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| randonneuring_connect_mcp-3.1.3-py3-none-any.whl | Python 3 | none | any | Details for randonneuring_connect_mcp-3.1.3-py3-none-any.whl |
Total release size: 61.3 kB
Release files / randonneuring_connect_mcp-3.1.3.tar.gz
| Download URL | randonneuring_connect_mcp-3.1.3.tar.gz |
|---|---|
| Size | 27.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0ac7eedd558ff156297694eafcbdf5ac4e799b5a299a85c63fed05f97b02486
|
|
BLAKE2b-256 checksum How to use checksums |
605ae1e6790d463e13c1baef5ca5ab21ac379762c59b9b69440d17cfa1b24b35
|
| 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.3-py3-none-any.whl
| Download URL | randonneuring_connect_mcp-3.1.3-py3-none-any.whl |
|---|---|
| Size | 33.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1596bb78ffd3cec193a9df72e62dd0c52c12941c6eab82244a070783b179978f
|
|
BLAKE2b-256 checksum How to use checksums |
cdfe9acdfb15c90657ea7d8db42e6ea97992fc7e146e0da4ba2d586ae5bc76f8
|
| 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.3
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.