MCP 服务器
使用 Cloudflare Workers 和 Hono 框架构建的现代 AI 服务代理,支持包括 Anthropic Claude 和 OpenAI 在内的多家 AI 提供商。
特征
多供应商 AI 服务集成(Anthropic Claude、OpenAI)
基于 Cloudflare Workers 构建,用于全球边缘部署
使用 Hono 框架快速高效地处理请求
使用 TypeScript 实现类型安全
CORS 对跨域请求的支持
健康检查和提供商信息端点
先决条件
Node.js(推荐 LTS 版本)
npm 或 pnpm 包管理器
用于部署的 Cloudflare 帐户
受支持的 AI 提供商的 API 密钥
安装
克隆存储库
安装依赖项:
环境设置
复制示例环境文件:
使用您的 API 密钥和首选项在
.env
中配置环境变量
发展
启动开发服务器:
服务器将以开发模式启动并启用热重载。
部署
部署到 Cloudflare Workers:
API 端点
健康检查
GET /health
返回服务器状态和配置
提供商信息
GET /api/provider
返回当前 AI 提供商和模型配置
MCP API
POST /api/mcp
AI 服务请求的主要端点
接受带有上下文、查询和选项的 JSON 负载
项目结构
执照
麻省理工学院
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.
一种现代 AI 服务代理,可通过统一的 API 与多个 AI 提供商(Anthropic Claude、OpenAI)进行交互,并使用 Cloudflare Workers 进行全球部署。
Related MCP Servers
- -securityFlicense-qualityAn open standard server implementation that enables AI assistants to directly access APIs and services through Model Context Protocol, built using Cloudflare Workers for scalability.Last updated -
- -securityFlicense-qualityA Cloudflare Workers-based server implementing the Model Context Protocol that enables AI assistants like Claude to securely access external tools through OAuth authentication.Last updated -14
- -securityFlicense-qualityA Cloudflare Workers-based Model Context Protocol server that enables AI assistants like Claude to access external tools via OAuth authentication.Last updated -14
- -securityFlicense-qualityA Cloudflare Workers-based implementation of a Model Context Protocol server that enables AI assistants like Claude to access external tools through OAuth authentication.Last updated -