by TencentEdgeOne
EdgeOne Pages MCP is a MCP service designed to deploy HTML content, folders, and zip files to EdgeOne Pages. It leverages EdgeOne Pages Edge Functions and KV Store to provide publicly accessible URLs for the deployed content, enabling fast edge delivery.
EdgeOne Pages MCP is an MCP (Micro-Cloud Platform) service designed for deploying HTML content, folders, and zip files to EdgeOne Pages. It provides a publicly accessible URL for the deployed content, leveraging EdgeOne Pages Edge Functions and KV Store for fast edge delivery.
To use EdgeOne Pages MCP, you need Node.js 18 or higher. You can configure it as a stdio MCP Server or a Streamable HTTP MCP Server. For stdio, you can optionally provide EDGEONE_PAGES_API_TOKEN
and EDGEONE_PAGES_PROJECT_NAME
environment variables. The service accepts HTML content through the deploy_html
tool, connects to the EdgeOne Pages API to get the base URL, deploys the content using the EdgeOne Pages KV API, and returns a publicly accessible URL.
What are the requirements for running EdgeOne Pages MCP? Node.js 18 or higher is required.
How do I obtain my EdgeOne Pages API token? Refer to the EdgeOne documentation for instructions on obtaining your API token.
Can I update an existing EdgeOne Pages project?
Yes, you can provide an existing project name in the EDGEONE_PAGES_PROJECT_NAME
environment variable to update it.
Where is the deployed content stored? The content is stored in the EdgeOne Pages KV Store for fast edge access.
What kind of content can I deploy? You can deploy HTML content, folders, and zip files.
An MCP service for deploying HTML content, folder, and zip file to EdgeOne Pages and obtaining a publicly accessible URL.
Suitable for most MCP applications
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"command": "npx",
"args": ["edgeone-pages-mcp"],
"env": {
// Optional. If deploying a folder or zip file to an EdgeOne Pages project
// 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": ""
}
}
}
}
Available in applications supporting Streamable HTTP MCP Server
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.site/mcp-server"
}
}
}
The architecture diagram illustrates the workflow:
This MCP service integrates with EdgeOne Pages Functions to deploy static HTML content. The implementation uses:
EdgeOne Pages Functions - A serverless computing platform that allows execution of JavaScript/TypeScript code at the edge.
Key Implementation Details :
How it works :
deploy_html
toolUsage Example :
For more information, see the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.
MIT
Reviews feature coming soon
Stay tuned for community discussions and feedback