GitHubCard

v0.3.0
com.githubcard/mcp Checked 2 days ago Published 5 days ago

Create GitHub profile and repository cards for READMEs, link previews and social posts.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_card Create GitHub card

Create (or reuse) a published card image for a GitHub profile or repository. Returns svg/png URLs and markdown/html embed snippets. Idempotent; counts once against the daily quota.

ParameterTypeDescription
subject *stringGitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world)
designobjecta design document from get_template_design or get_card_design, possibly edited; replaces template and palette
formatstringwhich link to return as url: "svg" (default; best for README embeds) or "png". Both are always in urls
palettestringbackground palette id from list_palettes; omit for the template's own background. For any other colour use design
templatestringtemplate id from list_templates; omit for the subject's default layout
watermarkbooleanfalse removes the watermark (Pro only; ignored on Free)

preview_card Preview a card as PNG

Render a PNG for visual review before publishing. Uses one daily card unit on success. Creates no card or public link.

ParameterTypeDescription
subject *stringGitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world)
designobjecta design document from get_template_design or get_card_design, possibly edited; replaces template and palette
palettestringbackground palette id from list_palettes; omit for the template's own background. For any other colour use design
templatestringtemplate id from list_templates; omit for the subject's default layout
watermarkbooleanfalse removes the watermark (Pro only; ignored on Free)

validate_card Check a card request

Dry run of create_card with the same inputs: checks template/palette ids, Pro features and the design document, without creating anything or using quota. warnings lists layers that reach outside the artboard (they would be clipped); fix those before create_card.

ParameterTypeDescription
subject *stringGitHub username (e.g. octocat) or owner/repo (e.g. octocat/hello-world)
designobjecta design document from get_template_design or get_card_design, possibly edited; replaces template and palette
formatstringwhich link to return as url: "svg" (default; best for README embeds) or "png". Both are always in urls
palettestringbackground palette id from list_palettes; omit for the template's own background. For any other colour use design
templatestringtemplate id from list_templates; omit for the subject's default layout
watermarkbooleanfalse removes the watermark (Pro only; ignored on Free)

list_templates List card templates

List card layouts with their ids, scope (profile/repo/all), size, widget types, and whether they need Pro.

ParameterTypeDescription
freeOnlybooleanonly templates available on the Free plan
scopestringprofile or repo; omit for all. Results include scope=all templates, which fit both
widgetsarrayonly templates containing all of these widget types (from list_components)

list_palettes List background palettes

List background palette ids accepted by create_card.

list_components List widget types

List the widget (layer) types a design can contain: the scope (profile/repo) each fits, the layer settings each reads ("options", e.g. a text layer's style.textAlign or style.backgroundColor), and the font families the renderer embeds ("fonts").

get_template_design Get a template's design

Return a template's layout as an editable design document (artboard + layers). Costs no quota. Edit it and pass it to create_card as design.

ParameterTypeDescription
template *stringtemplate id from list_templates
palettestringpalette id to apply; replaces the template's background in the returned design
subjectstringusername or owner/repo the card is for; decides profile vs repo layouts

get_card_design Get a card's design

Return the design document of one of the account's cards, to edit and re-submit through create_card as design (which creates a new card; the original is unchanged).

ParameterTypeDescription
id *stringcard id from create_card or list_cards

list_cards List my cards

List cards this account created through the API, most recently requested first. Paginated with nextCursor.

ParameterTypeDescription
cursorstringnextCursor from a previous call
limitintegerpage size 1-100 (default 20)

delete_card Delete a card

Permanently delete one of the account's cards. Its links stop working everywhere they are embedded. Confirm with the user first.

ParameterTypeDescription
id *stringcard id from create_card or list_cards

get_usage Get plan and quota

Show the account's plan (free/pro) and how many cards it can still create today (cards.remaining, resets 00:00 UTC). The ai quota is reserved for future AI tools.