mr-model MCP Server
Click on "Install 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 |
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.
A Model Context Protocol server for Wix AI tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Cesario121125/mr-model-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server