Skip to main content
Glama

SmartCustomerSupportMCP

by precariat365
MIT License
2
  • Linux
  • Apple

智能客服示例

这是一个基于MCP框架的智能客服系统示例项目,用于演示如何构建和部署智能客服应用。

文档:https://mp.weixin.qq.com/s/gz3ZL_3XD8sfxustNQvK2g

功能特点

  • 智能问答服务
  • 人工客服转接
  • 订单信息查询
  • 产品知识库管理

系统要求

  • Python >= 3.10
  • MCP框架 >= 1.6.0

安装

  1. 创建并激活虚拟环境(推荐):
uv venv source .venv/bin/activate # Linux/macOS
  1. 安装依赖:
uv pip install .

使用方法

  1. 运行
  • 以stdio方式运行,需要以--stdio启动
uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support --stdio

or

python start.py --stdio
  • 以sse方式运行,直接启动即可,默认端口9000
uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support

or

python start.py
  1. stdio方式使用inspector:
npx @modelcontextprotocol/inspector uv --directory /opt/apps/python_project/SmartCustomerSupportMCP run mcp-smart-customer-support --stdio
  1. 使用Vscode或Claude等桌面应用
{ "mcpServers": { "SmartCustomerSupportMCP": { "command": "uv", "args": [ "--directory", "/opt/apps/python_project/SmartCustomerSupportMCP", "run", "mcp-smart-customer-support", "--stdio" ] } } }

增加环境变量信息

{ "mcpServers": { "SmartCustomerSupportMCP": { "command": "uv", "args": [ "--directory", "/opt/apps/python_project/SmartCustomerSupportMCP", "run", "mcp-smart-customer-support", "--stdio" ], "env": { "MYSQL_HOST": "192.168.xxx.xxx", "MYSQL_PORT": "3306", "MYSQL_USER": "root", "MYSQL_PASSWORD": "root", "MYSQL_DATABASE": "a_llm", "MYSQL_ROLE": "admin" } } } }

项目结构

src/mcp_smart_customer_support/ ├── __init__.py # 包初始化文件 ├── mcp_server.py # MCP服务器实现 ├── human_customer_service.py # 人工客服处理模块 ├── order_operations.py # 订单操作相关功能 └── product_knowledge.py # 产品知识库管理

作者

ggguo (admin@precariat.tech)

许可证

本项目采用MIT许可证。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

A MCP-based intelligent customer service system that provides smart Q&A, human agent transfer, order inquiries, and product knowledge management.

  1. 功能特点
    1. 系统要求
      1. 安装
        1. 使用方法
          1. 项目结构
            1. 作者
              1. 许可证

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  An MCP server that allows AI assistants to utilize human capabilities by sending requests to humans and receiving their responses through a Streamlit UI.
                  Last updated 4 months ago
                  7
                  42
                  Python
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  A sophisticated MCP server that provides intelligent customer service for a Brazilian retail chain through multiple specialized AI agents that handle product inquiries, sales assistance, customer management, and store operations.
                  Last updated 19 days ago
                  Python

                View all related MCP servers

                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/precariat365/SmartCustomerSupportMCP'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server

                This MCP server does not support inspection