
MCP Coze Server

2025.04.10
0
PythonCoze API 交互其它
coze-mcp-server 是一个为 Coze API 实现的 MCP 服务器。它提供了与 Coze API 交互的能力,支持通过环境变量或命令行参数进行配置。
View on GitHub
Overview
基本能力
产品定位
coze-mcp-server 是一个为 Coze API 实现的 MCP 服务器,主要用于与 Coze API 进行交互。
核心功能
- 支持通过环境变量或命令行参数配置 Coze API 的访问令牌和 API 地址。
- 提供简单的服务器运行功能,方便用户快速启动服务。
适用场景
- 需要与 Coze API 进行交互的开发场景。
- 快速搭建本地服务以测试 Coze API 的功能。
工具列表
pip
: 用于安装 Python 包。git
: 用于克隆代码仓库。
常见问题解答
- 如何设置环境变量?
通过
export
命令设置环境变量,例如export COZE_API_TOKEN="your_api_token"
。 - 如何运行服务器?
使用命令
python -m mcp_coze_server
运行服务器。
使用教程
使用依赖
- 安装 Python 包管理工具
pip
。 - 安装
git
用于克隆代码仓库。
安装教程
- 从 PyPI 安装包:
pip install mcp-coze-server
- 安装额外的依赖:
pip install cozepy @ git+https://github.com/shizeying/[email protected]
或者从源码安装:
git clone https://github.com/shizeying/coze-mcp-server.git
cd coze-mcp-server
pip install -r requirements.txt
pip install -e .
调试方式
- 设置环境变量:
export COZE_API_TOKEN="your_api_token"
export COZE_API_BASE="https://api.coze.cn" # 或其他API地址
- 运行服务器:
python -m mcp_coze_server