Skip to main content

Rcloud MCP Server

License Version Python


🌐 中文版 README


📌 Project Overview

rongcloud-server-mcp-python is an MCP server built on the FastMCP framework, integrating RongCloud instant messaging services. It supports user management, message sending, group operations, and more.


✨ Tools

Tool Description
register_user Register a new user via RongCloud and return the user's token
get_user_info Retrieve user information using RongCloud
send_private_text_message Sends private messages and returns generated message IDs mapped to each recipient user ID
send_group_text_message Sends group messages and returns generated message IDs mapped to each target group ID
get_private_messages Retrieves historical private messages between two users within a specified time range
create_group Creates a new group chat in RongCloud with specified members
dismiss_group Permanently deletes a group chat from RongCloud
get_group_members Retrieves the complete member list of an existing group chat in RongCloud
join_group Adds one or more users to a specified group chat via RongCloud
quit_group Removes one or more users from a RongCloud group chat
get_current_time_millis Get the current time in milliseconds since Unix epoch (January 1, 1970 UTC).

⚙️ Configuration

🔧 Environment Variables

Variable Name Required Default Description
RONGCLOUD_APP_KEY ✅ Yes - RongCloud Application App Key
RONGCLOUD_APP_SECRET ✅ Yes - RongCloud Application App Secret
RONGCLOUD_API_BASE ❌ No https://api-cn.ronghub.com RongCloud API base URL
RONGCLOUD_API_TIMEOUT ❌ No 10 API request timeout (seconds)
FASTMCP_LOG_LEVEL ❌ No WARNING Log level (e.g., DEBUG, INFO)

🧪 Example Configuration

RONGCLOUD_APP_KEY=your_app_key
RONGCLOUD_APP_SECRET=your_app_secret
RONGCLOUD_API_BASE=https://api-cn.ronghub.com
RONGCLOUD_API_TIMEOUT=10
FASTMCP_LOG_LEVEL=WARNING

💻 Claude Desktop Configuration

  • Config file paths:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
  • Example configuration:

{
  "mcpServers": {
    "rongcloud-server-mcp": {
      "command": "uvx",
      "args": [
        "rongcloud-server-mcp-python"
      ],
      "env": {
        "RONGCLOUD_APP_KEY": "your_app_key",
        "RONGCLOUD_APP_SECRET": "your_app_secret",
        "RONGCLOUD_API_BASE": "https://api-cn.ronghub.com",
        "RONGCLOUD_API_TIMEOUT": "10"
      }
    }
  }
}

🧑‍💻 Development Guide

🚀 Quick Start

  1. Clone the repository and enter the project directory:

    git clone https://github.com/your-username/rcloud-server-mcp-python.git
    cd rcloud-server-mcp-python
    
  2. Copy example environment file and edit variables:

    cp .env.example .env
    

    Edit .env file to set:

    RONGCLOUD_APP_KEY=your_app_key
    RONGCLOUD_APP_SECRET=your_app_secret
    RONGCLOUD_API_BASE=https://api-cn.ronghub.com
    FASTMCP_LOG_LEVEL=INFO
    
  3. Create virtual environment, install dependencies, and start development server:

    make venv
    make sync
    make install
    make dev
    

💡 Run make help to see all available commands.


✅ Running Tests

make test     # Run all tests
make lint     # Check code style and quality
make fix      # Auto-fix formatting issues

🤝 Contribution Guide

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/YourFeature
  3. Commit your changes: git commit -m 'Add YourFeature'
  4. Push the branch: git push origin feature/YourFeature
  5. Open a Pull Request

Please ensure the following before submitting:

  • No errors with make lint
  • All tests pass with make test
  • Code is properly formatted with make format

📄 License

This project is licensed under the MIT License.

Metadata

Release files for rongcloud-server-mcp-python 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rongcloud-server-mcp-python 0.1.0
File Size Uploaded Provenance
rongcloud_server_mcp_python-0.1.0.tar.gz 42.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rongcloud-server-mcp-python 0.1.0
File Interpreter ABI Platform
rongcloud_server_mcp_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.3 kB

Release files / rongcloud_server_mcp_python-0.1.0.tar.gz

Download URL rongcloud_server_mcp_python-0.1.0.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b34d286a34e04663708496e62c6b72c811f4161270b5ae141f00a2d07ff4314f
BLAKE2b-256 checksum
How to use checksums
451fade8abb5fd400a99cb5a386c20e21906c1d872476928bbfb6411e4538709
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / rongcloud_server_mcp_python-0.1.0-py3-none-any.whl

Download URL rongcloud_server_mcp_python-0.1.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5ca293f8323d02a10d8e71059b00bc89f37a3d2fe18eca6f00d7c9df7c579ce
BLAKE2b-256 checksum
How to use checksums
ab4f2f513c38dfa5039805e31379f5d30c6fd8001672e7ec44e9d60f6341987f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for rongcloud-server-mcp-python 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page