Skip to main content
Glama

configure_quantconnect_auth

Set up API authentication for QuantConnect by configuring user ID, API token, and organization ID to enable secure access to trading platform resources.

Instructions

Configure QuantConnect API authentication credentials.

Args: user_id: Your QuantConnect user ID (from email) api_token: Your QuantConnect API token (from Settings page) organization_id: Your organization ID (from organization URL)

Returns: Dictionary containing authentication configuration status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_tokenYes
organization_idNo
user_idYes

Implementation Reference

  • The core handler function for the 'configure_quantconnect_auth' tool. It takes user credentials, configures the global auth instance using configure_auth helper, validates authentication, and returns a status dictionary.
    @mcp.tool() async def configure_quantconnect_auth( user_id: str, api_token: str, organization_id: Optional[str] = None ) -> Dict[str, Any]: """ Configure QuantConnect API authentication credentials. Args: user_id: Your QuantConnect user ID (from email) api_token: Your QuantConnect API token (from Settings page) organization_id: Your organization ID (from organization URL) Returns: Dictionary containing authentication configuration status """ try: # Configure authentication auth = configure_auth(user_id, api_token, organization_id) # Validate the configuration is_valid, message = await auth.validate_authentication() if is_valid: return { "status": "success", "message": "QuantConnect authentication configured and validated successfully", "user_id": user_id, "organization_id": organization_id, "has_organization": organization_id is not None, "authenticated": True, } else: return { "status": "error", "error": f"Authentication validation failed: {message}", "user_id": user_id, "organization_id": organization_id, "authenticated": False, } except Exception as e: return { "status": "error", "error": str(e), "message": "Failed to configure QuantConnect authentication", }
  • Registers all tool sets including authentication tools via register_auth_tools(mcp), which defines the configure_quantconnect_auth function decorated with @mcp.tool() for MCP tool registration.
    safe_print("🔧 Registering QuantConnect tools...") register_auth_tools(mcp) register_project_tools(mcp) register_file_tools(mcp) register_backtest_tools(mcp) register_live_tools(mcp) register_optimization_tools(mcp)
  • Helper function called by the tool handler to create and set the global QuantConnectAuth singleton instance with provided credentials.
    def configure_auth( user_id: Optional[str] = None, api_token: Optional[str] = None, organization_id: Optional[str] = None, ) -> QuantConnectAuth: """ Configure global QuantConnect authentication. Args: user_id: QuantConnect user ID api_token: QuantConnect API token organization_id: QuantConnect organization ID Returns: Configured QuantConnectAuth instance """ global _auth_instance _auth_instance = QuantConnectAuth(user_id, api_token, organization_id) return _auth_instance

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/taylorwilsdon/quantconnect-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server