localtry-mcp
Remote MCP server for operating a LocalTry CRM with plain-language instructions, enforcing tenant isolation via OAuth-bound connections. Enables searching and managing customers, companies, contacts, leads, jobs, estimates, invoices, and workspace customizations.
README
LocalTry MCP
Use LocalTry from ChatGPT and other MCP clients while keeping every business strictly isolated.
LocalTry MCP is a remote Model Context Protocol server for operating a LocalTry CRM with plain-language instructions. It runs on Cloudflare Workers, uses OAuth 2.1, and binds every connection to one verified LocalTry user, business, role, and permission set.
What it enables
- Search customers, companies, contacts, leads, jobs, estimates, and invoices.
- Create and update validated CRM records.
- Inspect the complete tenant workspace architecture.
- Plan and apply tenant-only workspace customizations.
- Run saved workflows.
- Ask LocalTry Command to carry out multi-step business operations.
- Review customization versions and restore an earlier version.
- Read a tenant-scoped activity and audit history.
Available tools
| Tool | Purpose |
|---|---|
get_workspace_overview |
Inspect the connected business's pages, modules, fields, workflows, integrations, and customization history. |
search_crm |
Search tenant-scoped CRM records without exposing raw SQL. |
create_or_update_crm_record |
Create or update a validated CRM record. |
plan_workspace_change |
Create a versioned customization plan without applying it. |
apply_workspace_change |
Apply an explicitly approved plan to the connected workspace only. |
list_workspace_versions |
Review the workspace's customization history. |
restore_workspace_version |
Restore an approved earlier version for the connected workspace. |
run_workflow |
Run one of the business's saved workflows. |
run_localtry_command |
Use LocalTry Command for verified, multi-step CRM and business operations. |
get_recent_activity |
Review recent CRM, workflow, and customization activity. |
The tenant boundary
There is one shared MCP service, but every authorization is logically private. The client cannot supply or change a tenant identifier.
MCP client
-> LocalTry OAuth consent
-> token bound to user + business + role + scopes
-> LocalTry MCP Worker
-> private Cloudflare service binding
-> LocalTry domain services
-> business-scoped data and workspace runtime
The MCP Worker does not receive a database binding. It can reach LocalTry only
through the private service contract in
docs/localtry-bridge-contract.md.
Remote endpoint
The production endpoint is live:
https://mcp.localtry.com/mcp
Health check:
https://mcp.localtry.com/health
Clients discover OAuth 2.1 metadata automatically. Authorization supports PKCE, dynamic client registration, short-lived access tokens, and refresh tokens. Users sign in to LocalTry and approve one visible workspace; no LocalTry API key is copied into the MCP client.
Local development
Requirements: Node.js 20 or newer and a Cloudflare account.
npm install
npm run types
npm run check
npm run dev
Create an OAuth KV namespace and replace the placeholder namespace ID in
wrangler.jsonc:
npx wrangler kv namespace create OAUTH_KV
The LOCALTRY_API service binding must point to the named
LocalTryMcpBridge WorkerEntrypoint exported by the LocalTry CRM deployment.
See the bridge contract for the exact trust boundary.
ChatGPT
ChatGPT supports remote MCP apps through developer mode. See
docs/chatgpt.md for the connection flow and current plan
requirements. Creating a private custom app connects this server to a ChatGPT
account or workspace; publishing in the public ChatGPT app directory is a
separate OpenAI review process.
The non-secret public-review listing, starter prompts, test cases, and release
notes are maintained in
docs/openai-submission.md.
Design principles
- No raw SQL tool.
- No tenant ID tool argument.
- No secret-reading tool.
- Goal-oriented tools instead of mirroring the entire API.
- Explicit approval for consequential workspace changes.
- Versioning, audit events, and restore support.
- Permission checks in both the MCP Worker and the CRM domain layer.
Status
Production is deployed at mcp.localtry.com. OAuth authorization, refresh
tokens, MCP initialization, tool discovery, tenant binding, and a live workspace
read have been verified end to end. The public Worker reaches the CRM only
through a private Cloudflare service binding and has no database binding.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器