
baomoi mcp
一个用于访问 Baomoi 新闻内容的 Model Context Protocol (MCP) 服务器实现。
Repository Info
About This Server
一个用于访问 Baomoi 新闻内容的 Model Context Protocol (MCP) 服务器实现。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Baomoi MCP Server
A Model Context Protocol (MCP) server implementation for accessing Baomoi (Vietnamese news aggregator) content through LLM applications.
Overview
This MCP server provides a standardized interface for LLMs to interact with Baomoi's API, allowing them to:
- Retrieve news content by type and pagination
- Search for content and topics across the Baomoi platform
Features
- List Content by Type: Fetch news articles based on different list types and pagination
- Search Functionality: Search for either content or topics with customizable result sizes
- Secure API Integration: Implements HMAC signing for secure API requests
Prerequisites
- Python 3.7+
httpxlibrary- MCP SDK
Installation
- Clone this repository:
git clone [repository-url]
cd baomoi-mcp
- Install dependencies:
pip install -r requirements.txt
Configuration
The server requires the following environment variables or constants (currently defined in server.py):
API_KEY: Your Baomoi API keySECRET: Your Baomoi API secret for HMAC signingVERSION: API version (currently set to '0.7.16')BASE_API_URL: Base URL for the Baomoi API
Usage
Running the Server
python server.py
Available Tools
-
list_by_type:- Parameters:
list_type(int, default=1): Type of news list to retrievelist_id(int, default=0): Specific list IDpage(int, default=1): Page numberctime(int): Current timestampversion(str): API version
- Parameters:
-
search:- Parameters:
keyword(str): Search query termtype_(str): Either 'content' or 'topic'size(int, default=10): Number of results to return
- Parameters:
Integration with MCP Clients
This server can be integrated with any MCP-compatible client, such as Claude Desktop or other LLM applications that implement the MCP protocol.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
[Add appropriate license information]
Acknowledgments
- Built using the Model Context Protocol (MCP)
- Powered by Baomoi API
Quick Start
Clone the repository
git clone https://github.com/t-rekttt/baomoi-mcpInstall dependencies
cd baomoi-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.