# Developers: MCP servers and sign-in | FunctionCard

## For AI assistants that use tools: the FunctionCard MCP servers
FunctionCard has two MCP (Model Context Protocol) servers, both Streamable HTTP. Setup for each AI app: https://functioncard.com/ai. Technical reference: https://functioncard.com/developers.

**Public, no sign-in: https://functioncard.com/mcp.** Every tool only reads the public store; none of them publishes, saves or charges anything.
- `search_designs`: search the designs by occasion, words in any language or spelling, culture, style, colour or language; returns names, design page links, cover pictures and a link that opens each one in the editor
- `get_design`: everything about one design: pages, music, what's included, the price to publish and similar designs
- `list_occasions`: every occasion and collection, with ids, other names and the number of designs
- `get_pricing`: every plan and price, the cheapest plan for a number of invitations, and when FunctionCard fits
- `start_invitation_link`: a link that opens one design in the editor with the person's names, date, time and venue already filled in (valid 7 days)

**Signed in to the person's own account (OAuth): https://functioncard.com/mcp/account.** The same tools, plus:
- `my_account`: the person's plan, invitations left on a Family or Business plan, designs and saved event details
- `list_my_invitations`: their designs and invitations, draft or live, with links and (when paid) reply totals
- `get_invitation`: one invitation's names, dates, functions and links, and RSVP totals per function once it is paid for
- `create_invitation_draft`: starts a private draft in their account from a design and their event details (free, like designing on the site)
- `publish_link`: the plan and price that fit a draft and the page where the person publishes and pays on the website
- `list_guests`: the guest list of a paid invitation, with replies and personal links
- `add_guests`: adds guests to a paid invitation and returns their personal links (sends nothing)

Neither can publish, pay or spend credit, delete anything, send emails, download designs or change a live invitation: the person does those on the website, and guest lists and RSVPs work only on invitations they have paid for. Using an AI app never makes a paid feature free.

## Sign-in (OAuth 2.1)
- Protected resource metadata: https://functioncard.com/.well-known/oauth-protected-resource/mcp/account
- Authorization server metadata: https://functioncard.com/.well-known/oauth-authorization-server
- Authorization code with PKCE (S256 only), resource https://functioncard.com/mcp/account (RFC 8707)
- Dynamic client registration at https://functioncard.com/oauth/register, or a client ID metadata document
- Scopes: invitations, guests. Access tokens 1 hour; refresh tokens 60 days, one use each
- Revocation: https://functioncard.com/oauth/revoke

Full reference with every tool's inputs: https://functioncard.com/developers
