moji-mcp-worker

moji-mcp-worker

Remote MCP server that enables composing Moji illustrations from asset catalogs, validating layers, and returning importable .moji.json files.

Category
访问服务器

README

moji-mcp-worker

Remote MCP server for AudienseMoji. Lets any MCP client (Claude Desktop, Claude Code, Cursor, etc.) compose a Moji illustration and get back a valid, ready-to-import .moji.json file — without ever guessing an asset id.

Same architecture pattern as the existing Titan MCP (mcp-remote-worker.titands.workers.dev): a stateless Cloudflare Worker exposing Streamable HTTP MCP, no server-side LLM call. The composing intelligence is the host model (Claude/Cursor); this worker only supplies the real asset catalog and validates/serializes the result.

Tools

  • moji_list_catalog({ category? }) — with no args, returns category counts + layer shape rules + defaults. With category (heads, torsos, decorations, accessories, expressions, brand, snaps, presets), returns every real asset id in that bucket.
  • moji_build({ name?, aspectRatio?, colors?, background?, layers }) — validates each layer against the live catalog and returns:
    • { valid: false, errors: [...] } if something doesn't match the catalog (unknown assetId, missing required field for that category, etc.) — fix and retry.
    • { valid: true, mojiJson, downloadFilename, importInstructions } — mojiJson is the exact .moji.json envelope the Moji app already knows how to read (format: "audiensemoji").

Where the catalog comes from

env.MOJI_CATALOG_URL (default https://audiensemoji.vercel.app/moji-catalog.json) is a static JSON file generated straight from AudienseMoji/src/illustrations/assets.tsx by AudienseMoji/scripts/export-moji-catalog.mjs. Re-run that script (and redeploy Moji) whenever assets change — this worker never hand-duplicates ids, so it can't drift.

Develop

npm install
npm run dev        # wrangler dev on http://localhost:8788/mcp
npm run typecheck

Test locally with the MCP Inspector:

npx @modelcontextprotocol/inspector@latest
# connect to http://localhost:8788/mcp

Deploy

npx wrangler login   # one-time
npm run deploy

Wrangler prints the live URL, e.g. https://moji-mcp-worker.<account>.workers.dev/mcp.

Connect a client

Cursor (.cursor/mcp.json, same shape as the titands entry):

{
  "mcpServers": {
    "moji": { "url": "https://moji-mcp-worker.<account>.workers.dev/mcp" }
  }
}

Claude Desktop / Claude Code (via the mcp-remote local proxy, since not every client speaks remote MCP natively yet):

{
  "mcpServers": {
    "moji": {
      "command": "npx",
      "args": ["mcp-remote", "https://moji-mcp-worker.<account>.workers.dev/mcp"]
    }
  }
}

Using it end to end

  1. Ask the model: "Use the moji tool to build an illustration of two people doing a hi-5, with a speech bubble that says 'Nice work!'."
  2. It calls moji_list_catalog to find real preset/decoration ids, then moji_build with a layers array.
  3. Save the returned mojiJson to <downloadFilename>.
  4. In audiensemoji.vercel.app → My Creations → Import Moji file → pick that file. It opens as an editable draft; hit Save to keep it.

Roadmap (not implemented yet)

  • Phase 2: moji_publish_link stores the built JSON in KV/R2 and returns an https://audiensemoji.vercel.app/import?src=<id> link that opens the draft directly, skipping the manual save/import step. Needs a small route addition in the Moji app.
  • Phase 3: direct-to-gallery publish via a paired Firebase session (no manual step at all) — bigger scope, needs an auth/pairing flow between the MCP client and the user's Moji account.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选