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).
You can configure the EdgeOne Pages MCP server in two different ways:
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.Available in applications that support Streamable HTTP MCP Server:
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.site/mcp-server"
}
}
}
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.
To deploy an entire folder of static content:
EDGEONE_PAGES_API_TOKEN
in the configurationSimilar to folder deployment, you can upload a zip file containing your website:
EDGEONE_PAGES_API_TOKEN
is configuredThe EdgeOne Pages MCP server handles your content through the following process:
For more information, see the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.
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.
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.
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": ""
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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