Customer-Try
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Customer-TryDo you have any blue Honda Civic in stock?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Customer-Try — Dify 智能汽车销售客服 Demo
基于 Dify Chatflow/Workflow + MCP Server 的智能汽车销售客服系统。支持多轮对话、本地库存查询、知识库检索、实拍照片展示。
架构
┌─────────────────┐ HTTP/SSE ┌──────────────────┐
│ Dify (Docker) │ ←───────────────→ │ MCP Server │
│ │ │ (9020端口) │
│ Chatflow/ │ │ inventory 查询 │
│ Workflow │ │ stock 检查 │
│ + 知识库 │ │ price 报价 │
│ + LLM │ └────────┬─────────┘
└────────┬────────┘ │
│ │ SQLite
│ Chat API ▼
│ ┌──────────────────┐
▼ │ company_inventory │
┌─────────────────┐ │ .db │
│ FastAPI │ │ │
│ (7860端口) │ │ 品牌/车型/配置 │
│ 代理转发 + │ │ 价格/库存/颜色 │
│ 聊天UI │ │ 实拍照片路径 │
│ + 图片服务 │ └──────────────────┘
└────────┬────────┘
│
▼
用户浏览器
http://127.0.0.1:7860Related MCP server: MCP Carvana
快速开始
1. 环境要求
Python 3.11+
Conda 环境
customerDocker Desktop(运行 Dify)
2. 安装依赖
conda activate customer
pip install fastapi uvicorn httpx mcp3. 初始化数据库
python init_company_db.py数据库 company_inventory.db 包含 8 条示例车辆数据,可按需修改。
4. 启动服务
需要两个终端窗口:
终端 1 — FastAPI + 聊天 UI(7860 端口)
conda activate customer
python main.py
# → http://127.0.0.1:7860终端 2 — MCP Server(9020 端口)
conda activate customer
python mcp_server.py
# → http://127.0.0.1:9020/sse5. 配置 Dify
连接 MCP Server:
Dify → 插件 → MCP SSE/StreamableHTTP → 设置
填入:
{"car-tools":{"url":"http://host.docker.internal:9020/sse","headers":{},"timeout":50,"sse_read_timeout":50}}授权
Workflow 中使用 MCP 工具:
在 Workflow 画布添加「调用 MCP 工具」节点:
字段 | 值 |
工具名称 |
|
参数 |
|
MCP 工具
工具 | 参数 | 说明 |
|
| 关键词搜索公司库存(自动检测品牌/车型) |
|
| 精确查询某款车库存和价格 |
|
| 获取最优报价 |
返回值带前缀标记:
[STOCK:AVAILABLE]— 有库存[STOCK:EMPTY]— 无库存
数据库结构
company_inventory.db → inventory 表:
字段 | 类型 | 说明 |
brand | TEXT | 品牌 |
model | TEXT | 车型 |
variant | TEXT | 具体配置款 |
year | INTEGER | 年款 |
price_guide | REAL | 指导价(万元) |
price_sale | REAL | 实际售价(万元) |
stock | INTEGER | 库存数量 |
fuel_type | TEXT | 能源类型(纯电/插混/增程) |
color | TEXT | 可选颜色 |
description | TEXT | 车辆简介 |
photo_path | TEXT | 实拍照片文件名(放入 photos/ 目录) |
添加车辆照片
将照片放入
photos/目录更新数据库
photo_path字段为文件名重启 MCP Server
图片通过 FastAPI 静态文件服务访问:http://127.0.0.1:7860/photos/xxx.jpg
知识库
项目包含以下知识库文档,可导入 Dify 知识库:
knowledge_base/购车引导话术.md— 销售引导流程knowledge_base/模糊语义情绪处理话术.md— 模糊表达和情绪处理knowledge_base/汽车百科知识库.md— 汽车信息百科scrape/car_data.md— 网易汽车爬取的 2849 款车数据scrape/car_data.json— 结构化车辆数据
项目文件
customer-try/
├── main.py # FastAPI 后端 + 聊天 UI 代理
├── mcp_server.py # MCP Server(库存查询工具)
├── init_company_db.py # 数据库初始化脚本
├── company_inventory.db # SQLite 数据库
├── templates/
│ └── index.html # 聊天界面
├── photos/ # 车辆实拍照片
├── knowledge_base/ # 知识库文档
└── scrape/ # 车辆数据爬虫
├── scraper.py # 爬虫脚本
├── car_data.json # 2849 款车数据
└── car_data.md # Markdown 格式License
MIT
This server cannot be installed
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
- Flicense-qualityDmaintenanceA customer service MCP server that enables order lookup by phone number and store location queries by coordinates. Supports Excel data import and provides comprehensive customer service tools for order management and store information retrieval.
- AlicenseAqualityDmaintenanceAn MCP server that integrates with the Carvana marketplace to enable vehicle searching, financing estimation, and trade-in value assessments. It allows AI assistants to retrieve detailed vehicle information, history reports, and market insights directly from Carvana's inventory.10111MIT
- Alicense-qualityCmaintenanceMCP server for insurance claim pilot tools, providing policy search, claim lookup, and fraud score calculation.MIT
- Alicense-qualityDmaintenanceMCP server that enables AI assistants to search for rental cars, query prices, and access map services using the AMAP API.161MIT
Related MCP Connectors
MCP server for CarsXE vehicle data: VIN, specs, history, images, recalls, and OBD codes.
MCP Server for agents to onboard, pay, and provision services autonomously with InFlow
An MCP Server that provides identity verification and anti-fraud tools for AI agents via deepidv.
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/cheng180/MCP-Customer-Agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server