Skip to main content
Glama

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

Related MCP server: XHS-MCP

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)

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables content creators to manage, analyze, and publish Xiaohongshu (Little Red Book) content through browser automation, with built-in templates, data analytics, and scheduling capabilities accessible via CLI or AI assistants.
      48 npm
      1
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to search Xiaohongshu notes, analyze favorites, and extract text from images for social media research.
      7
      33 npm
      20
      MIT