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.
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.For applications that support Streamable HTTP MCP Server:
{
"mcpServers": {
"edgeone-pages-mcp-server": {
"url": "https://mcp-on-edge.edgeone.site/mcp-server"
}
}
}
The MCP server allows you to quickly deploy HTML content:
deploy_html
toolYou can also deploy entire folders or zip files to EdgeOne Pages:
The EdgeOne Pages MCP service:
The MCP server integrates with EdgeOne Pages Functions to provide:
For more information about the underlying technologies, see the EdgeOne Pages Functions documentation and EdgeOne Pages KV Storage Guide.
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 > 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"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.