Offers a database administration interface accessible at http://localhost:8080 for managing the PostgreSQL database.
Provides containerized deployment for the MCP server, enabling scalable and consistent operation across environments.
Powers the RESTful API interface, offering clean, well-documented endpoints for AI model interactions.
Serves as the robust database backend for storing and retrieving structured data that AI models can access.
Provides ORM capabilities through SQLModel integration, enabling structured database interactions for AI models.
Delivers interactive API documentation through Swagger UI, allowing exploration of available endpoints.
π RL-MCP: Ryan's Model Context Protocol Server
π― A powerful, scalable Model Context Protocol (MCP) server built with modern Python technologies
π What is RL-MCP?
RL-MCP is a robust Model Context Protocol server designed to provide AI models with structured access to external data and services. Think of it as a bridge π that allows AI assistants to interact with your applications, databases, and APIs in a standardized, secure way.
πͺ Current Features
π Secure Authentication - Built-in auth system to protect your endpoints
π RESTful API - Clean, well-documented API endpoints with FastAPI
ποΈ PostgreSQL Integration - Robust database layer with SQLModel/SQLAlchemy
π³ Docker Ready - Fully containerized development and deployment
π Database Migrations - Alembic-powered schema management
π Health Monitoring - Built-in health checks and connection monitoring
π¨ Interactive Docs - Auto-generated API documentation
π οΈ Development Tools - Pre-commit hooks, linting, and formatting
Related MCP server: MCP Server Demo
π Stock Market Intelligence
π Transform your applications with AI-powered financial intelligence
RL-MCP includes a comprehensive Stock Market Intelligence API that combines cutting-edge AI with real-time financial data:
π§ AI-Powered Capabilities
π Vector Search: Semantic search across news, analysis, and market data using advanced NLP
π Sentiment Analysis: Real-time sentiment scoring for news and market content
π€ Smart Analysis: AI-driven stock analysis with confidence scoring and recommendations
π― Relevance Scoring: Intelligent content ranking and filtering
πΉ Real-Time Market Data
π Live Pricing: Current stock prices with change indicators and market metrics
π° News Intelligence: Latest financial news with sentiment analysis from multiple sources
π Market Overview: Comprehensive market summaries with top movers and trends
π₯ Trending Analysis: Most active and discussed stocks based on data volume
β‘ High-Performance Architecture
π Intelligent Caching: Multi-layer caching for lightning-fast responses
π Background Processing: Async data ingestion and processing
π Performance Monitoring: Built-in health checks and cache statistics
π‘οΈ Enterprise-Ready: Secure, scalable, and production-ready
π― Use Cases
π€ AI Trading Assistants - Portfolio analysis and trading signals
π Financial Research - Market research and competitive intelligence
π± Investment Apps - Smart notifications and educational content
π’ Enterprise Systems - Risk management and client reporting
π Comprehensive Documentation
Explore our detailed stock market API documentation:
π - Complete guide to stock market features
π - Advanced semantic search capabilities
π‘ - Real-world applications and code samples
π - Complete endpoint documentation
π Future Vision
This MCP server is designed to be the foundation for AI-powered applications that need:
π€ AI Model Integration - Seamless connection between AI models and your data
π Plugin Architecture - Extensible system for adding new capabilities
π‘ Real-time Communication - WebSocket support for live data streaming
π Multi-tenant Support - Serve multiple clients with isolated data
π Advanced Search - Vector search and semantic querying capabilities
π Analytics Dashboard - Monitor usage, performance, and insights
π οΈ Technology Stack
π Backend: Python 3.12 + FastAPI
ποΈ Database: PostgreSQL with SQLModel
π³ Containerization: Docker + Docker Compose
π Migrations: Alembic
π§ͺ Code Quality: Black, isort, pylint, pre-commit hooks
π Documentation: Auto-generated OpenAPI/Swagger docs
π§ AI/ML: Sentence Transformers, Vector Search, Sentiment Analysis
π Quick Start
Prerequisites
π³ Docker and Docker Compose
π Python 3.12+ (for local development)
πΊ Homebrew (macOS) or equivalent package manager
π― One-Command Setup
Get up and running in seconds! Our setup script handles everything:
This magical command will:
π§ Install all required dependencies
π Create and configure a Python virtual environment
π³ Set up Docker containers
π¦ Install all Python packages
β Verify everything is working
πββοΈ Running the Application
π³ Docker Development (Recommended)
Your services will be available at:
π API Server: http://localhost:8000
π API Docs: http://localhost:8000/docs
π Stock API: http://localhost:8000/v1/stock
ποΈ Database Admin: http://localhost:8080 (Adminer)
π Local Development
π API Documentation
Once running, explore the interactive API documentation:
π Swagger UI: http://localhost:8000/docs
π ReDoc: http://localhost:8000/redoc
π OpenAPI Spec: http://localhost:8000/openapi.json
π Authentication
All API endpoints require authentication. Include your auth token in requests:
π Stock API Quick Example
ποΈ Database Management
π Creating Migrations
When you modify database models:
ποΈ Database Commands
π οΈ Development Workflow
π¦ Managing Dependencies
π§Ή Cleanup
π Code Quality
Pre-commit hooks automatically run:
π¨ Black - Code formatting
π isort - Import sorting
π Pylint - Code linting
ποΈ Project Structure
π€ Contributing
We welcome contributions! π
π΄ Fork the repository
πΏ Create a feature branch
β¨ Make your changes
π§ͺ Run tests and linting
π Submit a pull request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support
Having issues? π€
π Check the API Documentation
π Explore Stock API Documentation
π Open an Issue
π¬ Start a Discussion
π Built with β€οΈ for the future of AI-powered applications
Ready to revolutionize how AI models interact with your data? Let's build something amazing together! β¨
π Featuring comprehensive stock market intelligence with AI-powered semantic search, real-time data, and intelligent caching π€πΉ