Skip to main content
Glama

Model Control Protocol Server (MCP)

by zueai

创建-mcp

一个 CLI 工具,用于设置模型控制协议 (MCP)服务器并将其部署到 Cloudflare Workers,以便您可以在几分钟内开始为您的 Cursor Agent 制作新工具。

只需编写带有 JSDoc 注释的 TypeScript 函数即可为您的代理提供 MCP 工具。

先决条件

  • 已安装Wrangler CLI并使用您的 Cloudflare 帐户登录。
  • 已安装 Claude 桌面应用。(即将移除)

指示

要搭建并部署新的 MCP 服务器,只需运行:

bun create mcp

您也可以直接将名称传递给命令: bun create mcp --name <server-name>

此 CLI 的作用

  • 将模板工作存储库克隆到<current-dir>/<server-name>
  • 安装依赖项
  • 初始化 Git 存储库
  • 将 Hello World MCP 服务器部署到您的 Cloudflare 帐户
  • 将其添加到 Claude 桌面
  • 将 MCP 服务器命令复制到剪贴板,以便您可以将其粘贴到 Cursor

如何使用

只需在src/index.ts中的MyWorker类中添加函数即可。每个函数都会编译成一个 MCP 工具。

例如:

/** * A warm, friendly greeting from your new Workers MCP server. * @param name {string} the name of the person we are greeting. * @return {string} the contents of our greeting. */ sayHello(name: string) { return `Hello from an MCP Worker, ${name}!`; }
  • 第一行是该工具的描述。
  • @param标签是工具的参数,带有类型和描述。
  • @return标签是工具的返回值及其类型。

部署变更

  1. 重新部署工作人员:
bun run deploy
  1. 重新加载您的光标窗口。

现在您可以要求您的代理使用新工具!

为什么选择 Cloudflare Workers?

氛围、出色的 DX 和极快的部署。

我不喜欢在本地运行 MCP 服务器,我敢肯定你也不喜欢。现在,我们无需运行 Node 进程,就可以在 Cursor 中使用调用 API 的简单 MCP 工具。

你所要做的就是编写函数。将你的描述和参数放在 JSDoc 注释中,它就能正常工作。

使用 create-mcp 创建的示例服务器

您可以将使用 create-mcp 创建的任何 MCP 服务器克隆并部署到您自己的 Cloudflare 帐户:

bun create mcp --clone <github-url>

贡献

非常欢迎大家贡献代码和反馈!欢迎提交 Pull 请求或创建 issue!

致谢

如果没有@geelen制作的workers-mcp,这个项目就不可能实现

-
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.

使用 Cloudflare Workers 为 Cursor Agent 创建和部署基于 API 的 MCP 工具,简化自定义功能的开发和集成。

  1. 先决条件
    1. 指示
      1. 此 CLI 的作用
        1. 如何使用
          1. 部署变更
            1. 为什么选择 Cloudflare Workers?
              1. 使用 create-mcp 创建的示例服务器
                1. 贡献
                  1. 致谢

                    Related MCP Servers

                    • A
                      security
                      A
                      license
                      A
                      quality
                      A template for creating custom tools for Cursor IDE using Model Context Protocol (MCP), allowing developers to extend Cursor's functionality with their own server-based tools.
                      Last updated -
                      11
                      2
                      Python
                      MIT License
                      • Apple
                      • Linux
                    • -
                      security
                      A
                      license
                      -
                      quality
                      An MCP server that converts Cursor agent plans into structured markdown task lists and organizes them in your repository, helping you track AI-generated plans and recommendations as actionable specifications.
                      Last updated -
                      3
                      Python
                      MIT License
                      • Linux
                      • Apple
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A demonstration project that uses Cloudflare Workers MCP to create custom AI tools that can be integrated with Claude, Cursor, and other AI assistants supporting the Model Context Protocol.
                      Last updated -
                      26
                      TypeScript
                    • -
                      security
                      A
                      license
                      -
                      quality
                      An MCP server that enables dynamic tool registration and execution based on API definitions, providing seamless integration with services like Claude.ai and Cursor.ai.
                      Last updated -
                      7
                      Python
                      MIT License
                      • Apple

                    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/zueai/create-mcp'

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