mr-model MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mr-model MCP ServerSearch videos about 'AI in healthcare'."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mr-model MCP Standalone Service
The MCP (Model Context Protocol) standalone service for the mr-model platform, split out from the main repository mr-model.
Main service (8866):
mrmodel.cesario.top— Web/API/Membership/Payment/PushMCP service (this repo, 8868):
mcp.cesario.top— 5 Model Context Protocol tools
Why the split
Motivation | Details |
Stable independent upgrades | MCP wants its own iteration cadence, not blocked by main-site PRs |
Future Tencent Cloud migration in China | Must split the repo first, otherwise migrating main site + MCP together doubles the cost |
Business already 90% independent | systemd / port / domain / Caddy / Restart already independent, only the code repo + venv remain |
Related MCP server: video-toolkit-mcp
Repository structure
mr-model-mcp/
├── .env.example # 环境变量模板(真实 .env 不入库)
├── README.md # 本文件
├── requirements.txt # 5 个精简依赖
├── deploy-mcp.sh # 拉码/venv/语法/restart/verify/失败回滚
├── backend/
│ ├── mcp_server.py # 1081 行,5 tools
│ ├── mcp_auth.py # Bearer token 鉴权
│ ├── database.py # 最小版(只 get_connection)
│ ├── user_service.py # 最小版(只 _now_cst)
│ ├── membership_service.py # 最小版(只 get_active_membership)
│ ├── agent_service.py # 最小版(只 _labelize_text)
│ ├── config.py # 最小版(MCP 需要的常量)
│ └── mrmodel_common.py # = 复制自主仓 addons/_mcp_shared/mrmodel_common.py
└── deploy/
├── mr-model-mcp.service # systemd unit
└── mcp.cesario.top.conf # Caddy 反代配置Shared code with the main repository
backend/mrmodel_common.py is a copy from the main repo backend/addons/_mcp_shared/mrmodel_common.py.
Pragmatic DRY strategy: the main repo is the source, the MCP repo is the copy, manually synced via cp (see [[../mr-model/docs/mr-model-扩展包架构方案-2026-08-19]] §C).
Each time the source changes in the main repo:
Main repo commit + push
cp backend/addons/_mcp_shared/mrmodel_common.py ../mr-model-mcp/backend/mrmodel_common.pyMCP repo commit + push
Deployment order: main repo deploy first (schema may change) → then MCP repo deploy-mcp.sh
Development (local)
# 准备 venv(首次)
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt
# 启动(默认 127.0.0.1:8868)
cp .env.example .env # 按需改 DATABASE_PATH 指向主仓 DB
venv/bin/python3 backend/mcp_server.py
# 健康检查
curl http://127.0.0.1:8868/healthzDeployment (A1)
# 首次部署
sudo cp deploy/mr-model-mcp.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable mr-model-mcp
bash deploy-mcp.sh # 第一次跑会建 venv(60-120s)
# 后续升级
bash deploy-mcp.shdeploy-mcp.sh 7 steps: backup service → pull code → venv → syntax check → restart → health check → rollback on failure.
Troubleshooting
Symptom | Investigation |
8868 won't start |
|
healthz not 200 within 5s | deploy-mcp.sh auto git revert + restart |
All 5 tools return 401 | No valid token in main repo sessions table (log in to main site to get a token first) |
SQLite lock | Uses main repo |
Caddy 502 |
|
The 5 MCP tools
Tool | Purpose |
| Query video list by blogger/tag/time window |
| Query video comments (with likes/time/AI tags) |
| Full-text search over video OCR text |
| Comprehensive search (title/description/tags) |
| Query blogger historical opinions (for dialectics) |
See the docstring of each tool in backend/mcp_server.py.
Maintenance
Version: follows the main repo cadence, no independent version number
Rollback:
git revert HEAD+bash deploy-mcp.shMonitoring: main repo mcp_addon
/api/_addon/mcp/healthzprobes 8868
Created on 2026-08-19 (mr-model B-tier MCP split)
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for 500+ pay-per-call web scraping, search, social, business, and financial data tools.
Hosted MCP server for DataLikers — Instagram & TikTok data API. 51 tools: Instagram user search by demographics (gender/age/race/country/city), profiles, bulk lookup, engagement, posts & reels, comments, hashtags, locations, stories, highlights, music, business accounts, top users; TikTok users, videos, comments, hashtags, playlists and top charts. Streamable HTTP, Bearer API key. Free tier: 100 requests on signup at https://datalikers.com/p/1by27bwg
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables web search with category support, website content scraping with citation metadata, and timezone-aware date/time tools.55MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides comprehensive video tools: transcript retrieval, video downloading, and automatic subtitle generation using AI speech-to-text. Works with YouTube, Bilibili, Vimeo, and any platform supported by yt-dlp.11MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that downloads watermark-free videos from Douyin (TikTok China) share links, extracts audio, and transcribes speech to text using ASR APIs.2MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools for parsing and retrieving Bilibili video information, including video details, download links, and collection listings.517 npm1-