Developers

FunctionCard MCP servers

AI apps and agents can search FunctionCard's invitation designs and, once a person signs in, work in their own account through the Model Context Protocol. Just want to connect an AI app? See Use FunctionCard with your AI.

Overview

Public

https://functioncard.com/mcp

No sign-in. Searches designs, occasions and prices, and makes start links. Read-only.

Your account

https://functioncard.com/mcp/account

OAuth 2.1 sign-in. The public tools plus drafts, invitations, guests and RSVPs in the person's own account.

Quick start

Start a session (protocol 2025-11-25), then call a tool:

curl -s https://functioncard.com/mcp \
  -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-app","version":"1"}}}'
curl -s https://functioncard.com/mcp \
  -H 'content-type: application/json' -H 'mcp-protocol-version: 2025-11-25' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_designs","arguments":{"query":"griha pravesh","language":"Hindi","limit":3}}}'

The 2026-07-28 protocol has no handshake; every request names its version in the body and in headers:

curl -s https://functioncard.com/mcp \
  -H 'content-type: application/json' -H 'mcp-protocol-version: 2026-07-28' -H 'mcp-method: tools/list' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}'

Without a token, the account server answers 401 and says where to sign in. MCP clients take it from there:

curl -si https://functioncard.com/mcp/account -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-app","version":"1"}}}'

HTTP/1.1 401 Unauthorized
www-authenticate: Bearer resource_metadata="https://functioncard.com/.well-known/oauth-protected-resource/mcp/account", scope="invitations guests"

Transport and versions

  • Streamable HTTP. Every request is a POST of JSON-RPC 2.0, and every answer is plain JSON (no event streams, no sessions; GET answers 405).
  • Protocol versions: 2026-07-28 (stateless, version in params._meta and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers) and 2025-11-252025-06-182025-03-262024-11-05 (start with initialize).
  • Capabilities: tools only. Every tool has an input and an output schema, and results carry structuredContent.
  • CORS is open, so browser-based clients work; requests from pages that aren't https (or local) are refused.

Sign-in (OAuth 2.1)

The account server follows the MCP authorization spec: it is an OAuth protected resource, and functioncard.com is its authorization server.

Protected resource metadata (RFC 9728)https://functioncard.com/.well-known/oauth-protected-resource/mcp/account
Authorization server metadata (RFC 8414)https://functioncard.com/.well-known/oauth-authorization-server
Authorizationhttps://functioncard.com/oauth/authorize
Tokenhttps://functioncard.com/oauth/token
Registration (RFC 7591)https://functioncard.com/oauth/register
Revocation (RFC 7009)https://functioncard.com/oauth/revoke
  • Authorization code with PKCE, S256 only. Send resource=https://functioncard.com/mcp/account (RFC 8707) when authorizing and exchanging the code.
  • Registering your app: either register it (dynamic client registration) or use an https address that serves your client ID metadata document as the client_id. Apps are public clients; an app that asks for client_secret_post or client_secret_basic gets a secret and must send it.
  • Return addresses: https, http://localhost or 127.0.0.1 (any port, RFC 8252), or your app's own scheme; matched exactly. The answer carries iss (RFC 9207).
  • Tokens: opaque bearer tokens, stored by us only as hashes. Access tokens last 60 minutes; refresh tokens 60 days and work once each. Using a spent refresh token again signs the app out of that account.
  • The person stays in control: they see your app's name, website and return address before allowing it, and can disconnect it any time under Account → Connected AI apps (or by signing out of all devices).
curl -s https://functioncard.com/oauth/register -H 'content-type: application/json' \
  -d '{"client_name":"My AI app","redirect_uris":["https://my-app.example/oauth/callback"],"token_endpoint_auth_method":"none"}'
curl -s https://functioncard.com/oauth/token \
  -d grant_type=authorization_code -d code=fco_… -d client_id=fcc-… \
  -d redirect_uri=https://my-app.example/oauth/callback -d code_verifier=… \
  -d resource=https://functioncard.com/mcp/account

