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/mcpNo sign-in. Searches designs, occasions and prices, and makes start links. Read-only.
Your account
https://functioncard.com/mcp/accountOAuth 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
POSTof JSON-RPC 2.0, and every answer is plain JSON (no event streams, no sessions;GETanswers 405). - Protocol versions:
2026-07-28(stateless, version inparams._metaand theMCP-Protocol-Version,Mcp-MethodandMcp-Nameheaders) and2025-11-252025-06-182025-03-262024-11-05(start withinitialize). - 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 |
| Authorization | https://functioncard.com/oauth/authorize |
| Token | https://functioncard.com/oauth/token |
| Registration (RFC 7591) | https://functioncard.com/oauth/register |
| Revocation (RFC 7009) | https://functioncard.com/oauth/revoke |
- Authorization code with PKCE,
S256only. Sendresource=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 forclient_secret_postorclient_secret_basicgets a secret and must send it. - Return addresses: https,
http://localhostor127.0.0.1(any port, RFC 8252), or your app's own scheme; matched exactly. The answer carriesiss(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/accountPermissions
| Scope | Lets the app |
|---|---|
invitations | See your designs and invitations (with RSVP totals once an invitation is paid for) and start new private drafts in your account. |
guests | See 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-onlySearch 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.
| Input | Type | About |
|---|---|---|
query | string | What 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. |
occasion | string | An occasion id from list_occasions (“wedding”, “housewarming”), a collection id (“weddings”, “birthdays”), or an occasion's name. |
culture | one of: hindu, muslim, christian, sikh, jain, buddhist, jewish, parsi, chinese | Designs that suit this faith or culture. |
style | one of: elegant, floral, minimal, traditional, royal, modern, fun, rustic, boho, luxury | |
color | one of: white, gold, pink, red, purple, blue, green, yellow, orange, black | Main colour. |
feature | one of: photo, music | photo: has a spot for the host's photo; music: comes with a suggested track. |
language | string | Language 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. |
limit | integer 1–25 (default 10) | How many designs to return (1–25). |
offset | integer 0–5000 (default 0) | Skip this many results, for the next page. |
get_design
No sign-inRead-onlyGet 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.
| Input | Type | About |
|---|---|---|
slug * | string | The design's slug from search_designs (its page address /t/<slug> works too). |
language | string | Language for the customise link: a code (“hi”) or name (“Hindi”). |
list_occasions
No sign-inRead-onlyList 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.
| Input | Type | About |
|---|---|---|
collection | one of: weddings, birthdays, baby, religious, home, corporate, parties, memorial, national | Only this collection; leave out for all of them. |
get_pricing
No sign-inRead-onlyGet 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.
| Input | Type | About |
|---|---|---|
functions | integer 1–50 | How 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. |
invitations | integer 1–1000 | How many separate invitations to publish in the next 12 months; gets the cheapest plan. |
start_invitation_link
No sign-inRead-onlyStart an invitation with these details
Makes a link that opens one design in FunctionCard's editor with the person's own names, date, time and venue already filled in (from a sentence or separate fields), optionally in another language. The person signs in, then edits freely; designing is free and publishing is paid on the website. The details are sealed inside the link and nothing is saved until the person opens it. The link works for 7 days.
| Input | Type | About |
|---|---|---|
design * | string | the design's slug or page address (from search_designs) |
language | string | open the design in this language: a code or name, e.g. hi, Marathi, தமிழ் |
description | string | the 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 |
names | array of string | who is hosting or celebrating, e.g. ["Priya", "Rahul"]; overrides the description |
date | string | the main date, YYYY-MM-DD; the design's other functions keep their spacing |
time | string | start time, HH:MM 24-hour |
venue | string | |
city | string |
my_account
Sign-in · invitationsRead-onlyMy 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-onlyList 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.
| Input | Type | About |
|---|---|---|
status | one of: all, draft, live (default "all") | draft = not paid yet; live = published |
limit | integer 1–50 (default 20) | |
offset | integer 0–9007199254740991 (default 0) |
get_invitation
Sign-in · invitationsRead-onlyGet 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.
| Input | Type | About |
|---|---|---|
id * | string | the invitation id from list_my_invitations (or its editor or dashboard address) |
create_invitation_draft
Sign-in · invitationsWritesStart 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).
| Input | Type | About |
|---|---|---|
design | string | the design's slug or page address; leave out for a blank card |
size | one of: story, card, square | for a blank card: story (phone), card (5 × 7) or square |
language | string | make the design in this language: a code or name, e.g. hi, Marathi |
detailSetId | string | one of the person's saved detail sets (my_account) |
description | string | the 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 |
names | array of string | who is hosting or celebrating, e.g. ["Priya", "Rahul"]; overrides the description |
date | string | the main date, YYYY-MM-DD; the design's other functions keep their spacing |
time | string | start time, HH:MM 24-hour |
venue | string | |
city | string |
publish_link
Sign-in · invitationsRead-onlyHow to publish an invitation
For one of the person's invitations: whether it is already paid and live, and if not, the plan and price to publish it, and the page where the person publishes and pays on the website (a Family or Business plan with invitations left publishes it at no extra cost). It never publishes or charges anything itself. Read-only.
| Input | Type | About |
|---|---|---|
id * | string | the invitation id from list_my_invitations |
list_guests
Sign-in · guestsRead-onlyList 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.
| Input | Type | About |
|---|---|---|
id * | string | the invitation id from list_my_invitations |
limit | integer 1–200 (default 50) | |
offset | integer 0–9007199254740991 (default 0) |
add_guests
Sign-in · guestsWritesAdd 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.
| Input | Type | About |
|---|---|---|
id * | string | the 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: trueand a sentence the model can act on. - Protocol errors use JSON-RPC codes:
-32700parse,-32600invalid request,-32601unknown method,-32602invalid params,-32020header mismatch,-32022unsupported 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.