
Mcp
com.ogmakev0.1.2更新於 Oct 10, 2026
Generate og:image social cards and signed ogmake.com image URLs from your AI assistant.
概覽
讓 AI 助理產生 og:image 社群卡片,以及 ogmake.com 的簽章圖片網址。
- 功能
- 這是一個用於 ogmake.com og:image 產生的本機 stdio 伺服器。工具包括:list_templates(列出範本 id、版本與參數 JSON Schema)、render_image(依範本產生社群卡片,或只憑標題產生帶浮水印的免費圖片)、render_html(把原始 HTML/CSS 算繪成 PNG/JPG/WebP/PDF)、create_batch 與 get_batch(最多 500 個算繪的非同步批次)、build_image_url(產生簽章或公開圖片網址)、og_snippet(產生各框架的 meta 標籤片段),以及 get_usage(查詢目前計費週期的用量配額)。
- 適用情境
- 適合需要助理為頁面產生社群分享圖片或 og:image meta 標籤,或需要批次算繪的情境,不必離開對話即可完成。如果你已在使用 ogmake.com,或想用範本批次產生卡片,值得安裝;沒有 API key 時只能使用範本清單、帶浮水印的免費算繪、網址建構與片段產生。
- 執行需求
- 透過 npx -y ogmake-mcp 在本機執行(需要 Node.js)。選用環境變數:OGMAKE_API_KEY 用於需驗證的 render_image、render_html、create_batch、get_batch 與 get_usage;OGMAKE_BASE_URL 覆寫 API 來源;OGMAKE_SIGNING_SECRET 與 OGMAKE_SIGNING_KEY_ID 用於本機簽章網址;OGMAKE_PUBLIC_KEY_ID 用於未簽章的公開網址。算繪需要連線至 ogmake.com 的網路存取。
安裝
README
ogmake-mcp
Local stdio MCP server for
ogmake.com og:image generation. Run it with
npx -y ogmake-mcp.
Tools
list_templates— lists every registered og:image template id, version, and its params JSON Schema. No API key required.render_html— renders raw HTML/CSS to a stored PNG/JPG/WebP/PDF (2 credits; needsOGMAKE_API_KEY).render_image— renders an og:image.- With
OGMAKE_API_KEYset: renderstemplate(+ optionalparams,format,preset,scale,v,bg,font— a Google Fonts family) via the authenticated API and returns its hosted URL plus the image bytes. - With no
OGMAKE_API_KEY: renders a watermarked free image fromtitle(+ optionaldescription,site) and returns image bytes only — no hosted URL (the free endpoint never stores one).
- With
create_batch— starts an async batch of up to 500 renders (POST /v1/batch); returns abatch_idimmediately. OptionalwebhookUrl(https) gets a signedbatch.completedevent. NeedsOGMAKE_API_KEY.get_batch— a batch's status plus each item's stored URL or error. NeedsOGMAKE_API_KEY.build_image_url— builds an image URL fortemplatewithout rendering it.- With
OGMAKE_SIGNING_SECRET+OGMAKE_SIGNING_KEY_IDset: signs the URL locally (HMAC-SHA256) — the signing secret never leaves your machine and is never sent to the model. - Else with
OGMAKE_PUBLIC_KEY_IDset: builds an unsigned/p/:keyId/:templateURL (the key must be marked public and allow-list that template on ogmake.com).
- With
og_snippet— renders theog:image/twitter:imagemeta tag snippet for a given framework (html,hugo,jekyll,rails,laravel,django,wordpress,ghost) and image URL.get_usage— current billing period's render usage/quota for theOGMAKE_API_KEYaccount. RequiresOGMAKE_API_KEY.
Every secret (OGMAKE_API_KEY, OGMAKE_SIGNING_SECRET) stays local: it is
read from the environment once at startup and is never echoed back in a
tool result, error message, or log line.
Environment variables
Install
Claude Code
Or add to .mcp.json (project scope) / ~/.claude.json (user scope); Cursor
takes the same block in ~/.cursor/mcp.json:
Without OGMAKE_API_KEY only list_templates, watermarked free render_image,
build_image_url and og_snippet work.
Support: [email protected] · License: MIT
Development
Development
vendor/ holds the SDK and request-signing helper this server bundles, so the
repository builds standalone: npm install && npm run build && npm test.
來源:README.md,提交 5e1e287
工具
0版本歷史
1- v0.1.2最新Oct 10, 2026

