FavCRM MCP
Client setup and examples for the FavCRM Model Context Protocol server. Use
https://api.favcrm.io/mcp/oauthfor workspace OAuth orhttps://api.favcrm.io/mcpfor API keys.
Connect eligible booking and CRM operations through remote Streamable HTTP. The available tools depend on the grant and workspace.
The API-key endpoint (/mcp) supports tool profiles selected with ?profile=<name> or X-FavCRM-MCP-Profile:
compactexposes a smallsearch_tools+execute_tooldiscovery/router surface for large-agent runtimes.platformexposes only superadmin customer-workspace and company-setup operations, works without an active merchant company, and never exposes raw SQL.fullremains the default for clients and scanners.
Platform operators can start from the dedicated Cursor or Claude Desktop configuration. Ordinary merchant API keys cannot access platform tools.
π€ AI Agent Skills
Building against the FavCRM headless backend with an AI Agent? Teach your AI our best practices, standard operating procedures, and MCP tool shapes by installing our official skills:
# Example: Install the Booking Operator skill
npx skills add https://github.com/favcrm/mcp/tree/main/skills/favcrm-booking-operator
# Or install all skills at once
npx skills add favcrm/mcp
See the skills/ directory for the full list of available agent skills.
Public agent skills live in skills/: portable workflow packages for agentic registration, team onboarding, channel setup, booking operations, customer lifecycle, comms approval, billing/commerce, content, sales ops, knowledge training, and reporting. They are source-readable for agents and marketing, while FavCRM runtimes install vetted versions through the platform skill registry.
| Client | Status | Setup |
|---|---|---|
| Vercel v0 | β Live | Marketplace install β auto-provisions a workspace + injects env vars |
| Cursor | β Live | mcp.json snippet |
| Glama | β Live | Glama MCP connector (io.favcrm/favcrm) |
| Claude Desktop / Web | Hosted connection unverified | Vendor setup notes |
| ChatGPT Web | Hosted connection unverified | Vendor setup notes |
| Windsurf / Continue.dev / Zed | β Works | Same mcp.json shape as Cursor |
Workspace OAuth
Connect a remote Streamable HTTP MCP client to https://api.favcrm.io/mcp/oauth.
An active owner or administrator selects the workspace and individual permissions
in the browser. Nothing is selected for a new connection. Tools are limited by
the grant and existing workspace and actor policies; Booking Lite does not
expose general CRM operations. Use the workspace OAuth guide.
The read-only OAuth flow was tested in production with omp. A successful tool
call from omp does not verify a hosted connector.
Existing /mcp/oauth/view, /mcp/oauth/manage, /mcp/oauth/merchant and
/mcp/oauth/crm connections retain their audiences during migration.
Reconnect with fresh consent at the new URL; do not copy tokens across endpoints.
Workspace-bound connection keys use the general /mcp transport with the
scope selected at creation. OAuth connections do not consume API-key slots.
Both are subject to workspace call quotas.
See the agent-operated setup guide for host-specific guidance, sign-in, verification and revocation.
Get a key
Two ways:
Option A β your agent signs you up (no form, no portal click)
Connect FavCRM to your client first (see Cursor section below) using a placeholder env var. Then ask your agent:
"Sign me up for FavCRM. Yoga studio called Stretch + Breathe in Hong Kong."
The agent will:
- Call
register_organisation_requestβ server emails a 6-digit code to you - You paste the code back in chat
- Agent calls
register_organisation_verifyβ server returns a freshfav_mcp_*key - Agent stores the key and starts working immediately
See skills/favcrm-agentic-registration for the portable SKILL.md workflow.
Behind the scenes: 10-min OTP, real email-ownership check, per-IP rate limit (3/hour, 20/day). No phishing surface, no fake demos.
Option B β sign up the traditional way
app.favcrm.io/register β workspace β Settings β MCP Keys β copy the fav_mcp_* value.
Existing FavCRM merchants: same place, no plan upgrade needed for Read-Only MCP access.
Free Starter tier (both options): US$0 / month forever (up to 250 client records, no credit card required) with eligible read permissions on the unified OAuth endpoint.
Bootstrap from the CLI
The favcrm CLI can also run the zero-state flow:
favcrm signup request --email owner@example.com --organisation-name "Ada Studio"
favcrm signup verify --request-id <request-id> --code <code>
favcrm doctor
favcrm team invite create --email teammate@example.com --role staff
favcrm whatsapp status
favcrm whatsapp connect --mode cloud-api
Team invitees can accept without an existing API key:
favcrm team invite accept-request --token <invite-token>
favcrm team invite accept-verify --token <invite-token> --code <code>
Cursor
Verified shape, cursor.com/docs/mcp.
~/.cursor/mcp.json (or .cursor/mcp.json in your project):
{
"mcpServers": {
"favcrm": {
"url": "https://api.favcrm.io/mcp",
"headers": {
"Authorization": "Bearer ${env:FAVCRM_API_KEY}"
}
}
}
}
Then export the key β anywhere your Cursor process reads env vars:
# shell rc
echo 'export FAVCRM_API_KEY=fav_mcp_...' >> ~/.zshrc
# or per-project (direnv)
echo 'export FAVCRM_API_KEY=fav_mcp_...' >> .envrc
Restart Cursor β Settings β MCP β favcrm connects β 231 tools land in chat.
Why
${env:VAR}instead of inline? Cursor interpolates env vars at request time so the key never lands in your repo or shared config.
Glama & Official MCP Registry
io.favcrm/favcrm is listed as an active Streamable HTTP connector on Glama and in the Official MCP Registry. Use the discovery manifest at https://favcrm.io/.well-known/mcp.json or connect https://api.favcrm.io/mcp directly in your MCP client.
Specs & Discovery
https://favcrm.io/en/ai-agents/β OAuth 2.1 MCP overview, resource scopes, and Approval Guardhttps://favcrm.io/en/guides/connect-your-ai-agent/β Setup guide for Claude Desktop, ChatGPT, and Cursorhttps://favcrm.io/llms.txtβ Concise AI & LLM documentation indexhttps://favcrm.io/.well-known/mcp.jsonβ Machine-readable MCP server discovery manifesthttps://favcrm.io/.well-known/agent-skills/index.jsonβ Verified Agent Skills discovery index (v0.2.0)
Claude Desktop
π§ The general 231-tool server is not in Anthropic's connector directory yet. For a
Booking Lite workspace, the OAuth resources are live now: add a custom connector in
Claude with the view or manage URL, then sign in and choose the workspace. Follow the
canonical guide β favcrm.io/docs/simply-booking-mcp.md.
That guide is provider-documented setup for Claude, but the FavCRM connection itself
has not been verified end to end by us.
For the general server, advanced users can wire FavCRM into Claude Desktop's
claude_desktop_config.json via the same Bearer-header pattern as Cursor
(community-only path; not currently in Anthropic's connector directory).
ChatGPT
π§ Apps Directory listing under review. Once approved:
- ChatGPT β Tools menu β Apps β search "FavCRM"
- Add β OAuth handshake β workspace selector
- 26 curated tools land in chat (read-mostly + safe writes; destructive ops gated behind confirmation)
Test it
Once your config is live, ChatGPT/Cursor/Claude will list tools automatically. To smoke-test from the command line:
# Discovery (no auth needed β public-scan endpoint)
curl https://api.favcrm.io/.well-known/mcp/server-card.json | jq '.tools | length'
# β 231
# Auth + initialize
curl -s https://api.favcrm.io/mcp \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer $FAVCRM_API_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}' \
| jq
# Call a read-only tool
curl -s https://api.favcrm.io/mcp \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Authorization: Bearer $FAVCRM_API_KEY" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"list_membership_tiers","arguments":{}}}' \
| jq
See examples/ for more.
Tool surface
231 tools across 28 scopes. Every tool ships with annotations:
titleβ human-readable labelreadOnlyHintβtrueforlist_*/get_*/search_*/ etc.destructiveHintβtruefordelete_*/cancel_*/void_*/refund_*openWorldHintβtruefor tools that hit external services (WhatsApp, Stripe, email)idempotentHintβtrueforset_*/update_*/upsert_*and read-only
Clients can use these to gate destructive calls or estimate cost. The full catalog at https://api.favcrm.io/.well-known/mcp/server-card.json is the source of truth β listings here are summaries only.
Agents working from a compact or context-sensitive tool set should use search_tools to discover operations, then execute_tool to run the selected tool. Use query_favcrm_platform for platform docs before guessing behavior or argument shapes. For merchant-specific facts, policies, pricing notes, FAQs, or brand guidance, use query_company_knowledge; it returns snippets with source document IDs rather than full documents.
| Scope | Sample tools | Read-only | Write |
|---|---|---|---|
contacts | search_members, get_member_profile, create_account, attach_tags | 5 | 6 |
customer_segments | list_segments, preview_segment_count, set_segment_members | 4 | 4 |
custom_fields | list_custom_fields, create_custom_field, set_custom_field_values | 3 | 4 |
bookings | list_services, get_available_slots, create_booking | 12 | 15 |
events | list_event_registrations, get_event_campaign_exclusions | 2 | 0 |
membership | list_tiers, enrol_membership, earn_loyalty_points | 4 | 3 |
shop | list_products, get_order, create_order | 8 | 6 |
invoices | list_invoices, mark_invoice_paid | 4 | 4 |
campaigns | list_campaigns, send_campaign (gated) | 5 | 3 |
blog | list_posts, publish_post | 14 | 13 |
Superadmin platform tools use a separate scope family:
| Scope | Capability |
|---|---|
platform:customer_setup | Search/create customer workspaces and configure company setup |
platform:catalog | Manage global plan, module, and AI-media catalogs in the full profile |
platform:sql_read | Break-glass SELECT/EXPLAIN access in the full profile |
platform:sql_write | Break-glass DML access in the full profile |
platform:* | All platform capabilities; reserve for controlled internal operators |
SQL scopes must be explicit, and SQL tools remain unavailable in the platform profile even with platform:*.
Agent Issue Reports
Agents should call report_agent_issue when an MCP-native path is missing, a tool schema is confusing, a tool fails unexpectedly, or they had to fall back to REST/SDK behavior. Include expected behavior, actual behavior, steps tried, relevant tool calls/logs, AI analysis, and clarification questions. FavCRM routes these reports to the platform support queue for triage.
Example:
favcrm tool call report_agent_issue '{"title":"Missing account creation MCP tool","severity":"high","area":"mcp_tool_missing","expectedBehavior":"Agent can create an account via MCP only.","actualBehavior":"Agent had to use SDK fallback.","stepsTried":["Listed tools","Tried create_contact"],"aiAnalysis":"Account creation exists in backend services but was not exposed in MCP."}'
Plan operations
Agents can inspect and preflight plan access without leaving MCP:
favcrm tool call get_plan_status '{}'
favcrm tool call check_plan_operation '{"toolName":"create_account"}'
favcrm tool call list_plan_options '{}'
favcrm tool call create_plan_upgrade_link '{"planCode":"favcrm-lite","billingCycle":"monthly","confirm":true}'
Use check_plan_operation before writes that may hit module, scope, subscription, or quota gates. If the result includes upgradeAction, show the user the returned action. Stripe links are only created by create_plan_upgrade_link with confirm=true.
Auth modes
| Token kind | Lifetime | Use case |
|---|---|---|
fav_mcp_* API key | Long-lived, revocable | Cursor, Windsurf, Zed, Continue.dev, scripts |
fav_v0_* partner token | Per-Vercel-project, scoped | v0 / Vercel install only |
| Workspace OAuth bearer (15-min JWT + 30-day refresh) | Short-lived | Remote assistants and custom clients using https://api.favcrm.io/mcp/oauth |
| OTP-issued JWT (60 min) | Short-lived | Interactive humans (merchant portal exchange) |
Marketplace tokens (fav_v0_*, OAuth-issued) are hard-blocked from superadmin tools (raw SQL, plan management) regardless of underlying scopes β defence in depth at the request layer, not just per-token RBAC.
Pricing
| Plan | USD (/en/pricing/) | HKD (/zh-hk/pricing/) | Included Limits & MCP Access |
|---|---|---|---|
| Starter | US$0 / mo forever | β | Up to 250 client records Β· contacts, deals, tasks, CSV/Calendly import Β· eligible read permissions on workspace MCP |
| Simply Booking | US$20 / mo (US$200/yr) | HK$180 / mo (HK$1,800/yr) | 1-month free trial (no card at signup) Β· up to 3 staff & 10 services Β· Branded Client Portal & deposit tracking Β· selectable booking permissions on workspace MCP Β· 0% FavCRM booking commission |
| FavCRM Pro | US$29 / mo (US$290/yr) | HK$580 / mo (HK$5,800/yr) | Up to 5 team members Β· Memberships, Prepaid Session Packs & Loyalty Β· Official WhatsApp Business API inbox ($0 markup on Meta template rates) Β· eligible CRM and booking permissions on workspace MCP + Approval Guard |
| Venue Pro / Multi-Outlet POS | Custom quote | Custom quote | 24/7 QR venue hardware access or multi-branch digital Wallet & Eats365 POS loyalty |
Full breakdown: favcrm.io/en/pricing/ Β· favcrm.io/zh-hk/pricing/ Β· machine-readable spec at favcrm.io/pricing.md.
Issues / contributions
- Bugs in tool behaviour or MCP transport: open an issue here.
- Examples for a new client (Cline, Replit Agent, Roo, etc.): PRs welcome under
examples/. - Agent workflow skills: PRs welcome under
skills/. - Contribution guidelines:
CONTRIBUTING.md. - Security reports: please follow
SECURITY.md; do not open public vulnerability issues. - Server bugs / new tool requests / commercial questions: dev@favcrm.io.
Links
- favcrm.io/en/ Β· favcrm.io/zh-hk/ β English & Hong Kong homepages
- favcrm.io/en/guides/connect-your-ai-agent/ Β· favcrm.io/docs/simply-booking-mcp.md Β· Vercel Marketplace β Claude Desktop, ChatGPT, Cursor & Vercel setup guides
- favcrm.io/en/ai-agents/ Β· favcrm.io/llms-full.txt β AI & MCP architecture + single-file LLM reference
- favcrm.io/en/pricing/ Β· favcrm.io/pricing.md β pricing matrix & machine-readable spec
- favcrm.io/privacy-policy/ Β· favcrm.io/terms-of-use/
Brand assets
Marketplace-ready 1:1 icons with background plate, in assets/:
| File | Use |
|---|---|
assets/icon.png | 512Γ512 PNG β Cursor / Glama / Official MCP Registry listing |
assets/favcrm-icon-256-dark.svg | 1:1 SVG, ink plate, light glyph β most marketplaces |
assets/favcrm-icon-256-light.svg | 1:1 SVG, canvas plate, ink glyph β light-themed UIs |
assets/favcrm-icon-256-dark.png | 256Γ256 PNG fallback |
All icons are 1:1 aspect ratio with rounded-square plate (48px corner radius on 256-unit grid) and centered "fav." wordmark glyph.
License
This repo (docs + examples) is MIT β see LICENSE. The hosted MCP server is proprietary FavCRM SaaS; install requires a FavCRM account.