Permissions

ScopeLets the app
invitationsSee your designs and invitations (with RSVP totals once an invitation is paid for) and start new private drafts in your account.
guestsSee and add guests on invitations you have paid for, with each guest's personal link.

Ask for no scope to get both. A tool whose permission wasn't granted answers with a tool error saying so.

What tools can't do

Connecting an AI app adds convenience, never free use. It can't publish, pay or spend credit, delete anything, send emails, download your designs or change a live invitation. Those stay on the website. Guest lists, guest links and RSVP totals work only on invitations the person has paid for; for a draft, tools answer with the page where the person publishes and pays. Tool results never contain a card's full design.

Tools

12 tools: 5 on both servers, 7 on the account server only. Every tool also returns a short Markdown text for the model.

search_designs

No sign-inRead-only

Search invitation designs

Search FunctionCard's 1,771 invitation card designs (weddings, birthdays, pujas, housewarmings, baby showers, festivals, memorials, company events; every culture and faith). Understands everyday and regional words in any script (shaadi, शादी, nikah, griha pravesh, xmas), typos, colours, styles and ages. Returns each design's name, page link, cover picture link and a link that opens it in the editor. Use it to suggest designs for the person's event; share the design page links so they can preview and customise. Read-only.

InputTypeAbout
querystringWhat the person wants, in their own words and any language or spelling: “pink floral mehndi”, “shaadi”, “griha pravesh”, “50th birthday”, “Christmas party with photo”. Typos are fine.
occasionstringAn occasion id from list_occasions (“wedding”, “housewarming”), a collection id (“weddings”, “birthdays”), or an occasion's name.
cultureone of: hindu, muslim, christian, sikh, jain, buddhist, jewish, parsi, chineseDesigns that suit this faith or culture.
styleone of: elegant, floral, minimal, traditional, royal, modern, fun, rustic, boho, luxury
colorone of: white, gold, pink, red, purple, blue, green, yellow, orange, blackMain colour.
featureone of: photo, musicphoto: has a spot for the host's photo; music: comes with a suggested track.
languagestringLanguage the card should be written in: a code (“hi”) or name (“Hindi”, “Tamil”, “Arabic”). Every design can be written in all 53 languages, so this doesn't narrow the results; it opens the editor in that language.
limitinteger 1–25 (default 10)How many designs to return (1–25).
offsetinteger 0–5000 (default 0)Skip this many results, for the next page.

get_design

No sign-inRead-only

Get one design

Everything about one FunctionCard design: what it looks like, its pages, music, what's included, the price to publish, a cover picture and similar designs, with links to preview it and to open it in the editor. Read-only.

InputTypeAbout
slug *stringThe design's slug from search_designs (its page address /t/<slug> works too).
languagestringLanguage for the customise link: a code (“hi”) or name (“Hindi”).

list_occasions

No sign-inRead-only

List occasions

Every occasion FunctionCard has invitation designs for, grouped into collections (Weddings, Birthdays, Baby & Kids, Festivals & Faith, Home & Family, Corporate & Business, Parties, Memorial, National & cultural days), with each occasion's id, other names people use, number of designs and page link. Read-only.

InputTypeAbout
collectionone of: weddings, birthdays, baby, religious, home, corporate, parties, memorial, nationalOnly this collection; leave out for all of them.

get_pricing

No sign-inRead-only

Get prices and plans

FunctionCard's plans and prices (in Indian rupees, one-time payments, no subscription): Starter for one invitation, Family for 10 and Business for 100 within 12 months, every feature in each. Also what every plan includes, and honest notes on when FunctionCard is a good fit and when something else may suit better. Give the number of invitations (and functions, if known) to get the right plan. Read-only.

InputTypeAbout
functionsinteger 1–50How many functions (events) one invitation needs, e.g. 5 for haldi, mehndi, sangeet, wedding and reception. Every plan covers up to 20 on each invitation.
invitationsinteger 1–1000How many separate invitations to publish in the next 12 months; gets the cheapest plan.

my_account

