kaomoji-mcp
This MCP server provides tools for selecting, searching, decorating with, and browsing kaomoji by mood or content.
pick_kaomoji: Pick 1-10 kaomoji from a mood or scene description, with optional category filtering, quality control, and exclusion of previous picks.
search_kaomoji: Search 1-20 kaomoji by keyword or symbol such as cat, heart, rain, ♡, or stars.
decorate: Submit a full sentence; the server infers the emotion and returns the sentence decorated with 1-6 kaomoji options.
list_categories: Browse all 38 emotion categories with ids, Chinese names, item counts, and examples.
Quality settings let you limit results to clean, fancy, clean+fancy, or any rendering compatibility level.
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., "@kaomoji-mcp pick 3 kaomoji for being praised and feeling a bit shy"
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.
kaomoji-picker-mcp
给 AI 一个「按心情挑颜文字」的能力。22,364 条颜文字,38 个情绪分类,零依赖。
An MCP server that picks kaomoji by mood — 22,364 emoticons across 38 emotion categories, zero dependencies.
本项目没有官方公共实例,也不替任何人付服务器账单。 桌面客户端更省事,根本不用部署:
npx -y kaomoji-picker-mcp,见下方 ①。
它解决什么问题
AI 本来就会读情绪,缺的只是一个仓库——能听懂「被夸了有点不好意思」是什么意思,然后从两万条里捞出三条真正贴的。
把整个库塞进上下文是不现实的。所以这里的做法反过来:AI 说心情,服务端秒回 3-5 条候选,AI 挑一条贴到句尾。
Related MCP server: mood
效果
「开心」 → 开心(happy)
(っ ᵔ◡ᵔ)っ ´ ᯅ ` ✩♡ (^m^)クスッ♪
「被夸了有点不好意思」 → 害羞(shy)
テヘ(//ω照♥ ☆~(´>ω∂`)テヘペロ (´>ω∂`)
「困得要死」 → 困(sleepy)
Zz(´-ω-`*) ( ᵕᴗᵕ )*・☪︎ おやすみ (●UωU)
「我要生气了」 → 生气(angry)
ヾ(°∇°*)ゞガオー! (-ε-)むぅ (`・ω・´)
「猫」 → 猫(cat)
(=^・ω・^=) ฅ^._.^ฅ (^≗ω≗^)decorate 更省事,丢一整句进去:
decorate("今天被夸了有点飘嘿嘿")
→ 判断情绪:开心(happy)
加料示例:今天被夸了有点飘嘿嘿 ꉂꉂ(⁰▿⁰)アハハ
也像:害羞(shy)怎么用
你的情况 | 走哪条 | 部署成本 |
桌面客户端(Claude Desktop / Cherry / Cursor) | ① npx,进程跑在你本机 | 零部署 |
手机 / 平板客户端(Kelivo / RikkaHub) | ② 自己一键部署,拿到一个 HTTPS 地址 | 点一下按钮 |
有服务器 / 喜欢掌控 | ③ Docker 或源码 | 你自己的机器 |
① 本机 stdio —— 桌面端最省事
npx -y kaomoji-picker-mcp一行跑起来,直接从 GitHub 取代码,不经过 npm 仓库、不装全局包。Claude Desktop 的 claude_desktop_config.json:
{
"mcpServers": {
"kaomoji": {
"command": "npx",
"args": ["-y", "kaomoji-picker-mcp"]
}
}
}Claude Code 一条命令:
claude mcp add kaomoji -- npx -y kaomoji-picker-mcp这条路不需要任何服务器、任何账号。缺点只有一个:手机客户端启动不了你电脑上的进程,那边得用远程方式。
零配置、零依赖,无需下载源码。一行
npx即可让任何支持 MCP 的桌面端(Claude Desktop / Claude Code / Cursor / Cherry Studio 等)直接跑起来。已正式发布到 npm。
② 远程 —— 部署一个自己的实例
手机上(Kelivo、RikkaHub、Cherry Studio Mobile)只能连远程地址。点页面顶部的 一键部署 Vercel 按钮,用你自己的账号:
Vercel 部署完 → https://<你的项目>.vercel.app/mcp
Render 部署完 → https://<你的服务>.onrender.com/mcp然后在客户端里「添加远程 MCP 服务器」:
字段 | 填什么 |
类型 / 传输 | Streamable HTTP(不要选 STDIO / SSE) |
地址 / URL | 上面那个 |
认证 | 没设 |
不用买域名。 平台给的免费子域够用,想绑自己的域名是后话。
带令牌部署(只给自己用)
域名是猜得到的(项目名.vercel.app),不加门等于把额度挂在公网上任人刷。四步:
1. 生成一个随机串
openssl rand -hex 16 # → 例如 3f9c...(32 位十六进制,别用生日和 123456)2. 在平台加环境变量 MCP_TOKEN
平台 | 加在哪 |
Vercel | Project → Settings → Environment Variables → Key 填 |
Render | Dashboard → Environment → Add Environment Variable → |
Docker |
|
Cloudflare |
|
Vercel 的坑:变量只在构建时注入,加完必须 Redeploy 一次才生效。Redeploy 时把「Use existing build cache」取消勾选,否则可能拿到旧构建。Key 名必须一字不差是
MCP_TOKEN——写成别的名字不会报错,只会静默不生效,看起来像"令牌没用"。
3. 客户端带令牌(三种服务端都认,任选一种)
带法 | 写法 | 适合 |
拼在地址里 |
| 手机 / 平板客户端首选,这类界面往往只让填一个 URL |
标准头 |
| 能自定义请求头的客户端 |
短头 |
| 只给一个"密钥"输入框、不让改 header 名的客户端 |
4. 确认真的锁上了
curl -o /dev/null -w "%{http_code}\n" https://<你的项目>.vercel.app/health
# 期望 401。返回 200 说明令牌没生效,回第 2 步查 Key 名和 Redeploy带令牌打开首页会显示「本实例已启用令牌校验」,可以直接在浏览器里验。
令牌会随
?token=落进平台访问日志,自己用无所谓;想干净就用Authorization头。 别把令牌写进仓库或贴进 README / issue —— 写成<你的令牌>占位符就行。
Render 免费版 15 分钟没请求会休眠,下次唤醒几秒冷启动。Vercel 只会按请求冷启动(有预热,通常一两百毫秒),不像 Render 那样固定休眠;但 Hobby 条款限「个人非商业」用途。两边都免费,按在意什么挑。
③ 自己的机器 —— Docker 或源码
docker build -t kaomoji-picker-mcp .
docker run -p 8080:8080 kaomoji-picker-mcp
# → http://127.0.0.1:8080/mcp或者不装 Docker:
git clone https://github.com/zyeonheenim/kaomoji-picker-mcp.git
cd kaomoji-picker-mcp
node src/index.mjs # stdio
node src/index.mjs --http # HTTP,默认 0.0.0.0:8790
node src/index.mjs --http --port 9000 --host 127.0.0.1HTTP 模式同时支持两种传输:POST /mcp(Streamable HTTP)和 GET /sse(老式 SSE)。手机跟电脑不在同一网络时,可以走 Tailscale 的 100.x 地址,不用暴露到公网。
设了 MCP_TOKEN 环境变量就会校验凭证,三种带法都认:Authorization: Bearer <令牌>、X-MCP-Token: <令牌>、?token=<令牌>。不带就 401,/health 和首页也一起挡住。
其他平台也行:Railway / Zeabur / Fly.io 直接识别 Dockerfile;Cloudflare Workers 用 wrangler deploy(仓库里有 wrangler.toml),或者把 dist/worker.js 单文件粘进后台。
四个工具
工具 | 干什么 |
| 核心。描述心情/场景,取候选。支持指定分类、要几条、避重 |
| 丢一整句话进去,服务端判情绪 + 配好成品 |
| 按关键词或符号搜(「猫」「♡」「星星」) |
| 列出 38 个分类的家底 |
pick_kaomoji(mood: "被夸了不好意思", count: 3)
pick_kaomoji(mood: "", category: "cat", quality: "any")
pick_kaomoji(mood: "开心", exclude: ["(^m^)クスッ♪"]) // 避开上一轮用过的
decorate(text: "终于考完啦!!")
search_kaomoji(query: "♡")为什么挑出来的不会糊
两万多条里混着大量依赖特殊字体的条目——埃及圣书体、生僻组合符,发到微信里会显示成一排方框。所以每条都打了质量分:
档位 | 判定 | 条数 |
| 结构简单、任何客户端都不糊(默认) | 14,185 |
| 更花哨,依赖字体 | 3,670 |
| 长或组合符多,容易糊 | 4,509 |
默认只给 clean。想要好看的用 fancy 或 clean+fancy,any 全给。另外每个分类只从质量前 60% 里抽——长尾真的很难看。
一个踩过的坑
情绪词和场景词一开始权重一样,结果「下班了超开心」被判成「困倦」——因为「下班」也命中了睡觉分类。现在情绪词的权重压在场景词之上,「累死了但还要笑」会同时给「开心」和「困」两个方向。
decorate 信号不足时不会硬猜:早期版本把「加班回家一个人」配成了「加油」,语义直接反了。现在会明说没读到情绪,给几条通用款,让你改用 pick_kaomoji。
各平台跑法对照
同一个 core.mjs,四种外壳。想换平台不用改逻辑,只换入口那几十行。
平台 | 入口 | 传输能力 | 备注 |
Vercel |
| Streamable HTTP | 无状态, |
Render / Railway / Zeabur / VPS |
| HTTP + 老式 SSE | 真进程,长连接可用;Render 免费版会休眠 |
Cloudflare Workers |
| Streamable HTTP | 免费额度每天 10 万请求;仓库带 |
本机 |
| stdio / HTTP / SSE | 三种全支持 |
Cloudflare 想省掉装 wrangler 的话:npm run build 会生成 dist/worker.js——自包含单文件,粘进后台就能跑。
想加访问控制就在环境变量里设
MCP_TOKEN。三个入口都认,不设就是谁都能连。
开发
npm run build # vendor/kaomoji.json → src/data.b64.mjs(+ dist/worker.js)
npm run check # 验证提交的内联数据能由 vendor/ 完全重建
npm test # 39 项,覆盖核心 / Worker / 令牌 / Vercel / stdio 五条线src/ 分层:
文件 | 职责 |
| 数据派生、情绪路由、四个工具、JSON-RPC 分发。平台无关,只用 Web 标准 API |
| 解压加载内联数据( |
| fetch handler 外壳:CF Worker、Vercel 都走这里 |
| Node 外壳:stdio + HTTP(含老式 SSE) |
| Vercel 适配层:把 Node 的 (req, res) 转成标准 Request,再把 Response 写回去 |
平台无关那层是关键:core.mjs 里没有一行 node: 导入,所以同一个文件能在 Worker、Vercel、Deno、Node 上直接跑。这也是为什么加一个平台只需要写个十几行的外壳。
src/data.b64.mjs 是构建产物但入库了:这样 clone 下来不用 build 就能跑。CI 会验证它和 vendor/ 一致,手改会被拦。
许可
代码 MIT。颜文字数据来自 kaomoji-collection(MIT,41,596 条 / 535 个分类),经 scripts/build-data.mjs 映射为 38 个中文情绪分类。原始快照在 vendor/,完整处理步骤公开,可复现。
第三方署名的完整说明见 NOTICE。
Available Tools
4 toolsdecorateA
把一句话丢进来,服务端自己判断情绪并配好颜文字,直接返回「原句 + 颜文字」的成品。
Inputs: text (required), count, quality.
list_categoriesA
列出全部情绪分类(id + 中文名 + 条数 + 示例)。想知道这个库有什么时用。
Inputs: no named parameters.
pick_kaomojiA
按情绪或场景挑选颜文字。心情、感受、场景都能描述,中英文皆可,比如「开心」「有点难过」「被夸了不好意思」「困得要死」「想撒娇」「猫」。返回若干条候选和特征标签(heart=带爱心, crying=在哭, sparkle=闪亮, animal=小动物…)。聊天里情绪合适时,可以主动挑一条贴到句尾——但一条就够,别堆。
Inputs: mood (required), count, exclude, quality, +1 more.
search_kaomojiA
按关键词搜颜文字。既能搜语义(「猫」「爱心」「下雨」),也能搜符号特征(「♡」「星星」)。
Inputs: query (required), count, quality.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
list_categories and decorate are clearly unique, but pick_kaomoji (pick by emotion/scene) and search_kaomoji (keyword/symbol search) overlap noticeably — the description for pick_kaomoji even uses '猫', which is a natural search_kaomoji query. Descriptions do hint at the split (semantic mood vs. keyword/symbol), so an agent can usually choose correctly.
Three tools follow a clean verb_noun pattern (list_categories, pick_kaomoji, search_kaomoji). decorate breaks the pattern as a bare verb, though its purpose is unambiguous.
Four tools is well within the ideal range and each covers a distinct mode of use: browse, select, search, and one-shot decoration. Nothing feels padded or missing for such a narrow domain.
The surface covers discovery (list), retrieval (pick/search), and a convenience composition (decorate), which is solid for a read-only kaomoji library. There is no direct way to dump all items in a category or fetch a specific entry, but the existing tools can approximate those needs.
Related MCP Connectors
Intimate voice AI: 29 voices, 22 languages, emoji vocal cues, multi-voice scenes.
Search and use 300,000+ AI prompts and skills for images, video, writing, games, apps and websites.
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Find memes and Chinese 表情包, auto-place them into articles, or draw custom memes with AI.
Related MCP Servers
- AlicenseAqualityDmaintenanceASCII art & kaomoji for AI agents, CLI tools, and chatbots.1172 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI to display its current mood as a locally generated ASCII face using Stable Diffusion, with a tool feel(emotion) that the AI can call to update the terminal display.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to search, inspect, and generate clean, standardized vector SVG emoji components directly into their codebases.32 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables retrieving a random kaomoji based on a mood or natural-language query, with access to over 96,000 entries across 30 moods. Also provides a tool to list available moods and their entry counts.MIT