这是一个基于 [ALAPI](https://www.alapi.cn) 的 MCP (Model Control Protocol) 服务器实现,可以通过MCP协议直接调用ALAPI的接口
这是一个基于 ALAPI 的 MCP (Model Control Protocol) 服务器实现,可以通过MCP协议直接调用ALAPI的接口
To install mcp-alapi-cn for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @ALAPI-SDK/mcp-alapi-cn --client claude
#Github
git clone https://github.com/alapi-sdk/mcp-alapi-cn.git
#CNB 国内加速地址
#git clone https://cnb.cool/alapi/mcp-alapi-cn.git
cd mcp-server
go mod tidy
go build
下载对应系统的软件包
Github: https://github.com/ALAPI-SDK/mcp-alapi-cn/releases
CNB(国内加速): https://cnb.cool/alapi/mcp-alapi-cn/-/releases
项目使用以下环境变量:
ALAPI_TOKEN
(必需):ALAPI 的认证令牌,在 token管理 里面创建, 如果不设置,mcp 会启动不了ALAPI_ID
(可选):指定要加载的 API ID,不设置则加载所有 API(实际的API_id 可通过 ALAPI 官网查看,可在我的API里面查询){
"mcpServers": {
"mcp-alapi-cn": {
"command": "C:\\Users\\Administrator\\实际目录\\mcp-alapi-cn.exe",
"env": {
"ALAPI_TOKEN": "xxxx",
"ALAPI_API_ID": "0"
}
}
}
}
名称: MCP-ALAPI-CN
类型: STDIO
命令: C:\\Users\\Administrator\\实际目录\\mcp-alapi-cn.exe
环境变量:
ALAPI_TOKEN=你的token