EdgeOne Pages MCP server

Enables rapid deployment of HTML content to Tencent's EdgeOne Pages service with integrated Functions and KV store support for edge hosting
Back to servers
Provider
Tencent EdgeOne
Release date
Mar 25, 2025
Language
TypeScript
Package
Stats
7.8K downloads
98 stars

EdgeOne Pages MCP is a service that lets you deploy HTML content, folders, or zip files to Tencent EdgeOne Pages and get a publicly accessible URL. It provides a straightforward way to publish web content without complex deployment processes.

Requirements

  • Node.js 18 or higher

Installation and Configuration

Setting Up with stdio MCP Server

This method is suitable for most MCP applications:

{
  "mcpServers": {
    "edgeone-pages-mcp-server": {
      "command": "npx",
      "args": ["edgeone-pages-mcp"],
      "env": {
        "EDGEONE_PAGES_API_TOKEN": "",
        "EDGEONE_PAGES_PROJECT_NAME": ""
      }
    }
  }
}

Environment Variables:

  • EDGEONE_PAGES_API_TOKEN: Optional. Required if deploying a folder or zip file to an EdgeOne Pages project. You can get your API token from the EdgeOne documentation.
  • EDGEONE_PAGES_PROJECT_NAME: Optional. Leave empty to create a new project, or provide a project name to update an existing one.

Setting Up with Streamable HTTP MCP Server

For applications that support Streamable HTTP MCP Server:

{
  "mcpServers": {
    "edgeone-pages-mcp-server": {
      "url": "https://mcp-on-edge.edgeone.site/mcp-server"
    }
  }
}

Usage

Deploying HTML Content

The MCP server allows you to quickly deploy HTML content:

  1. Connect to the MCP server
  2. Submit your HTML content using the deploy_html tool
  3. Receive a public URL to access your deployed content

Deploying Folders or Zip Files

You can also deploy entire folders or zip files to EdgeOne Pages:

  1. Configure your MCP server with a valid EdgeOne Pages API token
  2. Use the appropriate tool to deploy your folder or zip file
  3. The server will handle the deployment and return a public URL

How It Works

The EdgeOne Pages MCP service:

  1. Accepts HTML content, folders, or zip files through its API
  2. Connects to EdgeOne Pages backend services
  3. Deploys the content using EdgeOne Pages Functions and KV store
  4. Returns a publicly accessible URL for immediate access

Technical Details

The MCP server integrates with EdgeOne Pages Functions to provide:

  • Fast edge delivery of your content
  • Automatic URL generation
  • Content storage in EdgeOne KV Store for rapid access
  • Seamless deployment without managing infrastructure

For more information about the underlying technologies, see the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later