Skip to main content
Glama
README.mdโ€ข2.48 kB
# 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. ```bash # 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](https://github.com/VikParuchuri/surya) 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)

Latest Blog Posts

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