FavCRM README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the FavCRM listing page.

FavCRM MCP

FavCRM MCP server

Client setup and examples for the FavCRM Model Context Protocol server. Use https://api.favcrm.io/mcp/oauth for workspace OAuth or https://api.favcrm.io/mcp for 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:

  • compact exposes a small search_tools + execute_tool discovery/router surface for large-agent runtimes.
  • platform exposes only superadmin customer-workspace and company-setup operations, works without an active merchant company, and never exposes raw SQL.
  • full remains 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:

bash
# 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.

ClientStatusSetup
Vercel v0βœ… LiveMarketplace install β€” auto-provisions a workspace + injects env vars
Cursorβœ… Livemcp.json snippet
Glamaβœ… LiveGlama MCP connector (io.favcrm/favcrm)
Claude Desktop / WebHosted connection unverifiedVendor setup notes
ChatGPT WebHosted connection unverifiedVendor setup notes
Windsurf / Continue.dev / Zedβœ… WorksSame 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:

  1. Call register_organisation_request β€” server emails a 6-digit code to you
  2. You paste the code back in chat
  3. Agent calls register_organisation_verify β€” server returns a fresh fav_mcp_* key
  4. 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:

bash
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:

bash
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):

config.json
{
  "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:

server.ts
# 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


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:

  1. ChatGPT β†’ Tools menu β†’ Apps β†’ search "FavCRM"
  2. Add β†’ OAuth handshake β†’ workspace selector
  3. 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:

bash
# 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 label
  • readOnlyHint β€” true for list_* / get_* / search_* / etc.
  • destructiveHint β€” true for delete_* / cancel_* / void_* / refund_*
  • openWorldHint β€” true for tools that hit external services (WhatsApp, Stripe, email)
  • idempotentHint β€” true for set_* / 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.

ScopeSample toolsRead-onlyWrite
contactssearch_members, get_member_profile, create_account, attach_tags56
customer_segmentslist_segments, preview_segment_count, set_segment_members44
custom_fieldslist_custom_fields, create_custom_field, set_custom_field_values34
bookingslist_services, get_available_slots, create_booking1215
eventslist_event_registrations, get_event_campaign_exclusions20
membershiplist_tiers, enrol_membership, earn_loyalty_points43
shoplist_products, get_order, create_order86
invoiceslist_invoices, mark_invoice_paid44
campaignslist_campaigns, send_campaign (gated)53
bloglist_posts, publish_post1413

Superadmin platform tools use a separate scope family:

ScopeCapability
platform:customer_setupSearch/create customer workspaces and configure company setup
platform:catalogManage global plan, module, and AI-media catalogs in the full profile
platform:sql_readBreak-glass SELECT/EXPLAIN access in the full profile
platform:sql_writeBreak-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:

bash
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:

bash
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 kindLifetimeUse case
fav_mcp_* API keyLong-lived, revocableCursor, Windsurf, Zed, Continue.dev, scripts
fav_v0_* partner tokenPer-Vercel-project, scopedv0 / Vercel install only
Workspace OAuth bearer (15-min JWT + 30-day refresh)Short-livedRemote assistants and custom clients using https://api.favcrm.io/mcp/oauth
OTP-issued JWT (60 min)Short-livedInteractive 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

PlanUSD (/en/pricing/)HKD (/zh-hk/pricing/)Included Limits & MCP Access
StarterUS$0 / mo foreverβ€”Up to 250 client records Β· contacts, deals, tasks, CSV/Calendly import Β· eligible read permissions on workspace MCP
Simply BookingUS$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 ProUS$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 POSCustom quoteCustom quote24/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

Brand assets

Marketplace-ready 1:1 icons with background plate, in assets/:

FileUse
assets/icon.png512Γ—512 PNG β€” Cursor / Glama / Official MCP Registry listing
assets/favcrm-icon-256-dark.svg1:1 SVG, ink plate, light glyph β€” most marketplaces
assets/favcrm-icon-256-light.svg1:1 SVG, canvas plate, ink glyph β€” light-themed UIs
assets/favcrm-icon-256-dark.png256Γ—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.