Sign-in · invitationsRead-only

My FunctionCard account

The signed-in person's plan (and invitations left on a Family or Business plan), how many drafts and live invitations they have, and their saved event details (which create_invitation_draft can use). Read-only.

No inputs.

list_my_invitations

Sign-in · invitationsRead-only

List my invitations

The signed-in person's designs and invitations, newest first: title, occasion, whether it is a free draft or paid and live, the main date, and links to edit it, open it and (when paid) its guest and RSVP dashboard with reply totals. Read-only.

InputTypeAbout
statusone of: all, draft, live (default "all")draft = not paid yet; live = published
limitinteger 1–50 (default 20)
offsetinteger 0–9007199254740991 (default 0)

get_invitation

Sign-in · invitationsRead-only

Get one invitation

One of the person's invitations: names, date, time, venue, each function, whether it is paid and live, its links, and (only once it is paid for) RSVP totals for each function and how many guests haven't replied. Read-only.

InputTypeAbout
id *stringthe invitation id from list_my_invitations (or its editor or dashboard address)

create_invitation_draft

Sign-in · invitationsWrites

Start a draft invitation

Starts a new private draft in the person's account from a design (slug from search_designs) or a blank card, with their names, date, time and venue filled in (from a sentence, separate fields, or one of their saved detail sets from my_account; with none given, their saved default for that occasion is used, as on the site). Free, like designing on the site; it is not shared with anyone. Returns the editor link. To share it with guests the person publishes and pays on the website (publish_link).

InputTypeAbout
designstringthe design's slug or page address; leave out for a blank card
sizeone of: story, card, squarefor a blank card: story (phone), card (5 × 7) or square
languagestringmake the design in this language: a code or name, e.g. hi, Marathi
detailSetIdstringone of the person's saved detail sets (my_account)
descriptionstringthe event in one sentence, e.g. "Priya and Rahul's wedding on 14 Feb 2027 at 7 pm at Leela Palace, Jaipur"; names, date, time and place are read from it
namesarray of stringwho is hosting or celebrating, e.g. ["Priya", "Rahul"]; overrides the description
datestringthe main date, YYYY-MM-DD; the design's other functions keep their spacing
timestringstart time, HH:MM 24-hour
venuestring
citystring

list_guests

Sign-in · guestsRead-only

List an invitation's guests

The guest list of one of the person's paid invitations: each guest's name, party size, functions, reply and personal link. Only for invitations that are paid for; for a free draft it says how to publish it. Contact details aren't returned. Read-only.

InputTypeAbout
id *stringthe invitation id from list_my_invitations
limitinteger 1–200 (default 50)
offsetinteger 0–9007199254740991 (default 0)

add_guests

Sign-in · guestsWrites

Add guests to an invitation

Adds guests to one of the person's paid invitations (up to 500 in all), each with a name and optionally an email, phone, party size (people coming with them) and the functions they're invited to (by name or id; left out = every function). Duplicates are skipped. Returns each new guest's personal link once the invitation is live. Only for invitations that are paid for. It never sends anything to the guests: the person shares the links or emails them from the site.

InputTypeAbout
id *stringthe invitation id from list_my_invitations
guests *array of objects

* required. Full JSON schemas: call tools/list.

Limits and errors

  • Public server: 240 requests a minute per network address. Account server: 120 a minute per person. Over the limit: HTTP 429 with retry-after.
  • Requests up to 64 KB; batches (2025-03-26 only) up to 20 messages.
  • Mistakes in a tool's arguments, unknown designs and refused actions come back as a tool result with isError: true and a sentence the model can act on.
  • Protocol errors use JSON-RPC codes: -32700 parse, -32600 invalid request, -32601 unknown method, -32602 invalid params, -32020 header mismatch, -32022 unsupported version (with the versions we speak).
  • OAuth errors follow RFC 6749: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type.

Support

Questions or problems: support or hello@functioncard.com. Found a security issue? See the security policy. Using the servers means accepting the AI connector terms. For a plain summary of FunctionCard, read /llms.txt.