loading…
Search for a command to run...
loading…
Enables the deployment of HTML content, folders, and full-stack projects to EdgeOne Pages to generate publicly accessible URLs. It integrates with edge function
Enables the deployment of HTML content, folders, and full-stack projects to EdgeOne Pages to generate publicly accessible URLs. It integrates with edge functions and KV storage to provide fast content delivery and supports custom domain configuration.
An MCP service for deploying HTML content, folders, or full-stack projects to EdgeOne Pages and obtaining publicly accessible URLs.


This MCP service supports multiple deployment options. Choose the one that best fits your needs.
This is the simplest and fastest deployment method, suitable for scenarios requiring HTTP access.
After deployment, configure KV storage for storing website files:
After deployment, add to your MCP configuration file:
{
"mcpServers": {
"edgeone-pages": {
"url": "https://your-custom-domain.com/mcp-server"
}
}
}
Advantages:
Suitable for scenarios requiring full server control or stdio transport.
Ubuntu/Debian:
# Update system packages
sudo apt update
# Install Node.js 18.x
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
# Verify installation
node --version
npm --version
CentOS/RHEL:
# Install Node.js 18.x
curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
sudo yum install -y nodejs
# Verify installation
node --version
npm --version
# Clone project (or upload project files)
git clone https://github.com/TencentEdgeOne/edgeone-pages-mcp.git
cd edgeone-pages-mcp
# Install dependencies
npm install
# Build project
npm run build
# Configure environment variables
cat > .env << EOF
EDGEONE_PAGES_API_TOKEN=your-api-token-here
EDGEONE_PAGES_PROJECT_NAME=your-project-name
EOF
# Install PM2
sudo npm install -g pm2
# Start service
pm2 start dist/index.js --name edgeone-pages-mcp
# Set auto-start on boot
pm2 startup
pm2 save
# Check service status
pm2 status
pm2 logs edgeone-pages-mcp
# Ubuntu/Debian (UFW)
sudo ufw allow 22/tcp # SSH
# If using HTTP transport, open corresponding port
# sudo ufw allow 8080/tcp
# CentOS (firewalld)
sudo firewall-cmd --permanent --add-service=ssh
# sudo firewall-cmd --permanent --add-port=8080/tcp
sudo firewall-cmd --reload
If using stdio transport (local or SSH):
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"command": "node",
"args": ["/path/to/edgeone-pages-mcp/dist/index.js"],
"env": {
"EDGEONE_PAGES_API_TOKEN": "your-api-token",
"EDGEONE_PAGES_PROJECT_NAME": "your-project-name"
}
}
}
}
Advantages:
Suitable for scenarios requiring quick deployment with Tencent Cloud managed services.
index.jsEDGEONE_PAGES_API_TOKENEDGEONE_PAGES_PROJECT_NAME{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://your-function-url.tencentcloudapi.com"
}
}
}
Advantages:
Regardless of deployment method, it's recommended to:
Protect API Token:
.env files to repositoryNetwork Security:
Monitoring and Logging:
Issue: Service won't start
npm installpm2 logs or check cloud function logsIssue: Invalid API Token
Issue: Deployment failed
Full-featured MCP service that supports the deploy_folder tool for deploying full-stack projects.
// Tencent Cloud International (Default)
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"timeout": 600,
"command": "npx",
"args": ["edgeone-pages-mcp-fullstack@latest"]
}
}
}
// Tencent Cloud China
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"timeout": 600,
"command": "npx",
"args": ["edgeone-pages-mcp-fullstack@latest", "--region", "china"]
}
}
}
The following MCP Server will be deprecated soon:
Supports both deploy_html and deploy_folder_or_zip tools.
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"command": "npx",
"args": ["edgeone-pages-mcp@latest"],
"env": {
// Optional.
// If you need to deploy folders or zip files to
// EdgeOne Pages projects, provide your EdgeOne Pages API token.
// How to obtain your API token:
// https://edgeone.ai/document/177158578324279296
"EDGEONE_PAGES_API_TOKEN": "",
// Optional. Leave empty to create a new EdgeOne Pages project.
// Provide a project name to update an existing project.
"EDGEONE_PAGES_PROJECT_NAME": ""
}
}
}
}
For MCP clients that support HTTP streaming, only supports the deploy_html tool.
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.site/mcp-server"
}
}
}
The architecture diagram shows the complete workflow of the deploy_html tool:
This tool integrates with EdgeOne Pages Functions to deploy static HTML content:
EdgeOne Pages Functions - A serverless computing platform that supports executing JavaScript/TypeScript code at the edge
Core Implementation Features:
How It Works:
deploy_html toolFor more information, refer to the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.
The source code is open source and can be self-deployed with custom domain binding: https://github.com/TencentEdgeOne/self-hosted-pages-mcp
This tool supports deploying complete projects to EdgeOne Pages:
EdgeOne Pages MCP supports custom domain deployment. After configuring a custom domain in the EdgeOne Pages console, the deployment will automatically use your custom domain instead of the default temporary URL.
Step 1: Add Custom Domain in Console
example.com) or subdomain (e.g., www.example.com)Step 2: Configure DNS CNAME Record
a4285573.xxx.example.com.dns.edgeone.site.)www) or @ for root domainStep 3: Verify Domain
Step 4: Configure HTTPS (Recommended)
Step 5: Deploy with Custom Domain
After completing the above steps, when you deploy using deploy_folder_or_zip:
https://your-custom-domain.com instead of the temporary URL{
"type": "custom",
"url": "https://www.example.com",
"projectId": "your-project-id",
"projectName": "your-project-name",
"consoleUrl": "https://console.tencentcloud.com/edgeone/pages/project/your-project-id/index"
}
For more information, refer to:
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"edgeone-pages-mcp": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.