mcpField
R
Rongcloud Server Mcp Python

Rongcloud Server Mcp Python

Local
github.com/rongcloudCommunication1Updated 72w ago

About Rongcloud Server Mcp Python

Rongcloud Server Mcp Python is a FastMCP-based server for managing RongCloud instant messaging. It provides user, message, and group operations for systems that need to work with RongCloud through MCP.

Key features

  1. 01Register users and retrieve profile details
  2. 02Send private and group text messages
  3. 03Read private message history by time range
  4. 04Create, dismiss, and manage group membership
  5. 05Retrieve group member lists

Use cases

  1. 01Register users and look up RongCloud profiles
  2. 02Send direct or group messages from an MCP client
  3. 03Review private message history for a time range

MCP support

It exposes RongCloud user, messaging, and group operations as tools for MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"rcloud-server-mcp-python": {
"command": "uvx",
"args": [
"rongcloud-server-mcp-python"
],
"env": {
"RONGCLOUD_APP_KEY": "<RONGCLOUD_APP_KEY>",
"RONGCLOUD_APP_SECRET": "<RONGCLOUD_APP_SECRET>",
"RONGCLOUD_API_BASE": "<RONGCLOUD_API_BASE>"
}
}
}
}
Run commanduvx rongcloud-server-mcp-python
Environment variables to set
RONGCLOUD_APP_KEYSecret
RONGCLOUD_APP_SECRETSecret
RONGCLOUD_API_BASE

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypirongcloud-server-mcp-python

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Ronngcloud 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

ToolDescription
register_userRegister a new user via RongCloud and return the user's token
get_user_infoRetrieve user information using RongCloud
send_private_text_messageSends private messages and returns generated message IDs mapped to each recipient user ID
send_group_text_messageSends group messages and returns generated message IDs mapped to each target group ID
get_private_messagesRetrieves historical private messages between two users within a specified time range
create_groupCreates a new group chat in RongCloud with specified members
dismiss_groupPermanently deletes a group chat from RongCloud
get_group_membersRetrieves the complete member list of an existing group chat in RongCloud
join_groupAdds one or more users to a specified group chat via RongCloud
quit_groupRemoves one or more users from a RongCloud group chat
get_current_time_millisGet the current time in milliseconds since Unix epoch (January 1, 1970 UTC).

⚙️ Configuration

🔧 Environment Variables
Variable NameRequiredDefaultDescription
RONGCLOUD_APP_KEY✅ Yes-RongCloud Application App Key
RONGCLOUD_APP_SECRET✅ Yes-RongCloud Application App Secret
RONGCLOUD_API_BASE❌ Nohttps://api-cn.ronghub.comRongCloud API base URL
RONGCLOUD_API_TIMEOUT❌ No10API request timeout (seconds)
FASTMCP_LOG_LEVEL❌ NoWARNINGLog 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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.