-
securityF
license-
qualityA Cloudflare Workers-based implementation of the Model Context Protocol server with OAuth login, allowing Claude and other MCP clients to connect to remote tools.
Last updated -
TypeScript
Enables deployment of the MCP server on Cloudflare Workers, providing a remote environment for hosting MCP tools with OAuth authentication.
这是一个基于Cloudflare Worker的MCP (Model Context Protocol) 服务器,用于提供各种工具API,包括Gmail、Google Calendar等功能。该项目使用TypeScript开发,并使用@remote-mcp/server库来简化MCP服务器的实现。
src/config.ts
文件中的 OAuth 配置对于生产环境,你需要配置KV命名空间来存储OAuth令牌:
wrangler.jsonc
中的KV配置部分,并添加你的命名空间ID:/tools
- 获取可用工具列表/api/mcp
- MCP API端点/oauth/gmail
- Gmail OAuth认证/oauth/gmail/callback
- Gmail OAuth回调wrangler.jsonc
中配置了正确的KV命名空间ID,或者暂时注释掉KV配置部分进行测试部署noEmit
设置为false
,允许生成JavaScript文件使用Cloudflare Workers控制台查看日志和调试信息。
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)MIT
This server cannot be installed
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 server for hosting Model Context Protocol (MCP) tools on Cloudflare Workers with OAuth authentication, allowing Claude AI and other MCP clients to access extended capabilities.