@theyahia/amocrm-mcp
@theyahia/amocrm-mcp
面向 amoCRM API 的生产级 MCP 服务器。19 个工具涵盖线索、联系人、公司、管道、任务、备注、搜索、事件和未分类线索。支持 OAuth 2.0 自动刷新令牌。速率限制(7 请求/秒)。采用指数退避重试。
安装
npx -y @theyahia/amocrm-mcpRelated MCP server: amocrm-mcp
MCP 配置
添加到你的 Claude Desktop、Cursor 或任何 MCP 客户端配置中:
{
"mcpServers": {
"amocrm": {
"command": "npx",
"args": ["-y", "@theyahia/amocrm-mcp"],
"env": {
"AMOCRM_SUBDOMAIN": "mycompany",
"AMOCRM_ACCESS_TOKEN": "your-access-token",
"AMOCRM_REFRESH_TOKEN": "your-refresh-token",
"AMOCRM_CLIENT_ID": "your-client-id",
"AMOCRM_CLIENT_SECRET": "your-client-secret"
}
}
}
}环境变量
变量 | 必填 | 描述 |
| 是 | 你的 amoCRM 子域名(例如 |
| 是 | OAuth 访问令牌 |
| 否 | OAuth 刷新令牌(在 401 时启用自动刷新) |
| 否 | OAuth 客户端 ID(刷新令牌时必须填写) |
| 否 | OAuth 客户端密钥(刷新令牌时必须填写) |
AMOCRM_DOMAIN也可作为AMOCRM_SUBDOMAIN的别名(向后兼容)。
工具(19)
线索
工具 | 描述 |
| 按筛选条件(管道、状态、查询)搜索并列出线索。嵌入联系人和失败原因。 |
| 按 ID 获取单个线索,包含关联的联系人和目录元素。 |
| 创建一个新线索,包含名称、金额、管道、状态和自定义字段。 |
| 更新线索字段——在阶段之间移动、修改金额、重新分配。 |
联系人
工具 | 描述 |
| 按姓名、电话、电子邮件搜索联系人。 |
| 获取单个联系人及其所有自定义字段。 |
| 创建联系人,包含电话、电子邮件和自定义字段。 |
公司
工具 | 描述 |
| 搜索公司。嵌入关联的线索和联系人。 |
| 创建公司,包含自定义字段。 |
管道
工具 | 描述 |
| 列出所有销售管道及其状态(阶段)。 |
任务
工具 | 描述 |
| 按实体、完成状态、负责人筛选并列出任务。 |
| 创建与线索/联系人/公司关联的任务,并设置截止时间。 |
| 将任务标记为已完成并添加结果文本。 |
未分类线索
工具 | 描述 |
| 列出进入的未分类线索(表单、邮件解析)。 |
| 将未分类线索接收至管道。 |
备注
工具 | 描述 |
| 向任意实体添加备注(common、call_in、call_out、service_message)。 |
搜索
工具 | 描述 |
| 跨线索、联系人和公司的通用搜索。 |
事件
工具 | 描述 |
| 活动日志——状态变更、通话、备注、关联。 |
账户
工具 | 描述 |
| 账户信息、用户、任务类型、amojo 设置。 |
演示提示
销售概览:
“显示‘Sales’管道中当前处于‘Negotiation’阶段的所有线索。包含联系人信息。”
任务管理:
“为线索 #12345 创建跟进电话任务,截止时间为明天上午 10:00。然后列出我所有未完成的任务。”
新客户引导:
“创建联系人‘Ivan Petrov’,电话 +79001234567;然后创建公司‘Petrov Solutions’和线索‘Website Development’,金额为 150,000 RUB,放入主管道。”
OAuth 2.0 设置指南
转到你的 amoCRM 账户设置:
https://YOUR_SUBDOMAIN.amocrm.ru/settings/widgets/创建一个新的集成(外部集成)
将重定向 URI 设置为
https://YOUR_SUBDOMAIN.amocrm.ru复制客户端 ID和客户端密钥
授权该集成以获取初始授权码
用该授权码换取令牌:
curl -X POST https://YOUR_SUBDOMAIN.amocrm.ru/oauth2/access_token \
-H "Content-Type: application/json" \
-d '{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"grant_type": "authorization_code",
"code": "YOUR_AUTH_CODE",
"redirect_uri": "https://YOUR_SUBDOMAIN.amocrm.ru"
}'保存响应中的
access_token和refresh_token如果设置了
AMOCRM_REFRESH_TOKEN、AMOCRM_CLIENT_ID和AMOCRM_CLIENT_SECRET,服务器将自动刷新过期的令牌。
错误处理
401 未授权:如果配置了刷新凭据,则自动刷新令牌,然后重试。
429 请求过多:遵循
Retry-After响应头,等待并重试。5xx 服务器错误:指数退避重试(最多 3 次)。
速率限制:内置 150ms 请求间隔(约 7 请求/秒),以保持在 amoCRM 限制范围内。
开发
git clone https://github.com/theYahia/amocrm-mcp.git
cd amocrm-mcp
npm install
npm run build
npm test许可证
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Dialpad's tools and services through a unified API, allowing users to manage communications via natural language.MIT
- AlicenseBqualityDmaintenanceEnables users to interact with AmoCRM via Claude Desktop using natural language, with 17 tools for accessing CRM entities like leads, contacts, and pipelines.181MIT
- AlicenseCqualityDmaintenanceEnables AI agents to manage Kommo CRM (formerly AmoCRM) entities including leads, contacts, companies, tasks, notes, pipelines, and products through natural language commands via the Model Context Protocol.39151MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for amoCRM integration, enabling AI assistants to manage leads, contacts, companies, tasks, and more via natural language.3MIT
Related MCP Connectors
Manage projects, tasks, time tracking, and team collaboration through natural language.
Streamline your Attio workflows using natural language to search, create, update, and organize com…
An AI-first personal CRM you run in natural language: contacts, reminders, notes, and more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theYahia/amocrm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server