Skip to main content
Glama

Trendy Post MCP

by yums-gao

Trendy Post MCP 🚀✨

A Model Context Protocol (MCP) service that:

  1. Takes a screenshot from the user 📸
  2. Uses OCR to extract text and analyze the image 🔍
  3. Generates a trending Xiaohongshu-style post based on the content 📱💬

Features ✨

  • Image Processing 🖼️: Extract text and analyze images
  • Content Generation 📝: Create engaging Xiaohongshu-style posts
  • LLM Integration 🧠: Uses AI to generate post styles, hashtags, and titles
  • MCP Compatibility 🔌: Works with any MCP client

Setup 🛠️

This MCP uses the trendy_post_mcp conda environment with Python 3.12 and Surya OCR.

# Activate the conda environment conda activate trendy_post_mcp # Run the MCP server python server.py

Usage 📋

Once the server is running, it can be used as an MCP service that provides functions for:

  • Processing screenshots 📸
  • Analyzing image content 🔍
  • Generating trending social media posts in the style of Xiaohongshu 📱

MCP Functions

The server exposes the following MCP functions:

  • process_screenshot: Extract text from an image URL 🔤
  • generate_post: Create a Xiaohongshu post from image analysis data ✍️
  • process_and_generate: Combine both functions in one step (recommended) 🔄
  • health_check: Check if the server is running properly 🩺

Project Structure 📁

  • server.py: Main MCP server implementation
  • image_processor.py: Screenshot processing and OCR functionality
  • post_generator.py: Xiaohongshu post generation logic
  • requirements.txt: Python dependencies

Dependencies 📦

OCR Engine

This project uses Surya OCR for text extraction, which is licensed under the GPL-3.0 License. Surya is a powerful OCR engine that supports multiple languages and provides excellent results for complex layouts.

⚠️ Important License Note: As Surya is licensed under GPL-3.0, any distribution of this software must comply with the GPL-3.0 license terms. Please ensure you understand these terms if you plan to distribute or modify this software.

Other Dependencies

  • FastMCP: For MCP server implementation
  • Pydantic: For data validation
  • Pillow: For image processing
  • ZhipuAI: For LLM-based content generation

License 📄

This project is licensed under the MIT License - see the LICENSE file for details. (Note: Components like Surya OCR have their own licenses as mentioned above)

-
security - not tested
F
license - not found
-
quality - not tested

Enables users to take screenshots, extract text using OCR, and automatically generate trending Xiaohongshu-style social media posts. Combines image processing with AI-powered content generation to create engaging posts with hashtags and titles.

  1. Features ✨
    1. Setup 🛠️
      1. Usage 📋
        1. MCP Functions
      2. Project Structure 📁
        1. Dependencies 📦
          1. OCR Engine
          2. Other Dependencies
        2. License 📄

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            Extracts content from multiple video platforms (Douyin, Bilibili, Xiaohongshu, Zhihu) and generates intelligent knowledge graphs with OCR text recognition capabilities.
            Last updated -
            1
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables users to search and retrieve content from Xiaohongshu (Red Book) platform with smart search capabilities and rich data extraction including note content, author information, and images.
            Last updated -
            1
            70
            5
            MIT License
            • Apple
            • Linux
          • -
            security
            F
            license
            -
            quality
            A server that allows interfacing with the Chinese social media platform Xiaohongshu through HTTP requests, enabling searching notes, retrieving note content and comments, and posting comments.
            Last updated -
            1
          • -
            security
            A
            license
            -
            quality
            A locally-run MCP server that enables downloading images, videos, and LivePhotos from Xiaohongshu (RedNote) and retrieving detailed work information through URL-based queries.
            Last updated -
            4
            GPL 3.0
            • Apple
            • Linux

          View all related MCP servers

          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/yums-gao/trendy_post_mcp'

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