MCP Server
Connect agents to the CRM via Model Context Protocol.
MCP Server
La Crypta CRM exposes a remote MCP server at https://crm.lacrypta.ar/api/mcp so agents (Grok Bot, Cursor, Claude Code, MCP Inspector, or other Streamable HTTP clients) can query events, orders, attendance, and contacts from your organization.
Authentication
The server requires an organization API key with read permission. Authentication is API-key-only — no OAuth flows.
Create an API key
- Open your organization's Dashboard
- Go to Settings → API Keys
- Create a new key with
readpermission - Copy the secret (
lcr_live_<prefix>_<secret>) — it's only shown once
Accepted headers
The server accepts the secret in either of these headers (but not both at once):
Authorization: Bearer lcr_live_<prefix>_<secret>X-API-Key: lcr_live_<prefix>_<secret>The Bearer scheme is case-insensitive per RFC 7235.
Client configuration
Generic configuration (JSON)
{
"mcpServers": {
"la-crypta-crm": {
"url": "https://crm.lacrypta.ar/api/mcp",
"headers": {
"Authorization": "Bearer lcr_live_<prefix>_<secret>"
}
}
}
}Grok Bot
- Open Settings → Connectors in Grok Bot
- Add a Custom MCP connector
- URL:
https://crm.lacrypta.ar/api/mcp - Add a static header:
Authorization: Bearer lcr_live_<prefix>_<secret> - Save the secret in the bot's vault — never paste it in group chats
Cursor
Add the configuration to your MCP settings file (~/.cursor/mcp.json or project-level):
{
"mcpServers": {
"la-crypta-crm": {
"url": "https://crm.lacrypta.ar/api/mcp",
"headers": {
"Authorization": "Bearer lcr_live_<prefix>_<secret>"
}
}
}
}Claude Code
Use the --header flag:
claude mcp add la-crypta-crm \
--transport http \
--url https://crm.lacrypta.ar/api/mcp \
--header "Authorization: Bearer lcr_live_<prefix>_<secret>"mcp-remote bridge
For clients that only support stdio (local) transports:
npx mcp-remote --header "Authorization: Bearer lcr_live_..." https://crm.lacrypta.ar/api/mcpMCP Inspector
npx @modelcontextprotocol/inspector \
--cli https://crm.lacrypta.ar/api/mcp \
--transport http \
--header "Authorization: Bearer lcr_live_<prefix>_<secret>" \
--method tools/listAvailable tools
All tools are read-only and return JSON.
| Tool | Description |
|---|---|
whoami | Authenticated organization and API key info |
list_events | List events (filter by status: draft/published/cancelled/completed, search by name) |
get_event | Event details by ID |
get_event_overview | Event + first attendees |
get_attendance_stats | Stats: approved, waitlist, checked-in, paid, pending, expired, free |
list_orders | Event orders (search by buyer/coupon, filter by payment status: paid/pending/none/expired) |
get_order | Order details with tickets |
search_contacts | Search contacts by name, email, or phone |
Usage example
Once connected, try:
→ whoamiThe agent should respond with your organization's slug and name.
→ list_eventsReturns your organization's events sorted by date.
Discoverability
The server is self-discoverable:
- Server card:
/.well-known/mcp.json - LLMs.txt:
/llms.txt
Security
- API keys are organization-scoped: they only see that org's data
- The
readpermission enables themcp:readscope - No secrets (LN preimages, ticket bearer tokens, etc.) are exposed
- Sensitive fields like
ticket_codeare stripped from order items
Data disclosure
Tool responses are sent to the agent's LLM provider (e.g., Anthropic, OpenAI, xAI) for processing. Contact emails and phone numbers visible in the dashboard are included in tool responses. Only grant API keys to agents/providers you trust with this data.
Rate limits
The server enforces a rate limit of 120 requests per minute per API key. Exceeding the limit returns 429 Too Many Requests with a Retry-After header indicating when to retry.
Common errors
401 Unauthorized
- The API key is invalid, expired, or revoked
- Missing authentication header
- Incorrect secret format
- Both
AuthorizationandX-API-Keyheaders provided (ambiguous)
403 Forbidden
- The API key lacks
readpermission
429 Too Many Requests
- Rate limit exceeded — wait and retry (see
Retry-Afterheader)
Event/Order not found
- The ID doesn't exist or belongs to another organization