Chaithanya-MCP-Server---Production-Ready-Real-Time-Multi-Client-Server

THEDACV/Chaithanya-MCP-Server---Production-Ready-Real-Time-Multi-Client-Server

3.2

If you are the rightful owner of Chaithanya-MCP-Server---Production-Ready-Real-Time-Multi-Client-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

Chaithanya MCP Server is a robust, real-time multi-client communication server designed for secure and scalable deployments using Python 3 socket programming.


⚡ Chaithanya MCP Server

Chaithanya MCP Server is a production-ready, real-time multi-client communication server built with Python 3 socket programming.
It includes authentication, rate limiting, monitoring, performance logging, and broadcasting — designed for secure & scalable deployments.


✨ Features

  • 🔐 Secure Authentication with hashed tokens
  • High Performance – 100+ clients supported concurrently
  • 📊 Real-time Monitoring (connections, disconnections, uptime, errors)
  • 📡 Broadcast Messaging across all clients
  • 🚦 Rate Limiting (100 requests/minute per IP)
  • 🛠 Command System (time, clients, broadcast, stats, exit)
  • 🧹 Auto Cleanup of inactive connections and stale rate limits
  • 📜 Detailed Logging (chaithanya_server.log)

🛠️ Installation

# Clone the repository
git clone https://github.com/your-username/chaithanya-mcp-server.git

# Navigate into the folder
cd chaithanya-mcp-server

# Run the server
python3 chaithanya_mcp_server.py --host 0.0.0.0 --port 9999 --max-clients 100```

⚡ Usage

Once the server is running, clients can connect via Telnet or custom Python client.

telnet localhost 9999


🖥 Example Commands:
time         → Get server time
clients      → List connected users
broadcast hi → Send message to all clients
stats        → Show server statistics
exit         → Disconnect

📐 Architecture Overview
flowchart TD
    A[Client 1] -->|TCP Socket| B[Chaithanya MCP Server]
    C[Client 2] -->|TCP Socket| B
    D[Client N] -->|TCP Socket| B

    B -->|Broadcast| A
    B -->|Broadcast| C
    B -->|Broadcast| D

    subgraph Monitoring & Security
      E[Authentication]
      F[Rate Limiting]
      G[Logging & Stats]
    end

    B --> E
    B --> F
    B --> G


📊 Live Stats (Sample Log Output)
2025-08-21 18:10:32 - ChaithanyaMCPServer - INFO - Stats - Uptime: 600s,
Connections: 20, Active: 12,
Messages: 150 received, 140 sent

📂 Project Structure
chaithanya-mcp-server/
│── chaithanya_mcp_server.py   # Main server file
│── chaithanya_server.log      # Auto-generated logs
│── README.md                  # Project documentation

📜 License
📝 Copyright © 2025 [Chaithanya Vishwamitra D A]