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
Setup instructions
Provider
Tencent EdgeOne
Release date
Mar 25, 2025
Language
TypeScript
Package
Stats
23.8K downloads
188 stars

EdgeOne Pages MCP is a service that allows you to deploy HTML content, folders, and zip files to EdgeOne Pages, giving you a publicly accessible URL. This tool provides a simple way to publish web content through the Model Context Protocol (MCP).

Requirements

  • Node.js 18 or higher

Installation and Configuration

Setting Up the MCP Server

You can configure the EdgeOne Pages MCP server in two different ways:

Using stdio MCP Server

This option 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 obtain your API token from EdgeOne Pages API documentation.
  • EDGEONE_PAGES_PROJECT_NAME: Optional. Leave empty to create a new EdgeOne Pages project, or provide a project name to update an existing one.

Using Streamable HTTP MCP Server

Available in 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

You can deploy HTML content directly through the MCP server. The server will process your HTML and return a publicly accessible URL where the content is hosted.

Deploying a Folder

To deploy an entire folder of static content:

  1. Make sure you've set your EDGEONE_PAGES_API_TOKEN in the configuration
  2. Use the deploy folder functionality to upload all files in the directory
  3. The server will return a URL where your content is accessible

Deploying a Zip File

Similar to folder deployment, you can upload a zip file containing your website:

  1. Ensure your EDGEONE_PAGES_API_TOKEN is configured
  2. Use the deploy zip functionality to upload your compressed website
  3. Receive a public URL for your deployed content

How It Works

The EdgeOne Pages MCP server handles your content through the following process:

  1. Content (HTML, folder, or zip) is sent to the EdgeOne Pages MCP Server
  2. The server deploys the content to EdgeOne Pages Edge Functions
  3. Content is stored in EdgeOne KV Store for fast edge access
  4. The server returns a public URL where users can access the content
  5. The content is delivered from the edge for fast worldwide access

Features

  • Quick deployment of HTML content, folders, and zip files
  • Automatic generation of publicly accessible URLs
  • Fast content delivery through edge functions
  • Support for updating existing projects

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

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "edgeone-pages-mcp-server" '{"command":"npx","args":["edgeone-pages-mcp"],"env":{"EDGEONE_PAGES_API_TOKEN":"","EDGEONE_PAGES_PROJECT_NAME":""}}'

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

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

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

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

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

3. Restart Claude Desktop for the changes to take effect

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