Content
# MCP Server
This is a MCP (Model Context Protocol) based server for cloud printing box, providing interfaces for operating printers.
## Features
### 🖨️ Printer Management
- **Get Printer List** - View all printers connected to the device
- **Get Printer Parameters** - Get printer configurations such as supported paper sizes and colors
- **Get Paper Size** - Query the paper specifications supported by the printer
- **Printer Status Query** - Real-time get printer status (out of paper, paper jam, etc.)
### 📄 Print Task Management
- **Submit Print Task** - Support URL file printing (images, PDFs, Office documents, etc.)
- **Local File Printing** - Support reading local files from MCP and uploading for printing
- **Query Task Status** - Real-time query print task progress
- **Cancel Print Task** - Cancel queued print tasks
## Installation and Configuration
### 1. Environment Requirements
- Python 3.8+
- uv package manager
### 2. Install Dependencies
```bash
uv sync
```
> 💡 **Get API Key**: Please register at [链科开放平台](https://open.liankenet.com/) to obtain it
### 4. Get Device Information
Get from the Lianke Cloud Box device QR code:
- `deviceId` - Device ID
- `deviceKey` - Device Key
## Usage
Deploy in cursor
```json
{
"mcpServers": {
"printBoxHttpMcp": {
"url": "http://127.0.0.1:8000/mcp",
"headers": {
"ApiKey": "",
"deviceId": "",
"deviceKey": ""
}
}
}
}
```
<img src="./tests/8db40f0248071685893aa7e60b1d6986.png"/>
### Start MCP Server
```bash
uv run main.py
```
### Extended Development
You can extend more functions based on existing interfaces:
- Batch print tasks
- Print template management
- Print statistical analysis
- Equipment monitoring and alarm
## Support and Feedback
If you have any questions or suggestions, please submit an Issue or contact the development team.
---
**MCP Server** - Make printing easier! 🚀
Connection Info
You Might Also Like
markitdown
Python tool for converting files and office documents to Markdown.
everything-claude-code
Complete Claude Code configuration collection - agents, skills, hooks,...
awesome-claude-skills
A curated list of awesome Claude Skills, resources, and tools for...
antigravity-awesome-skills
The Ultimate Collection of 130+ Agentic Skills for Claude...
openfang
Open-source Agent Operating System
memU
MemU is a memory framework for LLM and AI agents, organizing multimodal...